Stepper motor
mynet43
Posts: 644
Hi,
Can someone point me to a stepper motor driver for a Unipolar stepper motor, using 4 pins to control the phasing. I already have an interface circuit to control the motor load, using mosfets.
I looked in the OBX and couldn't spot something, I probably missed it.
Thanks for your help.
Jim
Can someone point me to a stepper motor driver for a Unipolar stepper motor, using 4 pins to control the phasing. I already have an interface circuit to control the motor load, using mosfets.
I looked in the OBX and couldn't spot something, I probably missed it.
Thanks for your help.
Jim
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
some say the devil is dead... ...tish army!
Search these keywords. ...Stepper software for prop chip... and look for my username.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Also look at experiment 27 in the StampWorks Manual, page 150.
www.parallax.com/dl/docs/books/sw/Web-SW-v2.1.pdf
www.solarbotics.net/library/pdflib/pdf/motorbas.pdf
hope that helps,
Thanks all for the quick replies.
I can't use the L293/L298 solution because the motor is drawing too much power. I'm driving it directly with 4 I/O pins into mosfets.
I was able to find Larry's code. I think this will give me what I need to get started. You should post this in the OBX, since there don't seem to be any stepper drivers there...
Thanks again,
Jim
I posted my stepper code. I hope it helps.
Search these keywords. ...Stepper software for prop chip... and look for my username.
{/quote}
I do not find your code - can someone point me to some code for stepper motors?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my CNC (and more) projects at http://www.backyard-workshop.com
animated schematics
for different kinds of stepper-motors.
That's the reason why there is no general purpose object depending on unipolar / bipolar 4 coils, 6coils fullstep / halfstep microstepping
all these different types need different swiching of the wires of the steppermotor
best regards
Stefan
I'll do what that post says from now on and use the google search
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my CNC (and more) projects at http://www.backyard-workshop.com
The best way to search is with Google. In Google enter <search term(s) site:forums.parallax.com> . In addition, you can use, <search term(s) site:forums.parallax.com f=25> to reduce the search to only propeller subjects.
Jim
I'm planning to make it into a cog routine with general interfaces, but I haven't had the time.
Please let me know if you have any questions or feedback, and feel free to change it to suit your needs.
Jim
Thanks,
Doug
Here's a copy of the schematic.
A couple of notes:
1. The 4 diodes are to prevent back emf from the motor from hurting the circuit.
2. The 74HCT365 between the Prop and the MOSFETS is needed to boost the voltage from 3.3V to 5V to trigger the MOSFETS. These won't switch until about 4V.
3. I redrew it today to make it match the final circuit, so let me know if you see anything I missed.
Please let me know if you have any questions or feedback.
Jim
I think if you were to replace your Mosfets with IRF3708, you could eliminate your 74HCT365. The IRF3708 can be driven directly off the pin of a Propeller and I think it will handle your voltage and current requirements, too.
search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=IRF3708PBF-ND
I think you're on the right track. This one should switch at a little over 2V. The only problem with it is that the max voltage is 30V, and I need to drive it as high as 48V. The one I'm using goes up to 100V.
The reason I used these is that I had a bag of them and they seemed to be good. I didn't discover the 4V problem until I had already breadboarded the circuit, so it was easier to add the chip.
By the way, I didn't mention it, but this circuit should work fine also at lower battery voltages.
Thanks again.
Jim
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔