Society of Robots
     | Robot Forum | Robot Tutorials | Robot FAQ |
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2009, 10:21:30 PM

Login with username, password and session length
Search:     Advanced search
SoR Robot Chat every friday night. Join us!
http://www.societyofrobots.com/robotforum/chat/

Robot Forum
72,667 Posts in 9,267 Topics by 5,291 Members
Latest Member: lepomis
* Home Help Help Login Register
0 Members and 1 Guest are viewing this topic.
Pages: [1] Print
Author Topic: Arduino bot only works on USB power  (Read 364 times)
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« on: November 06, 2009, 09:01:22 PM »

I just finished my arduino bot this week and I'm having a problem with the power. Its simply a wall avoiding robot that uses two modified servos and a ping sensor (powered by the arduinos 5v output). I seems to work fine when I plug the USB in for power,but as soon as I use a 9v battery the ping sensor stops working. Everything else works.

my guess is that the sensor automatically shuts off because the arduino regulator isn't doing a good job at regulating the 9v.

Any ideas/solutions?
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #1 on: November 06, 2009, 10:35:33 PM »

Have you tested the regulator output with and without loads while the 9v is connected?
Logged

you can call me James.
check out my site
Ro-Bot-X
Contest Winner
Supreme Robot
****

Helpful? 10
Offline Offline

Posts: 1,117


Current project: MiniEric robot.


View Profile
« Reply #2 on: November 07, 2009, 05:28:26 AM »

The Ping sensor doesn't need too much power, but the servos do. The servos probably take whatever it is available and because the sensor does not have enough, it shuts down. Solution: use a 6V battery to power the servos directly and leave the Ping sensor connected to the regulated 5V. Be sure you connect all grounds together.
Logged

Check out my new blog!
 SeriousRobotics
Soeren
Supreme Robot
*****

Helpful? 33
Offline Offline

Posts: 1,033


Whatever Works... Works.


View Profile
« Reply #3 on: November 07, 2009, 09:41:33 AM »

Hi,

[...] as soon as I use a 9v battery the ping sensor stops working. Everything else works.

my guess is that the sensor automatically shuts off because the arduino regulator isn't doing a good job at regulating the 9v.

Any ideas/solutions?
The reason it shuts down is likely the inrush surge. an (alkaline) 9V (PP3) has slightly less than half the capacity of an (alkaline) AAA cell! and the internal resistance of the PP3 is much higher (for a slightly used cell, it can be several Ohms). PP3s are just too weenie for anything using serious currents.

Best thing is to use larger cells of course, but you can remedy things a little, by placing a large capacitor over the battery (preferably after the power switch and as close to the load as physical possible).
The lower the ESR of the cap(s) the better, so a handfull of smaller caps will be better than one large with the equivalent capacity.
Logged

Regards,
Søren

>>> Whatever Works... Works <<<
awally88
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 191



View Profile
« Reply #4 on: November 08, 2009, 05:41:51 PM »

How are you connecting the 9V battery to the Arduino? Through the barrel plug? Are you sure that you have the connectors the correct way if you are?
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #5 on: November 08, 2009, 09:28:29 PM »

If it was the wrong way how could everything else work?
Logged

you can call me James.
check out my site
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #6 on: November 09, 2009, 12:19:52 AM »

Ok so I'll try giving it more amps and if that doesn't work I'll have to put the servos on a different circuit.
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #7 on: November 09, 2009, 01:27:46 AM »

Wait, whats powering the servos? Regulated or 9v?
Logged

you can call me James.
check out my site
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #8 on: November 09, 2009, 05:39:28 PM »

Regulated
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #9 on: November 09, 2009, 06:12:32 PM »

That might be why, the servos might be drawing too much current...
Logged

you can call me James.
check out my site
awally88
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 191



View Profile
« Reply #10 on: November 09, 2009, 07:03:42 PM »

@Smash

I thought that the output wasn't regulated which is why I asked, the regulator in the Arduino switches if its wired in the wrong way I believe. I always generally use my power supply with Arduino so I wasn't sure.


@ Hawaii00000

Can you write a program which just gets a value from the sensor and kill all the code which deals with the servos and see if it works.
Logged
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #11 on: November 09, 2009, 11:23:16 PM »

Ok I finally got it working, but its kinda unpredictable. Sometimes it works, sometimes it doesn't. The arduino does have a home-made shield on it. Could that be cause some kind of noise that messes everything up?
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #12 on: November 09, 2009, 11:54:38 PM »

Nah, a homemade shield shouldn't screw anything up, unless its shorting something...
It shouldn't cause much noise unless its switching high voltages or motors etc...
Logged

you can call me James.
check out my site
Soeren
Supreme Robot
*****

Helpful? 33
Offline Offline

Posts: 1,033


Whatever Works... Works.


View Profile
« Reply #13 on: November 10, 2009, 02:44:39 AM »

Hi,

Ok I finally got it working, but its kinda unpredictable. Sometimes it works, sometimes it doesn't. The arduino does have a home-made shield on it. Could that be cause some kind of noise that messes everything up?
Did you place a cap or two (in the range 47µ to 470µ) between the output of the regulator and the load(s).
Logged

Regards,
Søren

>>> Whatever Works... Works <<<
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #14 on: November 10, 2009, 03:12:54 PM »

Nope none whatsoever.
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #15 on: November 10, 2009, 11:10:00 PM »

Maybe try placing one on the line close to the load, as close as possible to absorb some of the spikes etc...
Does the regulator get hot at all? when the servos are running, they may be drawing too much current and not leaving any for the ping, maybe consider getting a 6v battery for the servos?
Logged

you can call me James.
check out my site
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #16 on: November 11, 2009, 06:42:10 PM »

Ok I'll give it a try. The regulator's doing fine, I haven't actually been running it for long periods of time yet.
Logged
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #17 on: November 13, 2009, 07:21:55 PM »

Does it matter what type of cap? I think the one I have is electrolytic.
« Last Edit: November 13, 2009, 07:25:06 PM by Hawaii00000 » Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #18 on: November 13, 2009, 09:03:37 PM »

Yeah, electrolytic are the ones you need Tongue
Logged

you can call me James.
check out my site
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #19 on: November 15, 2009, 11:39:24 PM »

Ok so I put a 100µF electrolytic capacitor where the "5v to sensor/servo connection." Is that right because now the board only turns on with the USB... kinda weird.
Logged
SmAsH
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 3,285


SoR's Locale Electronics Nut.


View Profile WWW
« Reply #20 on: November 16, 2009, 01:44:36 AM »

You sure the batteries are charged?
Try to place the cap as close to the servos as possible.
Logged

you can call me James.
check out my site
WhomBom
Jr. Member
**

Helpful? 0
Offline Offline

Posts: 28


View Profile
« Reply #21 on: November 18, 2009, 05:37:25 AM »

I experienced the same problem with my arduino bot, i solved it by running the arduino of a 7,2v battery and the servos off a separate 6V battery pack (7,2 will fry most servo's) make sure the grounds are connected though. this way servo's sucking away power won't influence the arduino power supply.
Logged
Hawaii00000Topic starter
Robot Overlord
****

Helpful? 0
Online Online

Posts: 164


View Profile
« Reply #22 on: Today at 12:19:42 AM »

Hey guys, sorry for the late reply- I've had a really crazy week. Anyways the arrow on the cap should be pointing toward the sensors/ servos right? And is there difference btween µF and µ?
Logged
Pages: [1] Print 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
DC motor and arduino power
Electronics
chelmi 1 1346 Last post January 14, 2009, 09:02:21 AM
by Admin
Arduino the power hog!- help with running the Arduino at a lower voltage (3.3v?)
Electronics
Hawaii00000 4 1459 Last post January 16, 2009, 08:07:32 PM
by Kirk
Arduino...Not enough power pins! « 1 2 »
Electronics
blackheart 33 1415 Last post March 20, 2009, 08:16:50 PM
by SmAsH
it works!!!! ARDUINO
Electronics
aventgps 1 141 Last post October 12, 2009, 10:21:34 PM
by SmAsH
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Advertise on this Forum