d123
Advanced Member level 5
Hi,
Any ideas why a bipolar stepper motor at power-up often takes one step CCW? It shouldn't - it should be four CW and four CCW.
It's on a breadboard. The supply and power is the same and it's nominally 5V. Every IC is decoupled. It's a slow signal from a 555 (~1 Hz) into a CD4017 which has a POR and whose output pins are used to drive an L293D to generate the four forwards/CW and then four backwards/CCW signals.
I even tried using another 4017 to skip the first cycle of steps after power-up and enable the L293 at the start of the second cycle, but it still does the CCW step very often.
When the circuit was only four steps CW, it still did it.
I would find it easier to understand the problem if it sometimes did an extra step CW at power-up, not the CCW step at power-up. I have as yet to use my black and white LCD oscilloscope with its jerky small screen to see what's happening at start-up on different pins, admittedly.
Once it gets past the power-up glitch it does what it should (four forwards, four backwards, repeat forever). It happens randomly. I'm only asking as I assume it shouldn't start-up like that and stepper motors don't do that normally.
I've just thought, whilst writing this question - Do I need to put pull-down resistors on the L293 input pins, is that a probable cause? The enable pins do have 100k pull-downs. I'd been thinking it was something to do with the breadboard or something else but that makes more sense.
Any ideas why a bipolar stepper motor at power-up often takes one step CCW? It shouldn't - it should be four CW and four CCW.
It's on a breadboard. The supply and power is the same and it's nominally 5V. Every IC is decoupled. It's a slow signal from a 555 (~1 Hz) into a CD4017 which has a POR and whose output pins are used to drive an L293D to generate the four forwards/CW and then four backwards/CCW signals.
I even tried using another 4017 to skip the first cycle of steps after power-up and enable the L293 at the start of the second cycle, but it still does the CCW step very often.
When the circuit was only four steps CW, it still did it.
I would find it easier to understand the problem if it sometimes did an extra step CW at power-up, not the CCW step at power-up. I have as yet to use my black and white LCD oscilloscope with its jerky small screen to see what's happening at start-up on different pins, admittedly.
Once it gets past the power-up glitch it does what it should (four forwards, four backwards, repeat forever). It happens randomly. I'm only asking as I assume it shouldn't start-up like that and stepper motors don't do that normally.
I've just thought, whilst writing this question - Do I need to put pull-down resistors on the L293 input pins, is that a probable cause? The enable pins do have 100k pull-downs. I'd been thinking it was something to do with the breadboard or something else but that makes more sense.