What Is a Current Sensor? How It Measures Current

2026-09-24

A current sensor is a device that measures the electric current flowing through a conductor and converts it into a usable signal. That signal is usually a proportional voltage that a meter, controller, or microcontroller can read. Without it, any system that charges batteries or drives motors would be operating blind.

What Is a Current Sensor?

Current sensors sit in the power path of a circuit and produce an output that tracks the current in real time. Some output an analog voltage, while others provide a digital reading over a bus such as I2C. The input side is either a precision resistor in series with the load or a magnetic element near the conductor.

Two families dominate practical designs. Direct sensors insert a small resistance into the circuit and measure the voltage across it. Indirect sensors detect the magnetic field that every current naturally produces, so they need no electrical contact with the conductor.

How Does a Current Sensor Work?

The measurement principle depends on the sensing technology. Each approach trades accuracy, isolation, and cost differently. The three most common technologies work as follows.

  • Shunt resistor: a very low-value precision resistor develops a small voltage drop, which an amplifier scales up. Ohm's law makes the drop exactly proportional to current.
  • Hall-effect sensor: the conductor's magnetic field deflects charge carriers in a thin semiconductor plate. The resulting voltage is proportional to the field, and therefore to the current.
  • Current transformer: the primary conductor acts as a transformer winding, inducing a scaled secondary current. This method only works for alternating current.

Because a shunt is wired in series, its measurement shares the circuit's ground reference. Hall-effect and transformer types keep galvanic isolation between the high-current path and the electronics. That isolation is often the deciding factor in industrial designs.

Hall-Effect vs Shunt vs Current Transformer Compared

Choosing a sensing technology starts with a side-by-side comparison. The table below summarises the practical differences. Match the columns against your project's voltage, accuracy, and budget constraints.

Attribute Shunt resistor Hall-effect Current transformer
Measures DC Yes Yes No
Galvanic isolation No Yes Yes
Power loss Small but continuous Negligible Negligible
Typical accuracy High with good amplifier Moderate to high Moderate
Relative cost Low Medium Medium to high

For battery-powered electronics, shunt-based measurement gives the best accuracy per dollar. For mains or high-voltage paths, Hall-effect sensors provide isolation at a reasonable cost. Current transformers remain the standard choice for AC metering panels.

Reading a Current Sensor With a Microcontroller

Most hobby and maker modules output an analog voltage centred on a reference point. A microcontroller's ADC converts that voltage into a number, and simple math converts the number into amps. The calibration sequence below applies to typical analog-output modules.

  1. Connect the sensor's output to an ADC input and note the supply voltage.
  2. With no load connected, record the zero-current output voltage as the offset.
  3. Apply a known load current and record the output voltage again.
  4. Divide the voltage change by the known current to get the sensitivity.
  5. Store the offset and sensitivity, then use them to convert all future readings.

This two-point calibration removes most module-to-module variation. It also compensates for the ADC's own reference tolerance. Designs needing better accuracy add a precision voltage reference and average many samples.

Applications: Battery Monitoring and Motor Control

Current sensing appears wherever energy must be tracked or protected. Two applications account for most designs that makers and engineers build. Both illustrate why accuracy matters differently in each case.

In battery-powered systems, a current sensor tracks charge and discharge over time to estimate state of charge. Small errors accumulate here, so low offset drift matters more than raw speed. Battery management systems typically pair a shunt with a dedicated fuel-gauge IC.

Motor control uses current as a proxy for load and health. A stalled motor reveals itself through a sudden current spike, which the controller can react to within milliseconds. Overload protection, torque estimation, and efficiency tuning all rely on this same reading.

Choosing a Current Sensor Module for Arduino Projects

Modules for hobby use bundle a sensing element with amplification and terminals. A short checklist filters the options quickly. Check these five points before buying or designing.

  • Measurement range: peak currents must stay inside the rated span, with margin above your worst case.
  • Isolation requirement: any connection to mains or high-voltage DC demands an isolated sensor.
  • Output type: analog output suits a plain ADC input, while digital buses reduce wiring and noise.
  • Resolution needed: estimate the smallest current change that matters, then check the noise floor.
  • Supply compatibility: 5 V boards and 3.3 V boards need modules with matching supply and output ranges.

Most Arduino-era modules use a 5 V supply and an analog output centred at half the supply. That centred output allows bidirectional measurement, showing both charge and discharge. Verify this detail against your board's logic level before wiring anything.

Frequently Asked Questions

Can I measure current without breaking the circuit?
Yes, with a clamp-style or Hall-effect sensor that surrounds the conductor. These inductive and magnetic designs read the field without any electrical contact.

Why does my shunt reading drift with temperature?
Resistor value changes with temperature, shifting the reading. Using a low-tempco shunt and keeping power dissipation low minimises the drift.

What is the difference between AC and DC current sensors?
DC sensors must respond to a steady field, so they use shunts or Hall elements. Simple current transformers only see changing fields, which rules out pure DC.

How accurate are hobby current sensor modules?
Typical modules achieve a few percent after calibration. Accuracy improves when you calibrate at two points and keep the sensor away from heat sources.

Reference Sources