Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Power & Batteries
  4. ›How to Power an Arduino or ESP32 from Batteries
Step 3 of 16 in Arduino from zeroPart of a learning path.
Next

How-to · Beginner · 4 min read

How to Power an Arduino or ESP32 from Batteries

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerBattery options comparedPowering an Arduino Uno or NanoPowering an ESP32 or Pico from a Li-ion cellEstimating run timeESP32 deep sleep exampleWhat to avoidTry itCommon mistakesFAQsParts and next steps
Short answer

For an Arduino Uno or Nano, feed 7 to 12 V into VIN or the barrel jack (6 x AA works well), or regulated 5 V into the 5V pin or USB. For an ESP32 or Pico, use a single Li-ion cell through a low-dropout 3.3 V regulator, or 5 V USB from a power bank. Avoid 9 V PP3 batteries for anything beyond a demo: they hold little energy and sag quickly.

Key specs at a glance

Arduino Uno / Nano
VIN or jack 7 to 12 V; 5V pin needs regulated 5 V
ESP32
5 V on VIN/USB, or 3.3 V on 3V3 (LDO from a Li-ion cell)
Raspberry Pi Pico
VSYS 1.8 to 5.5 V: 2 x AA, Li-ion or USB directly
Typical current
Uno 45 mA idle; ESP32 80 to 250 mA with Wi-Fi, 10 µA in deep sleep
Run time
hours = mAh x 0.8 / mA
Power banks
Many switch off below about 50 to 100 mA load
!Safety: Lithium cells need care

A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.

01

Battery options compared

BatteryVoltageEnergyBest forAvoid for
9 V PP3 alkaline9 VAbout 500 mAhQuick Uno demos on VINMotors, Wi-Fi, anything over a day
4 x AA alkaline6 VAbout 2500 mAhPico (VSYS), 5 V boards via 5V pin at light loadUno VIN (6 V is just under the 7 V minimum)
6 x AA alkaline9 VAbout 2500 mAhUno/Nano VIN, weeks of low-power use
1 x 18650 / LiPo3.7 V2000 to 3500 mAhESP32 and Pico with LDO, rechargeable5 V boards without a boost converter
2S Li-ion7.4 V2000+ mAhUno VIN, robots with motorsNeeds BMS and matched cells
USB power bank5 V5000+ mAhAny board via USBLow-current sleepy projects (bank switches off)
9 V PP3 alkaline
Voltage:
9 V
Energy:
About 500 mAh
Best for:
Quick Uno demos on VIN
Avoid for:
Motors, Wi-Fi, anything over a day
4 x AA alkaline
Voltage:
6 V
Energy:
About 2500 mAh
Best for:
Pico (VSYS), 5 V boards via 5V pin at light load
Avoid for:
Uno VIN (6 V is just under the 7 V minimum)
6 x AA alkaline
Voltage:
9 V
Energy:
About 2500 mAh
Best for:
Uno/Nano VIN, weeks of low-power use
1 x 18650 / LiPo
Voltage:
3.7 V
Energy:
2000 to 3500 mAh
Best for:
ESP32 and Pico with LDO, rechargeable
Avoid for:
5 V boards without a boost converter
2S Li-ion
Voltage:
7.4 V
Energy:
2000+ mAh
Best for:
Uno VIN, robots with motors
Avoid for:
Needs BMS and matched cells
USB power bank
Voltage:
5 V
Energy:
5000+ mAh
Best for:
Any board via USB
Avoid for:
Low-current sleepy projects (bank switches off)
02

Powering an Arduino Uno or Nano

  • ✓VIN / barrel jack: 7 to 12 V. The onboard linear regulator drops it to 5 V and wastes the rest as heat, so 12 V with a 200 mA load makes it warm; 7.4 to 9 V is the sweet spot.
  • ✓5V pin: connect only a clean, regulated 5 V, such as a buck converter output or a USB power bank. It bypasses the regulator and the polarity protection.
  • ✓USB: the simplest option on the bench or with a power bank.
  • ✓Motors and servos get their own supply with a common ground; see motor drivers.
03

Powering an ESP32 or Pico from a Li-ion cell

An ESP32's pins need 3.3 V, and its Wi-Fi bursts draw over 250 mA. The AMS1117 on most dev boards needs about 4.4 V in, so a single cell (3.0 to 4.2 V) will not work through VIN. Instead, feed the cell into the 3V3 pin through a low-dropout regulator such as the ME6211, HT7333 or MCP1700 (250 to 500 mA), or buy a board with built-in charging (many ESP32 boards and the Pico-compatible boards include a JST connector and charger). Use a TP4056 to charge. The Pico's VSYS accepts the cell directly.

04

Estimating run time

Run time in hours is roughly capacity (mAh) x 0.8 / average current (mA).

  • ✓Uno idle at 45 mA on 6 x AA (2500 mAh): about 44 hours.
  • ✓ESP32 sending a reading every 10 minutes, deep sleep between, averaging 2 mA, on an 18650 (2600 mAh): about 40 days.
  • ✓ESP32 streaming over Wi-Fi at 150 mA on the same cell: about 14 hours.

Deep sleep is the biggest lever: ESP32 deep sleep draws about 10 µA for the chip, though cheap dev boards add 5 to 10 mA through their USB chip and LEDs. For long battery life, pick a board designed for it (for example a FireBeetle or a bare module) or remove the power LED.

05

ESP32 deep sleep example

Wake every 10 minutes, do work, sleep · Arduino C++Verify & upload in Electrolark
#define SLEEP_SECONDS 600

void setup() {
  Serial.begin(115200);
  // read sensors, send data here
  Serial.println("Going to sleep");
  esp_sleep_enable_timer_wakeup((uint64_t)SLEEP_SECONDS * 1000000ULL);
  esp_deep_sleep_start();     // setup() runs again on wake
}

void loop() {}
06

What to avoid

  • ✕Feeding 9 V into the 5V pin (destroys the board).
  • ✕Running an Uno from 4 x AA on VIN; at 6 V the regulator drops out and the board resets.
  • ✕Expecting a 9 V battery to run motors.
  • ✕Powering a Pi from a microcontroller-sized battery.
  • ✕Letting Li-ion cells discharge below 3 V without protection; use a protected cell or a TP4056 board with DW01A.
07

Try it: Battery life calculator

Change the values and the diagram and results update as you type.

08

Common mistakes to avoid

  • !Putting unregulated voltage into the 5V or 3V3 pin.
  • !Powering an ESP32 from one Li-ion cell through VIN and an AMS1117.
  • !Using a power bank for a sleepy project that draws too little to keep the bank awake.
  • !Sharing a weak battery between the microcontroller and motors.
  • !Using 9 V PP3 batteries for anything that must run for more than a few hours.
09

Frequently asked questions

Can I power an Arduino with a 9 V battery?

Yes, through the barrel jack or VIN, but a PP3 holds only about 500 mAh and sags under load, so it suits short demos only. Six AA cells give the same voltage with five times the energy.

Can I power an Arduino Uno with 4 AA batteries?

Not on VIN: 6 V is below the regulator's 7 V minimum. You can feed 6 V fresh alkalines into the 5V pin at light load, but it is out of spec; a 5 V buck or boost converter is the proper way.

How do I power an ESP32 with a 3.7 V battery?

Through a low-dropout 3.3 V regulator (HT7333, ME6211, MCP1700) into the 3V3 pin, or use an ESP32 board with a built-in LiPo connector and charger.

How long will an ESP32 run on an 18650?

About 10 to 15 hours with Wi-Fi active, or weeks to months using deep sleep between short transmissions.

Can I run an Arduino from a USB power bank?

Yes, by USB cable. Make sure the project draws enough current (about 50 to 100 mA) to stop the power bank from switching itself off, or choose a bank with an always-on mode.

Parts for this guide

  • Battery Holder
    ₹45View
  • 18650 Li-ion Rechargeable Cell
    ₹119View
  • TP4056 1A Li-ion Charger Module with Protection
    ₹19View
  • DC Power Adapter (5.5x2.1mm)
    ₹188View
Shop Battery Holders & ConnectorsShop Li-ion Cells & PacksShop DC-DC Converters

Calculators

Battery life calculatorLinear regulator heat calculatormAh to Wh calculatorBattery pack calculator

Terms in this guide

LDOLow-dropout regulator: a linear regulator that works with a small difference between input and output.Dropout voltageThe minimum difference between a linear regulator's input and output for it to stay in regulation.Deep sleepA low-power mode where most of a microcontroller is switched off, cutting current to microamps between tasks.mAhMilliamp-hours: battery capacity. 2000 mAh can supply 2000 mA for one hour or 200 mA for ten hours, in theory.Nominal voltageA battery's typical voltage during discharge, such as 3.7 V for a Li-ion cell.Buck converterA DC-DC converter that lowers voltage efficiently, for example 12 V to 5 V.

Keep learning

Component guideBeginnerLi-ion, 18650 and LiPo BatteriesLithium-ion cells, including 18650s and flat LiPo packs, store about 3.6 to 3.7 V nominal, charge to exactly 4.2 V and should not be discharged below about 3.0 V.4 min read · Power & BatteriesHow-toBeginnerTP4056 Charger ModuleThe TP4056 module charges one 3.7 V lithium cell from 5 V USB at up to 1 A using the correct constant-current, constant-voltage method, stopping at 4.2 V.3 min read · Power & BatteriesComparisonBeginnerVoltage RegulatorsA voltage regulator holds its output steady, such as 5 V or 3.3 V, while the input varies.4 min read · Power & BatteriesComponent guideBeginnerBuck and Boost ConvertersA DC-DC converter changes one DC voltage to another efficiently by switching current through an inductor.4 min read · Power & BatteriesComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComponent guideBeginnerArduino UnoThe Arduino Uno is a beginner-friendly microcontroller board that reads sensors and controls LEDs, motors and relays using simple C++ programs called sketches.5 min read · Boards & Microcontrollers

Sources

  • Arduino UNO R3 power section (Arduino)
  • ESP32 Series Datasheet, power consumption (Espressif Systems)
  • Raspberry Pi Pico datasheet, powering the Pico (Raspberry Pi Ltd)

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerBattery options comparedPowering an Arduino Uno or NanoPowering an ESP32 or Pico from a Li-ion cellEstimating run timeESP32 deep sleep exampleWhat to avoidTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹371

Battery Holder · 18650 Li-ion Rechargeable Cell · TP4056 1A Li-ion Charger Module with Protection · DC Power Adapter (5.5x2.1mm)

Run itChange the inputs and watch the output

Real sleep is 600 s; one wake cycle is shown every 3 s here.

0.14 mAAverage current
582 days2000 mAh lasts
Serial monitor115200 baud
Going to sleep

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question