diff --git a/docs/Instruction/images/stepper/test_1_connection.jpg b/docs/Instruction/images/stepper/test_1_connection.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aed24b199baaabb2c8ced9f8a634937e9ac6070f Binary files /dev/null and b/docs/Instruction/images/stepper/test_1_connection.jpg differ diff --git a/docs/Instruction/images/stepper/tmc2208_back2.jpg b/docs/Instruction/images/stepper/tmc2208_back2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..67f11139f7592eca753ac47a99776e931cf68e3b Binary files /dev/null and b/docs/Instruction/images/stepper/tmc2208_back2.jpg differ diff --git a/docs/Instruction/tips/stepper_TMC2208.md b/docs/Instruction/tips/stepper_TMC2208.md index 7d6192530cffe66272dea34d33401c0ec5348f20..fa16ab738e90d52c55c873166a065fa2902f39c6 100644 --- a/docs/Instruction/tips/stepper_TMC2208.md +++ b/docs/Instruction/tips/stepper_TMC2208.md @@ -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 {width=300} {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 + + + +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 |{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