Stepper motor help
grasshopper
Posts: 438
Would some one be kind enough to explain briefly how I can use a stepper motor with my propeller. I am having a hard time understanding a way to code it. I am using an Allegero A2919SB IC. Here is my schematic.
Comments
P1 is turning ON/OFF the current of PHASE2 (0=ON, 1=OFF)
P2 steers the direction of the current for PHASE2 (0=positive, 1=negative)
P3 same as P1 but for PHASE1
P4 same as P2 but for PHASE1
P5 lowers the output current.
You have to do the timing like the diagram in the attachment shows. It depends how you will drive the motor:
- Halfstep (save method with no risk of oscillations)
- Fullstep
- 1 phase mode
- 2 phase mode
I hope this helps a bit
Saluti Joerg
http://www.parallax.com/Resources/NutsVoltsColumns/NutsVoltsVolume7/tabid/450/Default.aspx
"Column #136: Stepping Out with Spin" is what you're looking for.
connect P1 to P0, P2 to P1, P3 to P2 and P3 to P2 (first p is your controller, the second your Propeller chip!)
connect P5 to GND (VSS) or open (the propeller chip is a 3.3V chip!!)
and a little program for testing your hardware:
I hope it works
Saluti Joerg