Hello, i need help because i would like to program a step motor (ref : 55SI-25DAYA). I just want to create a rotation of 90° but i have somes issues, i just don’t no how to do this and i have tried fews things. Someone can help me ?
The code you posted does something. Send me a PM and I'll send you a snail mail address, so you can send me your hardware, so I can see what it actually does.
You expect it to do something. You'll need to explain what you expect it to do.
Actually creating an instance of the Stepper class is something that most people need to do. How did you avoid that need?
Your call to the constructor tells it that the motor steps 48 times to complete one revolution. To then step a 1/4 turn once, in setup() step(12) would be used.
If you do the stepping in loop(), you'll either need to use a flag to indicate that all necessary stepping has, or has not, happened, or you will step more than 1/4 revolution.
spycatcher2k:
From the site you posted a link to :
Pas / tour 48 (7.5°/pas) <-------- All the info you needed is here
Type unipolare (6 fils)
If it has 6 wires maybe it can also be operated as a bipolar motor and use a DRV8825 stepper driver as mentioned on the website linked to in the Original Post. That would make the programming very much easier.
And if you already have a DRV8825 you should be aware that the standard Stepper library is not intended for it. Either use the Accelstepper library or just write your own code similar to my Simple Stepper Code
You have the code. You have the compiler. YOU figure out why the code won't compile. The compiler is not the least bit shy about telling you what you are doing wrong. AND, it will tell you far faster than we can, with way less "you dumb ass" tone thrown in.