I have reviewed the tutorial available here:
http
://www.8051projects.net/stepper-motor-interfacing/programming-microcontroller.php
and I have got my bipolar stepper motor to turn using the wave drive sequence where only one winding is energized at a time. However, I need increased torque so I was going to go with the stepping sequence that energizes two windings at a time.
The code that causes my motor to turn counter-clockwise using an 8051 and an L298N Dual H-Bridge is:
So that is the sequence I use. I need assistance, based on that correct sequence, what will the new sequence be to energize the correct 2 windings without blowing my H-Bridge and possibly my Voltage Supply circuit??
I believe the cause of blowing is if both windings of the motor are energized at the same time, but my sequence is different than many websites show, so my windings must be arranged differently so I can't follow their code exactly.
Assuming the bits represend following sequense (stepper wiring): 1a 2a 1b 2b AND that the stepper is type bipolar (four wires, not five where one is common).
To make it bottom simple: What the sequense does is just to alternately change polarity of the two windings. Change windong1, change winding2, Change windong1, change winding2, Change windong1, change winding2, Change windong1, change winding2, Change windong1, change winding2, Change windong1, change winding2 --- and so on. Then both windings will always be active all the time.
The sequence I posted above worked out great. Grossel, thank you for your explanation in the simplest terms possible. The sequence is simple I know, but I just had to make sure before I tried it and blew something up.