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. ›Sensors
  4. ›Voltage Sensor Modules

How-to · Beginner · 3 min read

Voltage Sensor Modules

Dividers, Attenuators and Measuring Voltage Safely with Arduino and ESP32

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerHow a voltage sensor module worksWiringAccuracy tipsSafetyWhen to use an INA219Try itCommon mistakesFAQsParts and next steps
Short answer

Microcontroller ADC pins read only 0 to 3.3 V or 5 V. A voltage sensor module is a precision divider that scales a higher voltage (often up to 25 V) into that range. Connect it with a common ground, read the ADC, then multiply by the divider ratio. Calibrate against a multimeter, and use an INA219-type sensor when you also need current or higher accuracy.

Key specs at a glance

Principle
Resistive divider (for example 5:1)
Input range
Commonly up to 25 V on small modules
Output
0 to 5 V or 0 to 3.3 V analog
Accuracy
About 1 to 3% before calibration
Resolution
Set by the ADC (10 to 12 bit)
Alternatives
INA219/INA226 power monitors over I2C
01

How a voltage sensor module works

Two resistors form a divider. A module with a 30 kΩ and 7.5 kΩ pair divides the input by 5, so 25 V becomes 5 V at the output. Your code multiplies the ADC reading by the ratio to get back the real voltage. The voltage divider tool works out resistor values and output.

02

Wiring

  1. 1
    Connect the module's ground to your microcontroller's ground.
  2. 2
    Connect the input terminals to the voltage you want to measure; check polarity.
  3. 3
    Connect the signal pin to an analog input.
  4. 4
    Read the pin and calculate: voltage = ADC value / full scale × reference × divider ratio.
  5. 5
    For a 3.3 V board choose a module whose output stays under 3.3 V at the maximum input.
03

Accuracy tips

Use a stable reference, average several samples and calibrate against a multimeter at two known voltages. ESP32 ADCs are non-linear and benefit from calibration tables; see ADC basics and the ADC resolution tool. Add a small capacitor across the output to reduce noise.

04

Safety

Dividers draw a small current and do not isolate you from the input. Never measure mains with a bare module. For battery packs above the module's rating, use a bigger divider ratio or an isolated measurement device. See power supply basics and multimeter use.

05

When to use an INA219

An INA219 or INA226 measures voltage and current over I2C with a built-in shunt amplifier, which suits battery monitors and power meters; see battery fuel gauges and ACS712 current sensors.

06

Try it: Voltage divider calculator

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

07

Common mistakes to avoid

  • !Not sharing ground with the microcontroller.
  • !Exceeding the module's maximum input.
  • !Using a divider that outputs more than the ADC range.
  • !Assuming the reading is perfectly linear on ESP32.
  • !Using a bare divider on mains.
08

Frequently asked questions

What is the maximum voltage I can measure?

Check the module label, often 25 V.

Can I measure 12 V with ESP32?

Yes with a divider that brings it under 3.3 V.

Why does my reading drift?

ADC reference drift, noise or the resistor tolerance.

Do I need a capacitor?

A small one can smooth noise.

Can it measure current?

No. Use a current sensor or INA219.

Parts for this guide

  • DFRobot Gravity Analog Voltage Divider V2 – Voltage Detection Module
    ₹389View
  • Adafruit INA219 FeatherWing – High-Side Current Sensor
    ₹719View
Shop Voltage Sensors & Attenuators

Calculators

Voltage divider calculatorAdc resolution calculator

Terms in this guide

Voltage dividerTwo resistors in series that output a fixed fraction of the input voltage.ADCAnalog-to-digital converter: turns a voltage into a number. A 10-bit ADC gives 0 to 1023; a 12-bit ADC gives 0 to 4095.VrefOn stepper drivers, the reference voltage that sets the coil current limit.ToleranceHow far a component's actual value may differ from its marked value, such as ±5%.

Projects that use it

Put this into practice: 33 step-by-step builds in our project library use parts from this guide.

Intermediate · 1–2 hoursDC energy meter in watt-hoursView projectBeginner · 1 hourSolar panel power meterView projectIntermediate · 1–2 hoursDIY USB power meterView project
Browse all 33 projects

Keep learning

Concept explainerBeginnerADCs ExplainedAn analog-to-digital converter (ADC) measures a voltage and returns a number.4 min read · Electronics FundamentalsComparisonIntermediateACS712 vs INA219 Current SensorsThe ACS712 is a Hall-effect current sensor that outputs an analog voltage centred at 2.5 V, rising or falling 185, 100 or 66 mV per amp for its 5, 20 and 30 A versions.3 min read · SensorsComponent guideIntermediateBattery Monitors and Fuel GaugesBattery percentage is hard to guess from voltage alone because it changes with load and temperature.3 min read · Power & BatteriesHow-toBeginnerHow to Use a MultimeterTo measure voltage, set the multimeter to V DC, plug the red lead into the V/Ω jack and the black into COM, then touch the leads across the part.3 min read · Tools & Workshop SkillsComponent 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

  • DFRobot module documentation
  • Texas Instruments INA219 datasheet

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

On this page
Short answerHow a voltage sensor module worksWiringAccuracy tipsSafetyWhen to use an INA219Try 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 guide2 items · ₹1,108

DFRobot Gravity Analog Voltage Divider V2 – Voltage Detection Module · Adafruit INA219 FeatherWing – High-Side Current Sensor

Ask the Community

Ask a question