Need some assistance in setting up servos on Protoboard
MegaSpin
Posts: 9
Hello,
I'm new to working with boards, but I'm doing my best. I'd like to set up a servo to my board. I understand where the four servo ports are. The board's manual says: "Install the shorting block on the first·header(next to the 3.3 volt regulater) to choose the servo supply."·So that means I should short the Vin and the adjacent pin?
Then, how do I control the servo? Is it on an I/O port? Or do I use a different command to control it? (I use spin.)
Also, will the servo recieve 5 volts? Currently, my board is hooked up to a 9 volt battery. Should I swap it for a 6 volt?
Thanks!
I'm new to working with boards, but I'm doing my best. I'd like to set up a servo to my board. I understand where the four servo ports are. The board's manual says: "Install the shorting block on the first·header(next to the 3.3 volt regulater) to choose the servo supply."·So that means I should short the Vin and the adjacent pin?
Then, how do I control the servo? Is it on an I/O port? Or do I use a different command to control it? (I use spin.)
Also, will the servo recieve 5 volts? Currently, my board is hooked up to a 9 volt battery. Should I swap it for a 6 volt?
Thanks!
Comments
2) You can run servos off the regulated 5V supply, but the regulator can provide only about 1A and servos can each draw that for a peak current when starting under mechanical load or when stalled out. You can probably manage with two servos running from the regulated 5V supply, particularly if they don't both start at the same time.
3) There are 3 wires to a servo, ground, + power (4.2V-7.5V), and a control signal line which goes to the Propeller pin, preferably through a 1K resistor which dampens noise. Read the "Robotics with the BoeBot" tutorial for more details on servos.
The servos are not connected to any I/O pins. The 3-pin headers have their control pins brought out to adjacent holes on the Protoboard. I put 1K resistors between those holes and the next ones over (standing the resistors vertically), then I connect a wire to each resistor and run that to whatever I/O pins I want.
If you want to use DC motors, you'll need some kind of motor driver. This can be something as simple as a pair of DPDT relays (you'll need additional resistors, switching transistors, and diodes to drive the relays as shown in several Stamp manuals) if you just want on/off and direction control or some kind of H-bridge or more complex DC motor driver if you want speed control as well.
Notice the red, yellow and blue wires in the picture titled "Servo1", they connect to P0, P1 and P2 respectively. they then connect to the 1K resistors, which are then attached to the bottom row of the servo headers. The colored wires and the resistor wire is soldered together underneath the board. I personally put components and wires on the top of the board, and solder connections between adjacent pins underneath.
The center and top row of pins in the servo connectors are prewired to power and ground connections for you.
In picture "servo2" you see I soldered in a 3 pin header over which you put a jumper. in the position shown, The power pins of the servos are connected to the 5 Volt regulator. If the jumper is moved to the other side, the servos receive straight unregulated battery voltage. A good source of these jumpers is an old computer. there should be a dozen or so of these jumpers on the motherboard.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian
uController.com - home of SpinStudio - the modular Development system for the Propeller
PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!
SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
Post Edited (parts-man73) : 9/6/2008 1:20:30 AM GMT
Sort of on topic, I see in Servo Magazine this month that there is an article by Chris on using the Propeller Protoboard and hooking a large amount of servos to it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com·- Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto fo SunSPOT, BitScope
www.sxmicro.com - a blog·exploring the SX micro
www.tdswieter.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian
uController.com - home of SpinStudio - the modular Development system for the Propeller
PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!
SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board