ArduinoGeneral

TMC260 DIR0035 ARDUINO MEGA BIPOLAR STEPPER MOTOR

userHead LucieVIVANT 2022-08-11 23:04:51 825 Views0 Replies

Hello Everyone,

 

I am facing difficulties to control a stepper motor with an ARDUINO MEGA 2560R3 with a a stepper motor driver shield DIR0035 TMC260.

I want to control the motor with STEP/DIR mode:.

 

Even with the example in the followed link it doesn't work properly. The motor turned weirdly.
First I am not sure about the wiring of the shield. I only wired the motor and the power supply and plug the shield on the mega.

 

In the board overview in the link below, they are talking about :
1:DIR => already connected if I understand well
2:STEP=> IDEM
3:Enable => It didn't wire this pine but I don't understand how it's works. In the example we don't have to define any pine for the enable and if we start the code the motor turns so the enable is done automatically. Is it an OUTPUT?
4:SG=> is it only an output
5:CS(D9-D6) =>Only if you are using SPI but it's not my case
6: SPI=> not my case.

So I am wondering if i am missing something here.

 

Besides one stuff is calling me in the example on the link below :

</>
//we have a stepper motor with 200 steps per rotation, CS pin 2, dir pin 6, step pin 7 and a current of 800mA
TMC26XStepper tmc26XStepper = TMC26XStepper(200,6,4,5,800);
</>

the number of the pin doesn't match with the pine described in the comments. So maybe there is an error here...

If my wiring is Ok I will put my program code later.

 

Thank you in advance.