Newbie with Stepper Motor...
Stinky
Posts: 8
So, heres my story.
I built a robot (object avoiding vehicle) for my engineering class last semester and it worked great.· Simple, BS2, Board of education, 2 stepper motors, and the PING sonar.·
Now I am building another robot with the BS2px and the board of education.· I'm trying to get the stepper motors working and I can't do it.· In my robot last year, we used code that looked much like:
high a
low b
low c
high d
etc.
Now I'm trying the code that is downloadable from parallax's website at http://www.parallax.com/detail.asp?product_id=27964·(I downloaded the one for Basic Stamp example programs) and ran it.· All my motor does is twitch?· This program doesn't use the motor controllers, does it?
All I want my motors to do for this new project is have them go forward and backward at the highest torque, nothing more than that.· Please help me figure it out!
Thankyou, Stinky
I built a robot (object avoiding vehicle) for my engineering class last semester and it worked great.· Simple, BS2, Board of education, 2 stepper motors, and the PING sonar.·
Now I am building another robot with the BS2px and the board of education.· I'm trying to get the stepper motors working and I can't do it.· In my robot last year, we used code that looked much like:
high a
low b
low c
high d
etc.
Now I'm trying the code that is downloadable from parallax's website at http://www.parallax.com/detail.asp?product_id=27964·(I downloaded the one for Basic Stamp example programs) and ran it.· All my motor does is twitch?· This program doesn't use the motor controllers, does it?
All I want my motors to do for this new project is have them go forward and backward at the highest torque, nothing more than that.· Please help me figure it out!
Thankyou, Stinky
Comments
Thanks
See a DataSheet of the ULN 2003 at this link for a guide.....
http://www.xdesignlabs.com/chips/uln2003a.pdf
How do you have the stepper motor connected ? Do you have the motor wires directly connected to the stamp pins ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
No, I do not have the wries from the motor connect directly to the stamp. I have the board of education and I am using the P0-P15 pins to connect my motor.
Stinky
So is the ULN2003 a group of diodes that prevent current from flowing back into my chip?
Read this Nuts and Volts article. It explains the whole thing: www.parallax.com/dl/docs/cols/nv/vol1/col/nv6.pdf.
Thanks for the help, I think I got it now. I just have to find one of these ULN2003's; can I find one at my local radio shack?
Parallax has the ULN2003's
Sweet, thanks a lot
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
-Stinky
·
·· You could use the ULN2803 if you want a reduced part count and your voltage/current levels are within the ratings, especially if using all 8 outputs.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support