Powering Arduino With A Battery
Powering Arduino With A Battery
https://www.instructables.com/id/Powering-Arduino-with-a-Battery/
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) 9V Battery
(1x) toggle switch (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:
| Umair Hussaini
Arduino
The Arduino Uno has undergone many revisions, and hence the power supply circuit has
evolved to an almost foolproof design. In this project, we will learn about the four different
ways in which we can power up the Arduino Uno. While making projects, it is necessary to
know the following techniques, since there are instances when flexibility with regards to the
power supply is required.
We can power up the Arduino using power supplied from the computer via a USB cable
and/or by using external power sources.
The USB port of the Arduino Uno can be connected to a desktop/laptop. If the connection is
enumerated, i.e. the computer recognizes the device, the current supplied to the board is
500mA at 5V. If the connection is not enumerated, 100mA is supplied at 5V.
USB Enumeration
It is the process by which the host computer identifies a device to load the appropriate driver
and learns the capabilities of the device
2. Using an AC to DC adapter plugged into the barrel connector
The barrel connector is 2.1mm in diameter. The center pin is positive, and the outer sleeve is
grounded.
The barrel connector can be supplied an input of 7-12V. This is regulated to 5V by the
onboard voltage regulator, and the board is powered on.
3. Using 5V input
A voltage regulator can be used to supply fixed 5V input to power up the Arduino
It is possible to power up the Arduino using the 5V and GND pins, provided that the input
given is steady and regulated 5V. The 5V pin bypasses the voltage regulator and all the safety
measures present on the Arduino Uno, so if the input exceeds 5V (5.5 is the maximum upper
limit), the board can be damaged. It is generally advised to avoid powering up the Arduino
Uno using this method.
4. Using batteries greater than 5V
Connect a 9V battery with the positive terminal connected to the Vin pin and the negative
terminal connected to the GND pin. The Vin port allows an input between 7 and 12 Volts, but
we recommend to use a 9V battery. Depending on your application you can input 12V too but
make sure the current values stay around 500mA.