Skip to content
Snippets Groups Projects
Commit 3374906b authored by yuichitamiya's avatar yuichitamiya
Browse files

add tips stepper

parent f60c89db
No related branches found
No related tags found
No related merge requests found
Pipeline #289858 passed
docs/Instruction/images/stepper/test_1_connection.jpg

392 KiB

docs/Instruction/images/stepper/tmc2208_back2.jpg

265 KiB

......@@ -56,8 +56,72 @@ VREF |(RMS Current x 2.5)/1.77 |(0.39 x 2.5)/1.77 = 0.55|0.55 x 0.9 = 0.49
![](../images/stepper/vref_hole.jpg){width=300}
![](../images/stepper/vref_screw.jpg){width=300}
### test 1
### Arduino
[SilentStepStick TMC2208 Stepper Motor Driver
](https://shop.watterott.com/SilentStepStick-TMC2208-Stepper-Motor-Driver)
Ref. [GitHub project page](https://github.com/watterott/SilentStepStick)
Download TMC220X.ino from [here](https://github.com/watterott/SilentStepStick/blob/master/software/TMC220X.ino)
```
/*
SilentStepStick TMC2208/TMC2209 Example
Rsense: 0.11 Ohm
Other examples/libraries can be found here:
https://github.com/teemuatlut/TMCStepper
https://github.com/trinamic/TMC-API
https://github.com/manoukianv/TMC2208Pilot
Example source code free to use.
Further information: https://learn.watterott.com/license/
*/
// Note: You also have to connect GND, 5V/VIO and VM.
// A connection diagram can be found in the schematics.
#define EN_PIN 7 //enable (CFG6)
#define DIR_PIN 8 //direction
#define STEP_PIN 9 //step
void setup()
{
//set pin modes
pinMode(EN_PIN, OUTPUT);
digitalWrite(EN_PIN, HIGH); //deactivate driver (LOW active)
pinMode(DIR_PIN, OUTPUT);
digitalWrite(DIR_PIN, LOW); //LOW to CCW
//digitalWrite(DIR_PIN, HIGH); //HIGH to CW
pinMode(STEP_PIN, OUTPUT);
digitalWrite(STEP_PIN, LOW);
digitalWrite(EN_PIN, LOW); //activate driver
}
void loop()
{
//make steps
digitalWrite(STEP_PIN, HIGH);
delay(2);
digitalWrite(STEP_PIN, LOW);
delay(2);
}
```
#### Connection
![](../images/stepper/test_1_connection.jpg)
Connect to |LEFT | TMC2208 |Right | Connect to
--:|--|:---:|--|--
Uno_7</br>-</br>-</br>-</br>-</br>-</br>Uno_8</br>Uno_9 |En</br>MS1</br>MS2</br>UART</br>PDN</br>CLK</br>Step</br>Dir |![](../images/stepper/tmc2208_back2.jpg){width=120}|VM</br>GND</br>M2B</br>M2A</br>M1A</br>M1B</br>VIO</br>GND|Supply(12V(+)) & CAP100uF(+)</br>Supply(-) & CAP(-)</br>Moter(Blue)</br>Motor(Red)</br>Motor(Green)</br>Motor(Black)</br>Uno_5V</br>Uno_GND
#### Result
Worked!
### Test 2
#### Library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment