ACS712 Current Sensor with Arduino - Measure AC and DC up to 30 amps

Published at : 23 Dec 2025

Using the ACS712 current sensor with Arduino, we can measure AC and DC current up to 30 amps. I used the 5 amp version here and tried to improve the measurement noise with a filter capacitor to get better readings.

This was using the 10 bit ADC on Uno. I will compare results when I receive a higher resolution external ADC.

Sketch:
https://github.com/GadgetReboot/Arduino/blob/master/Uno/ACS712_AC_DC/ACS712_AC_DC_Current_Meas.ino

Library (and schematic) used:
https://github.com/rkoptev/ACS712-arduino

ACS712 Datasheet:
https://www.sparkfun.com/datasheets/BreakoutBoards/0712.pdf

Support the channel by using these affiliate links to check out Banggood's sale on Tools & Electronics this month (2021 4.07 - 4.18) :
Banggood hot brand tools https://bit.ly/3dSyO2l
Electronic Brand Sale https://bit.ly/2PHpeau
Creality 7th Anniversary Sale https://bit.ly/3d0fLUi

Support me on Patreon: https://www.patreon.com/gadgetreboot