GlossaryCurrent sensing
Current sensing
Current sensing is measuring the electric current flowing in a circuit, such as a motor phase, a battery or a power rail, and turning it into a signal a controller can read. It is the basis for motor control, battery monitoring and overcurrent protection.
How it works
The most common method is a shunt resistor: a small, precise resistor in the current path. Current through it produces a voltage proportional to the current, by Ohm's law. A 1 milliohm shunt carrying 20 A develops 20 mV, which an amplifier scales up for an analog-to-digital converter. Shunts are accurate, cheap and fast, but they dissipate power and sit in the circuit.
Magnetic sensors measure the field around a conductor instead. Hall-effect sensors are isolated from the measured current and suit high currents. Current transformers work for AC. Other magnetic sensor types offer higher bandwidth or accuracy.
Placement matters. Low-side sensing, between the load and ground, is simple but does not catch shorts to ground. High-side sensing, between supply and load, catches all faults but needs an amplifier that tolerates high common-mode voltage. In motor drivers, current is measured in each phase or in each low-side leg, synchronized with the PWM cycle.
Precise shunts use special resistance alloys and four-terminal Kelvin connections, a method NIST documents for precision resistance measurement, so the measured voltage excludes the resistance of the connections.
Shunt sensing vs Hall-effect sensing
A shunt is accurate, linear and cheap, but it is not isolated and its power loss grows with the square of current. A Hall sensor is isolated and has negligible loss, but costs more and has more offset and drift with temperature. Shunts suit most low-voltage designs. Hall sensors suit high currents and places where isolation is required.
Why it matters
Motor control needs current to set torque. Batteries need it to estimate charge and protect cells. Every power system needs it to catch faults before parts burn. Poor current sensing shows up as rough motors, wrong battery readings and protection that trips late or falsely.
How to get it right
- Size the shunt so full-scale current gives a usable voltage without excess heat.
- Use Kelvin connections from the shunt pads to the amplifier.
- Route sense traces as a tight pair away from switching nodes.
- Pick an amplifier with common-mode range and bandwidth for the location.
- Calibrate offset and gain at production test.
- Filter carefully, since too much filtering delays fault detection.
Current sensing in robotics and drone hardware
Drone electronic speed controllers and robot joint drivers sense phase currents for field-oriented control and protection. Battery systems measure pack current for state of charge and limits. Power distribution boards sense current per branch, so faults are traced and logged to a specific motor or payload.