Propeller Stepper Driver
GeeksGoneBad
Posts: 100
Hi all! I've had just a little success getting a stepper motor to move with my Propeller - this will probably seem quite simple to most of y'all but I wanted to share anyway
I am using the propeller and a L298 and that's about it (there are a couple of caps per the L298 datasheet)
I made a video http://www.backyardworkshop.com/blog-posts/electronics/98-parallax-propeller-stepper-driver.html
and this is a second video to one where I was playing with a stepper with some buttons
constructive feedback is encouraged
I am using the propeller and a L298 and that's about it (there are a couple of caps per the L298 datasheet)
I made a video http://www.backyardworkshop.com/blog-posts/electronics/98-parallax-propeller-stepper-driver.html
and this is a second video to one where I was playing with a stepper with some buttons
constructive feedback is encouraged
Comments
It's liberating when you find out you can make things move with electronics.
Next thing to try: check out some microstepping techniques to smooth out the stepper motion.
http://forums.parallax.com/showthread.php?126523-Microstepping-a-motor-with-the-Propeller-and-PWM
Have fun!
of course it is fun to create something from scratch.
Just as an additional option: there is another chip that works together with the L298. It's the L297.
The L297-chip does two things:
1.)
Chopping the current of the stepper-coils on/off with an adjustable current.
Thruogh chopping the current you can use higher voltages without exceeding the current-limits of the steppermotor.
The result is more torque and a high maximum rpm where the motor is not stalling.
2.)
Simplifying the logic to drive the steppermotor. You just need a step-pulse and direction input.
All the details in wich sequence the coils have to be switched or change their polarity is done
by the L297. It also offers halfstep-mode. But this chip can't domicrostepping.
STM has a app-note
STEPPER MOTOR DRIVE CONSIDERATIONS, COMMON PROBLEMS & SOLUTIONS
http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00003771.pdf
You should by a switchmode powersupply of 500mA for the propeller-chip and one with 2A or 3A for things like motors
They will pay off after 5 batteries and then save money.
best regards
Stefan
edit: some app-notes about stepperdriving
http://www.st.com/internet/com/search/search.jsp?q=L297%20datasheet&entqr=3&entsp=a&output=xml_no_dtd&sort=date:D:L:d1&client=ST_COM_PlanA_frontend&ud=1&oe=UTF-8&ie=UTF-8&proxystylesheet=ST_COM_PlanA_frontend&site=ST_COM
I am looking at some power supplies - you mention a 500ma PS for the prop - do you have any recomendations?
Thanks!
for supplying the propeller the voltage shouldn't be too high. (7.5V)
with higher voltages the 5V and the 3.3V regulator have to dissipate to much heat.
So this one from parallax would be good http://www.parallax.com/Store/Accessories/PowerSupplies/tabid/165/CategoryID/39/List/0/SortField/0/Level/a/ProductID/73/Default.aspx
For the propeller itself it will be eonough to have a 300mA-type. propeller 30-50mA plus some LEDs.
Any similar type from any other shop with 7.5V 300mA to 500mA will be good too.
Stabilised wall-plugs of the old type with a transformator will do too.
If you want to use a power-supply with a higher voltage you should build a cascade of regulators 12V, 8V, to keep the powerdissipation small in each regulator
caclulation example
Inputvoltage 12V Outputvoltage 5V (=voltagedrop across the regulator 7V
0.8A * 7V = 5.6W. This would heat up a 1A TO220-housing regulator a lot even if it's mounted on a cooling-aluminium.
Guess the regulator will even go into temperature shutdown-mode to protect himself from getting fried.
If you want to drive motors hobbyservos, steppers etc. you need more current.
If you drive steppermotors with a chopper-current-limiting circuit the voltage can be as high as the H-Bridge-Chip can deal with.
The L298 can do maximum 46V.
best regards
Stefan
Now that You have mastered the button's, It is time to make that volume control into a speed control,
and that fancy variable resistor into a direction control...
The ST has a stepper driver chis that has microstepping and it comes in a DIP format so its easy to breadboard the L6208 it has a max 56 volt input and 5.6a output.
Here is a App note that shows how to set it up for step half/step and microstep.
http://www.st.com/stonline/books/pdf/docs/8607.pdf
Digikey has them but are a little pricey
Cluso,
this is a very interesting suggestion. But I'm wondering about its ability to drive all the way up to 2 Amps. The website says:
Power dissipation considerations
The A4983 driver IC has a maximum current rating of 2 A per coil, but the actual current you can deliver depends on how well you can keep the IC cool. The carrier’s printed circuit board is designed to draw heat out of the IC, but to supply more than approximately 1 A per coil, a heat sink or other cooling method is required.
How would you get a heat sink onto it? Is there some kind of heat sink you can glue directly to the chip? Or is a cooling fan the only way to go?
Here's a link to the current (and ongoing) project - but I do have the SPIN code for driving the Easydriver OR the A4983 in my downloads if anyone is interested too
http://www.backyardworkshop.com/blog-posts/electronics/97-homemade-power-drive.html
Does the code you have for the Easydriver work with the Pololu without change (being lazy, here!!)
I bet it would have worked good with the easy driver too and the larger stepper but I'll have to test that theory out
as it stands the Pololu board and bigger stepper are working good - I posted a video here: http://www.backyardworkshop.com/blog-posts/electronics/97-homemade-power-drive.html