Timeline for How can I pulse a stepper motor whilst also wanting to handle other tasks?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 30, 2018 at 14:45 | comment | added | Joe Iddon | @Gerben Thanks for the link, I'll take a look at the source. Also the interrupt driven system sounds interesting, I hadn't considered that. It is working well now though, so I doubt I will spend too much longer perfecting this. Thanks for the input though :) | |
Dec 30, 2018 at 14:01 | comment | added | Gerben | I that case you could have a look at the source code of AccelStepper. Having a quick look, it seems that they are using the same method as Joe Iddon describes below, with some additions to make the speed of the motor ramp up and down. An entirely different solutions is to use a timer and timer-interrupt to run code at a set interval. | |
Dec 30, 2018 at 13:51 | comment | added | Joe Iddon | @Jot I'm using an Arduino Nano. As for the library, I am more interested in understanding how stepper control works, rather than the final outcome. :) | |
Dec 30, 2018 at 13:39 | comment | added | Jot | Use a library that makes the pulses for you: airspayce.com/mikem/arduino/AccelStepper Which arduino board do you use? | |
S Dec 30, 2018 at 13:12 | answer | added | Joe Iddon | timeline score: 1 | |
S Dec 30, 2018 at 13:12 | history | asked | Joe Iddon | CC BY-SA 4.0 |