Hi All,
I am trying to fix a position of my stepper motor between 0 to 360 degree. Is there a way to do so using arduino code just like I can do it using servomotors ?
Regards,
vader92
Hi All,
I am trying to fix a position of my stepper motor between 0 to 360 degree. Is there a way to do so using arduino code just like I can do it using servomotors ?
Regards,
vader92
(deleted)
You will need something to detect the Zero or Home position. A microswitch or an optical detector are commonly used.
When your Arduino starts you should have code that move the motor step by step until it, or whatever it is moving, triggers the switch. Then you will know you are at the Zero position and you can count steps from there to identify any other position.
...R
Is there a sample code that I am able to refer to ? I have did research on the web and YouTube. There are videos of samples to show that this can be done, but there is no arduino code that I am able to refer to.