Powering Arduino With a Battery

521,816

363

69

Introduction: Powering Arduino With a Battery

About: I post updates on twitter and instagram: @amandaghassaei

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

Electronics Tips and Tricks

Participated in the
Electronics Tips and Tricks

8 People Made This Project!

Recommendations

  • Soapmaking and Candlemaking Speed Challenge

    Soapmaking and Candlemaking Speed Challenge
  • Reclaimed Materials Contest

    Reclaimed Materials Contest
  • Robots Contest

    Robots Contest

69 Comments

0
filipmrsovic
filipmrsovic

10 months ago

Will this switch work, I'm guessing it will.

20210104_121028.jpg
0
zstevensonz
zstevensonz

Question 1 year ago

Hi! Lets say that I create and run a thermometer program on my Arduino Uno using a 9V battery as the power source. How do I access the data when I plug the Arduino back into my computer? (I do not have a SD card available) Thanks!

0
oconnell3
oconnell3

4 years 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?

0
Compu2
Compu2

Reply 3 years 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
VishalK123
VishalK123

Reply 4 years ago

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

0
dimitrakis1992
dimitrakis1992

4 years ago

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

0
sampoulton2004
sampoulton2004

Reply 3 years 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
GeorgeB133
GeorgeB133

4 years ago

Worked for me with a 4 AA battery pack

0
allanflanco
allanflanco

4 years ago

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

0
RobertD234
RobertD234

Reply 4 years ago

You should not puncture it

0
Shikashik
Shikashik

4 years ago

mine works only if connected.why is it so?

0
BhavikK2
BhavikK2

5 years ago

i am using 12v 8000mah battery for robowars

can i connect it directly to arduino?

0
NumairK
NumairK

5 years ago

How shall i make it work

0
Jon-MichaelC
Jon-MichaelC

5 years ago

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

0
JonhD82
JonhD82

5 years ago

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

0
ArifSae
ArifSae

5 years ago

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

0
ArifSae
ArifSae

Reply 5 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