Some prop. questions
A.C. fishing
Posts: 262
Howdy!
Its been a loooooooooong time since I've done any work here on the forums, or, with my prop./BS2, but now I've found some time to work on a project.
I just have some quick prop. questions, excuse my rusty brain...
Is it possible to run the propellor off of a few 9 Volt batteries? I would just need portable power for a short period of time.
How can I control a Parallax con. servo with the propellor? Anyone got some example code?
How can I control a cheap DC motor with the propellor?
thanks,
A. C. fishing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Its been a loooooooooong time since I've done any work here on the forums, or, with my prop./BS2, but now I've found some time to work on a project.
I just have some quick prop. questions, excuse my rusty brain...
Is it possible to run the propellor off of a few 9 Volt batteries? I would just need portable power for a short period of time.
How can I control a Parallax con. servo with the propellor? Anyone got some example code?
How can I control a cheap DC motor with the propellor?
thanks,
A. C. fishing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Somebody said...
-Never Underestimate the power of human stupidity.
Comments
I believe servo objects are available in the Prop Object Excange.
You could run a motor with any one of Parallax's motor controllers, or probably just a simple transistor setup of some kind. I've never done it, so I wouldn't know.
2) There are several servo drivers downloadable from the Propeller Object Exchange. See the link from Parallax's main Propeller webpage.
3) If you just want to turn the motor on and off, a transistor switch would work fine. The examples in the StampWorks manual would work. You could use an IRL510 FET and a 1N4001 diode (make sure it's an IRL510, not an IRF510) or any switching transistor with a high enough current rating (and the diode). The base series resistor with the switching transistor would have to be chosen to give a base current of 10-20ma with the lower output voltage of the Propeller (3.3V vs 5V for the Stamp). A 270 ohm resistor would give a roughly 10ma base current. With a transistor gain of 50, that would let you switch 1/2 A.
I had some problems, which I never did figure out with the posted servo objects but the code is so simple that you can roll your own very easily. The source documentation about servos is great... but you can also google the subject and get the same info.
For the dc motor control, I absolutely love the HB-25. The documentation and sample code are crystal clear and it works beautifully... and you can control anything up to 14 volts... its a little pricey, but a real joy to work with.