Powering Arduino With a Battery

383,206

344

68

About: I'm a Research Engineer at Adobe. Previously, I was a grad student at the Center for Bits and Atoms at MIT Media Lab. Before that, I worked at Instructables, writing code for the website and iOS apps and m...

Make your Arduino projects portable by using a battery for power. From the Uno and Mega documentation pages:

"The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts."

I've found that using 9V works well. You can simply connect the + end of your battery to Arduino Vin and the - end to Arduino ground (fig 1). You should see the green light on the Arduino turn on to indicate that it is powered.

It's also a good idea to attach a toggle switch in series with this battery so that you can turn your Arduino off and on. As shown in the images above, solder a toggle switch to the red lead from the 9V battery connector. Connect the black lead from the battery connector to one of the Arduino's ground pins, and connect the lead from the toggle switch to Arduino's Vin pin. Snap a battery to the connector. Now your Arduino will turn on when the switch is closed and turn off when it is open (figs 5 and 6).

Parts List:

(1x) Arduino Uno Amazon

(1x) 9V Battery Amazon

(1x) 9V Battery snap connector Amazon

(1x) toggle switch Amazon (this one is a little different that that pictured, but it will work the same)

Alternatively, you can find these 9V snap connectors with the same n-tye barrel plug as the Arduino and plug into the barrel socket on the Arduino directly:

(1x) 9V battery snap connector to barrel plug Amazon

7 People Made This Project!

Recommendations

  • First Time Author

    First Time Author
  • Make it Glow Contest 2018

    Make it Glow Contest 2018
  • Toys Contest

    Toys Contest

68 Discussions

0
None
TylerM185

Question 17 days ago on Introduction

I'm currently researching and looking at ways to do my college engineering project and this is exactly how I was to go about powering it, kinda. Question though, I'm looking to use a 12V solar panel to charge a 9V battery. Is there anyway I can pull off hooking a solar panel to the battery and use a battery snap connector/DC power plug snap connector?

Just to reference for any answers/replies, I'm not the most adept with electrics, but I'm having to/wanting to learn so I can know it and graduate.

1 more answer
0
None
alberto7TylerM185

Answer 5 days ago

You're going to need some way to step it down from 12V to 9V.
The better way to do this is to get a charge regulator or voltage regulator for it. That'll convert from 12V down to 9V. Reason why I'm saying charge regulator is that I don't know the type of battery that you're using, and kinda don't want a lipo to go boom somewhere...
A quick and dirtier way to do this is to stick diodes in series. Not recommended, but diodes are dirt cheap, and if anything's going to fail in the system, as long as the voltage doesn't go above 9V, it's likely to be those.


The other way is to get a battery at 12V. The Arduino can take anywhere between 6-20VDC (if we're pushing it to the limits).

0
None
oconnell3

1 year ago

So you program your arduino using a computer and then disconnect and run that program off of a battery? correct? I am assuming you can only run one program then ? To switch to another program you would have to start over with a computer?

2 replies
0
None
Compu2oconnell3

Reply 6 weeks ago

Or you can write your program to carry out the different functions you want based on input received from a physical button or something. If you only had a few basic ones it might be worth merging that way.

0
None
VishalK123oconnell3

Reply 1 year ago

Yes that has to be necessary, as new code has to be loaded using the loader

0
None
dimitrakis1992

1 year ago

Hello sir.I have a question.When Arduino is off draw current?Please answer.Thank you

1 reply
0
None
sampoulton2004dimitrakis1992

Reply 6 months ago

If you use a switch like on here, then the circuit will become physically disconnected when turned off, so no it won't.

0
None
GeorgeB133

1 year ago

Worked for me with a 4 AA battery pack

0
None
allanflanco

1 year ago

i want to use a Lipo battery for my RC car project,what should i do and dont?

1 reply
0
None
Shikashik

1 year ago

mine works only if connected.why is it so?

0
None
BhavikK2

2 years ago

i am using 12v 8000mah battery for robowars

can i connect it directly to arduino?

0
None
NumairK

2 years ago

How shall i make it work

0
None
Jon-MichaelC

2 years ago

If this was a rocker with an led where would you wire the led in

0
None
JonhD82

2 years ago

Looks like that is turning into a real product: https://bitbucket.org/talk2/whisper-node-avr/overview

0
None
ArifSae

2 years ago

The chip is rated at max 5.5V, I dont know if the Vin passes through regulator. are you about this?

1 reply
0
None
ArifSaeArifSae

Reply 2 years ago

ok so googling says

If you use the VIN pin, you bypass the diode, but you still have the dropout voltage of the regulator,

But regulator will eat your battery

0
None
guzforster

2 years ago

Do you know for how long the Arduino will operate if we never turn off the supply?