CURRENT SENSOR

Photo of author

By Jackson Taylor

Home » Hardware » CURRENT SENSOR

As an Amazon Associate we earn from qualifying purchases.

A current sensor tells your project how much current is flowing through a wire. That is useful for monitoring a motor, checking whether a load is on, logging power use or protecting a circuit from overload. This page covers three common options: the ACS712 5A module, the ACS712 20A module and a 5A CT current transformer. It explains how each one works and which one fits which job.

Quick comparison

  • ACS712 5A module: Hall-effect sensor, works with both AC and DC, best for small loads up to 5 A.
  • ACS712 20A module: same design with a higher range, for loads up to 20 A in either direction.
  • 5A CT current transformer: AC only (50/60 Hz), isolates the measuring circuit from the monitored wire, maximum 5 A.

If you need to measure DC, such as a battery or a solar panel, choose an ACS712 module. A CT cannot measure DC at all.

AC / DC 5A Current Sensing Module ACS712

ACS712 5A current sensing module, a small blue PCB with screw terminal
ACS712 5A current sensing module

This module is built around the ACS712ELC-5A chip. The chip passes the measured current through an internal copper path and senses the magnetic field it creates (the Hall effect). Because the current path is separate from the signal pins, the low-voltage side of your circuit is electrically isolated from the wire being measured.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video
  • Sensor chip: ACS712ELC-5A
  • Powered from 5 V, with an on-board power indicator
  • Measures plus or minus 5 A, with an analog output of about 185 mV per amp
  • With no current flowing, the output voltage sits at VCC / 2 (about 2.5 V on a 5 V supply)
  • PCB size: 31 mm x 13 mm

The original listing for this module quoted the 20 A range and 100 mV/A figure. Those belong to the 20 A version below. The 5 A chip has the higher sensitivity, which gives better resolution at low currents.

Listed price: 175. Stock levels change, so check availability before ordering.

AC / DC 20A Current Sensing Module ACS712

ACS712 20A AC/DC current sensing module board seen from above
ACS712 20A current sensing module

The 20 A module works the same way as the 5 A one but is built for heavier loads. It measures plus or minus 20 A and outputs about 100 mV per amp. As on the 5 A board, the output rests at VCC / 2 when no current passes through.

See also
UART - 8051

Lower sensitivity means each amp moves the output less, so very small currents are harder to read accurately. Do not use the 20 A version for a 200 mA load if a 5 A version will do.

Listed price: 175. Check current availability before ordering.

How to read the ACS712 output

The module gives an analog voltage. To turn it into amps, subtract the zero-current offset and divide by the sensitivity:

Current (A) = (measured voltage – VCC/2) / sensitivity

For the 5 A module, use 0.185 V per amp. For the 20 A module, use 0.100 V per amp. A negative result means the current flows in the opposite direction through the sensor.

Using it with a microcontroller

Connect VCC and GND to a 5 V supply, and the OUT pin to an analog input. A 10-bit Arduino-style ADC on a 5 V reference has steps of roughly 4.9 mV. That is about 26 mA per step on the 5 A module and about 49 mA per step on the 20 A module. This is fine for general monitoring but not for precision metering.

If you are new to reading analog sensors, our guides on the ultrasonic sensor with Arduino and on choosing a temperature sensor for Arduino cover the wiring and code habits that carry over here.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Measuring AC with the ACS712

On AC, the output swings above and below the midpoint. A single reading tells you little. Take many samples over at least one full cycle (20 ms at 50 Hz, about 16.7 ms at 60 Hz), then calculate the RMS value. Averaging several readings also reduces noise. For more detail on this chip, see our separate ACS712 current sensor page.

5A CT Current Transformer – AC Current Sensor

5A CT current transformer used as an AC current sensor
5A CT current transformer

A current transformer is used to measure alternating current. When the current in a circuit is too high to apply directly to measuring instruments, a current transformer produces a reduced current that is accurately proportional to the current in the circuit. That smaller current can be connected safely to measuring and recording instruments.

See also
ACS712 -CURRENT SENSOR

A current transformer also isolates the measuring instruments from what may be a very high voltage in the monitored circuit. This is why current transformers are commonly used in metering and protective relays in the electrical power industry.

How a CT works

A current transformer has a primary winding, a magnetic core and a secondary winding. The alternating current in the primary produces an alternating magnetic field in the core, which induces an alternating current in the secondary winding circuit. A key goal of the design is to couple the primary and secondary circuits efficiently, so the secondary current stays linearly proportional to the primary current.

To get a voltage your microcontroller can read, you place a resistor (a burden resistor) across the secondary. The voltage across it is proportional to the current flowing. The module itself is simply a transformer, so the exact output depends on the circuit you build around it.

Specifications

  • Maximum current: 5 A
  • AC 50/60 Hz operation only
  • Winding ratio: 1:1200

Listed price: 50. Check current availability before ordering.

CT safety note

Do not leave the secondary winding open while current flows in the primary. Without a load, a current transformer can develop a dangerously high voltage on its secondary. Always keep the burden resistor connected.

Which current sensor should you choose?

  • DC loads or mixed AC/DC: use an ACS712 module.
  • Low currents (under 5 A): the 5 A ACS712 gives finer resolution than the 20 A one.
  • Loads up to 20 A: use the 20 A ACS712, and accept the lower sensitivity.
  • AC mains monitoring without touching the wire: a CT is usually the safer choice, because it clamps around a conductor and does not need to be wired into the circuit.

If you are building a small always-on monitor, you will also need a way to power it. Our article on a capacitive power supply explains one low-current option, though it carries real shock risk and needs careful handling.

See also
Nonisolated ZVZCS Resonant PWM DC–DC Converter for High Step-Up and High-Power Applications (IEEE) with inverter

Safety tips for working with current sensors

  • Treat mains wiring as dangerous. If you are not trained to work with it, test on low-voltage DC first.
  • Stay within the rated current. Going beyond the rating can damage the sensor or overheat the board.
  • Use thick enough wire and secure terminals, as loose connections get hot at higher currents.
  • Keep the sensor away from strong magnets and heavy current-carrying wires, which can affect Hall-effect readings.

FAQ

Can the ACS712 measure both AC and DC?

Yes. It measures the magnetic field around its internal current path, so it reads DC directly and shows AC as a waveform around the midpoint voltage. For AC you need to sample the signal and calculate an RMS value in software.

Why does my ACS712 read a small current with nothing connected?

The zero-current output should be about VCC / 2, but supply noise and small offsets can shift it slightly. Measure the output with no load and use that value as your zero point in code.

Can a current transformer measure DC?

No. A CT works through a changing magnetic field, so it only works on alternating current. For DC, use a Hall-effect sensor such as the ACS712.

What does the 1:1200 winding ratio mean?

It means the secondary has 1,200 turns for each turn of the primary, so the secondary current is about 1/1200 of the primary current. This is why a CT can safely step a large current down to a small, measurable one.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works