Reading Sensing and Controlling current flow is a requirements in a wide variety of application including, over-current protection circuits, switching mode, battery chargers, power supplies, digital watt meter and programmable current source, etc.. The ACS721 current reading module is based on ACS712 Sensor which can detect AC, DC current signal accurately.
The maximum AC / DC can be detected using ACS712 will reach 30 amp and present current signal can read via analog IO port of Arduino, Product available for this module are 30A, 20A, 5A. for this demonstration we will used the ACS712 30A.
DC Current Measuring Sketch
[crayon-67469da89e161442988500/]
Download the source code here > 14Core DC Current Measure
AC Current Measuring Sketch
[crayon-67469da89e16b742151311/]
Another Example of the AC712 Alternative Formula
[crayon-67469da89e170162129784/]
Download the source code here > 14Core AC Current Measure
Download AC712 Datasheet here > ACS712-Datasheet