Description
- The current sensor chips: ACS712ELC-30A
- The module can measure the positive and negative 30 amps, corresponding to the analog output 66mV / A
- Pin 5V power supply, on-board power indicator
- Using gold plated circuit boards
- No test current through the output voltage is VCC / 2
- Size: 31 x 13mm
Getting started with theĀ 30A range Current Sensor Module ACS712 Module
Sensing and controlling current flow is a fundamental requirement in a wide variety of applications including, over-current protection circuits, battery chargers, switching mode power supplies, digital watt meters, programmable current sources, etc. This ACS721 current module is based on ACS712 sensor, which can accurately detect AC or DC current. The maximum AC or DC that can be detected can reach 30A, and the present current signal can be read via analog I / O port of Arduino
Step1: Hardware required
Step2: Connecting the Hardware
Arduino test the crrrent.
Step3: Upload the sample sketch
void setup() {
Serial.begin(9600);
}
void loop() {
float average = 0;
for(int i = 0; i < 1000; i++) {
average = average + (.0264 * analogRead(A0) -13.51) / 1000;//this is
//for the 5A mode, if 20A or 30A mode, need to modify this formula to
//(.19 * analogRead(A0) -25) for 20A mode and
//(.044 * analogRead(A0) -3.78) for 30A mode
delay(1);
}
Serial.println(average);
}
Step4: Testing the circuit
open your serial monitor by clicking on the icon in the right top corner(like search icon)