Arduino + 2x servos + No H-bridge? :S

Hi, my first post. :slight_smile:

I'm just getting into electronics and hardware (have some experience in programming), and some things are confusing.

My first project is to build a basic "robot" with the arduino + two servos (Parallax Power 6vdc max

Average Speed 60 rpm. Note: with 5vdc and no torque) + phototransistors.

  1. Do I have to use "external" power/batteries for the servos? (May sound doh but I'm just a n00b, ok? :))
  2. I don't need to use a H-bridge, right? That's just for DC-motors?

I don't want to fry anything :stuck_out_tongue:

I hope I don't ask already answered questions. I searched for it without success.

Regards, Andreas
(sorry for language errors. I'm swedish and it's been a while since I practiced my english super powers)

you need a separate supple you join up the red and black to 5 volts and ground and the white line to the arduino. and then get the board to produce a PWM. Just google PWM for more information about this.

hope this is a start

bren

you need a separate supple you join up the red and black to 5 volts and ground and the white line to the arduino. and then get the board to produce a PWM. Just google PWM for more information about this.

hope this is a start

bren

Thanks a bundle!

My robot does this just fine with servos PWM input directly connected to arduino, but powered from batteries directly:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1173623665

-Z-

My robot does this just fine with servos PWM input directly connected to arduino, but powered from batteries directly:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1173623665

-Z-

Okay, cool. Seems like the risk of exploding arduino just decreased :stuck_out_tongue:
I also checked the Spooky project class 3, very helpful.
Thank you.
I hope my ordered parts arrive soon. I will try to learn more about electronics till then.

Okay, this is my first creation :stuck_out_tongue:

So.. how should I wire this thing to the batteries? I doesn't work with just the 9v battery to the arduino. It "boots" but nothings happening.
I also tried to wire the servos red and black cables to four AA-s (both 6V and ground). Did not work. Also tried to wire the red cable to the four AA's plus and the black to arduinos ground. Did not work... Going crazy here. Feels like this basic thing will stop me from doing the fun stuff :stuck_out_tongue:

I bought a new 9v with same results.

Greatful for help!

edit: Oh, maybe I must use a capacitor somewhere? ::slight_smile: :-?

BTW, this is how it lookes under the hood.

www.thilander.eu/annat/segalbot.jpg

Couple things to check/try:

Power jumper to external.

Add 10k resistor between RX and ground.

Do what digger said with the external resistor, and try to power your servos with less than 9V, they are supposed to be run at 5-6V. This is a bit of problem for the arduino board, which requires a power supply of >7V.

I tried powering my robot with a 11.1V LiPo pack, but my servos didn't like that at all! So I chose to use 6 AAs. This gave ok results when the batteries were fully charged at 1.4 V per battery, but I can only run the robot till the batteries were half empty, since arduino starts to cut out when the AA battery voltages get to around 1V. I added a 100uF cap to help reduce the low volt problem when the servos demand a burst of current, this made the run time a bit longer when the batteries were low.

-Z-

So I tried with the resistor but with no luck.

Must be low qualiity batteries or something because it can't even run the servo alone.

This is what I have tried in my desperation:
(just servo, no other stuff)

9v battery to arduino, servo to 5v arduino pin, gnd pin, and pin7 for control (servo "buzzes" for a moment but nothing more).
9v battery to arduino, servo to 4 AAs, gnd to arduinos pin and pin 7 for control.
9v battery to arduino, servo to 4 AAs, servo GND to 4 AAs, pin 7 for control.

No luck at all..
The jumper is in the right place for ext power.

I will buy a 6 aa battery holder like you zitron and some nice batteries. Maybe that will work. Otherwise I'll just have to wait with this stuff till I've studied more..

Must get a multimeter...
Thanks guys, I really appreciate it

edit1:
The weirdest thing just happened. I plugged it into the computer but changed the jumper to external. Also plugged in the battery. And it works, with head and everything.
Then I unplugged the computer and it still ran! But when I unplugged the battery and then plugged in the battery again nothing happens. Tried the computer method again, works like a charm.
It's like I have to jump start it with the computer :confused:
Any ideas?

So I tried with the resistor but with no luck.
edit1:
The weirdest thing just happened. I plugged it into the computer but changed the jumper to external. Also plugged in the battery. And it works, with head and everything.
Then I unplugged the computer and it still ran! But when I unplugged the battery and then plugged in the battery again nothing happens. Tried the computer method again, works like a charm.
It's like I have to jump start it with the computer :confused:
Any ideas?

This is what the 10K resistor between RX and ground fixes. Without it the chip is never getting past the bootloader due to noise on the line. Are you sure you had the resistor in place correctly and it was making contact?

This is what the 10K resistor between RX and ground fixes. Without it the chip is never getting past the bootloader due to noise on the line. Are you sure you had the resistor in place correctly and it was making contact?

I could kiss you right now... Tried again and soldered real "pin connectors" (...) to the resistor. Worked absolutely 100%. Thank you so much :smiley:

I will go to sleep now, ashamed, but happy =)

Glad it worked out, no kiss needed :smiley: