connecting servos to BS1 project board
dmehling
Posts: 25
I am wanting to use the BS 1 project board to operate a small servo, but I'm not sure how I would hook it up. The documentation says it has the option for servo headers to connect a servo. Is this already on the board, or do I have to get something extra for this board?
Also I am wanting to power this through a car cigarette lighter. How do I connect an adapter for that to this project board? The link below is for the type of adapter I will be using.
http://www.brilliant-electronics.com/car_accessories_coby_ca709.htm
Also I am wanting to power this through a car cigarette lighter. How do I connect an adapter for that to this project board? The link below is for the type of adapter I will be using.
http://www.brilliant-electronics.com/car_accessories_coby_ca709.htm
Comments
The project board documentations says it can handle 6-15V so the only thing you'll need is a way to provide the 5v required for the servos.
good luck.
Added: the yellow lines in the image cross the holes of the proto board, but they don't accurately connect to those holes they only connect to the i/o pin. I just showing the lines as reference to show the connection.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Post Edited (Dgswaner) : 9/12/2007 12:18:48 AM GMT
Also could you explain how to connect this to the power source? I know the board doesn't provide power; what I want to know is how do I connect it to a car adapter (like the one in the link I provided) so I can power it with the cigarette lighter of a car.
Google "LM2805 power supply" and you should be able to easily find a power supply schematic. the cost for parts should only be a few $
good luck
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Post Edited (Dgswaner) : 9/13/2007 6:46:59 AM GMT
No the board doesn't not have a 5v regulator to power the servos, you will definitely need to add a 5v power source. OK my bad it's actually LM7805. sorry about that. here is a link to a page this is a very simple version. www.iguanalabs.com/7805kit.htm
this is a much better circuit but will be harder to make. www.electronics-lab.com/projects/power/025/
if you still need help I'll see if I can take a picture of exactly what you are trying to do. but I Won't be able to do that until later tonight.
here is a link to the pins for connecting the servo www.mouser.com/search/ProductDetail.aspx?R=517-6111TG
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
In studying the circuitry diagrams for this project, I have discovered a potential concern. I was going to use the QT113-D Touch Sensor (http://www.parallax.com/detail.asp?product_id=604-00038) to activate the program sequence for this project, and it of course needs a lead connected to one of the VSS pins. But if I understand correctly how to connect the voltage regulator and the servo, the two available VSS pins will be used. What can I do if I need a third lead connected to VSS? Or am I just misunderstanding something?
Okay, I think this covers everything. Thanks again for that helpful picture.
you need to connect the - (negative) side of the 5v power supply (the output) to VSS (ground) on the BS1 board. See the image, sorry it's a little crude.
The project board has 2 VSS pins because that's all there was room to conveniently have. you can have as many things connect to VSS as you want. it's ground. you can even have everything connect to one VSS pins. so when you connect the QT113 connect it to VSS where ever is the most convenient for you.
for the price of a capacitor, it's definitely worth putting in. if you look at the documentations for the project board it has a place to add a capacitor, if you run more than one or two servo I would add one there also.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Now, as for the very helpful drawing you provided, I have a few quick questions. Would the capacitor go between the output on the power supply and the VSS pin on the project board? And then am I supposed to connect the negative input (or is it called output?) of the servo to the VSS on the board and also the output pin of the power supply. And then on the car adapter, I see that I am supposed to connect power and ground to a place on the project board labeled input. Where is this input? It's not the jack for the AC power supply plug is it? And then I am also supposed to connect power and ground to the input pin of the power supply. The instructions for building the power supply say that I am supposed to connect the ground of the unregulated power supply (or car adapter) to the common pin on the power supply, but I don't see the common pin in your diagram.
Anyways, I guess that's all the questions for the moment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
the power supply doesn't need to be build on the project board but there is room so why not.. but if it's easier to keep things straight build it separate. go with what suits your needs/ability and project.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
I ran across this exchange on another forum regarding a similar project, and someone recommended not using a voltage regulator because it would fry. Do you know what they are talking about, and is this something I should be concerned about? Below is what was said:
Title: a few servo questions.
Post by: kwanzi on August 18, 2007, 09:19:57 PM
If the servo is connected to power but the signal wire is not connected, is it supposed to move? When I connect the servo to power, it twitches for a second. what does this mean? Also, if a servo is rated at 6 V max and the voltage I measured from the power source was found to be 6.22, is this significant enough to completely burn out the servo?
One more thing. Can you see anything wrong with this: Using two relays connected to a microcontroller to act as signal switches, and connecting the signal wire of each servo to the output of each relay? And both servos are connected to the same power source.
thanks....
Title: Re: a few servo questions.
Post by: Robotboy86 on August 19, 2007, 01:05:37 AM
It shouldn't burn it out, if you are SUPER worried, you can build a very simply circuit.. power in, 6v power convertor, and power out. Will drop that probaly a SMALL amount
Title: Re: a few servo questions.
Post by: Admin on August 19, 2007, 08:51:22 AM
Quote
If the servo is connected to power but the signal wire is not connected, is it supposed to move? When I connect the servo to power, it twitches for a second. what does this mean?
Sometimes electronic noise that appears like a normal signal can get to the signal line, causing random twitches. Dont worry about it.
Quote
Can you see anything wrong with this: Using two relays connected to a microcontroller to act as signal switches, and connecting the signal wire of each servo to the output of each relay? And both servos are connected to the same power source.
Unneccessary. The servo signal line is low power, so you can hook that up directly to the microcontroller. For a typical DC motor however, then you would want to use a MOSFET, not a relay. A microcontroller cannot power a relay :P
Title: Re: a few servo questions.
Post by: kwanzi on August 19, 2007, 10:34:00 AM
thanks for the feedback. But I had a problem when I connected the servos directly to the microcontroller. The servos were not giving the right amount of torque, so I measured the voltage as the servos were moving. The voltage dropped to about 3.5 V when they moved and then went back up to about 5 V when they weren't moving. I guess they weren't getting enough current...What's the best way to fix this?
Title: Re: a few servo questions.
Post by: kwanzi on August 19, 2007, 01:44:49 PM
So if the MOSFET is the best solution to this problem, I was wondering why a relay doesn't work?
Title: Re: a few servo questions.
Post by: Admin on August 19, 2007, 05:14:07 PM
Quote
The servos were not giving the right amount of torque, so I measured the voltage as the servos were moving. The voltage dropped to about 3.5 V when they moved and then went back up to about 5 V when they weren't moving. I guess they weren't getting enough current...What's the best way to fix this?
Quote
Also, if a servo is rated at 6 V max and the voltage I measured from the power source was found to be 6.22, is this significant enough to completely burn out the servo?
Im confused what your power supply is. What type of battery are you using? What is it's rated voltage? The problem you are having is that your power supply is not supplying power fast enough, causing drops during power drains.
I recommend using either a NiMH or NiCad type battery, rated at 6V, and at least 1200mAh. Do not use a voltage regulator for this, it will fry.
Quote
So if the MOSFET is the best solution to this problem, I was wondering why a relay doesn't work?
A relay is a high power switch. A MOSFET is a low power switch. A relay will require 100's of mA while a MOSFET requires .01's of mA. This is a very common confusion people have, so a quick search of the forum will give you more explanation.