IDUINO for maker’s life User Manual For ACS712 5A Range Current Sensor Module for Arduino(ME066) www.openplatform.
IDUINO for maker’s life Description: The Allegro® ACS712 provides economical and precisesolutions for AC or DC current sensing in industrial,commercial, and communications systems. The device package allows for easy implementation by the customer.Typical applications include motor control, load detection and management, switched-mode power supplies, and overcurrent fault protection.
IDUINO for maker’s life This module has three ranges for different sensor chip: Pinout: Tutorial: What You Will Need? An Arduino UNO An ACS712 Current Sensor Module A Load A Power Source A Bench Supply The ACS712 Sample Project Schematic The drawing below shows I hooked things up. www.openplatform.
IDUINO for maker’s life You can copy and paste the code you see below. ****** Code Begin****** /* Measuring Current Using ACS712 */ const int analogIn = A0; int mVperAmp = 185; // use 100 for 20A Module and 66 for 30A Module int RawValue= 0; int ACSoffset = 2500; double Voltage = 0; double Amps = 0; void setup(){ Serial.begin(9600); } void loop(){ RawValue = analogRead(analogIn); Voltage = (RawValue / 1024.0) * 5000; // Gets you mV Amps = ((Voltage - ACSoffset) / mVperAmp); www.openplatform.
IDUINO for maker’s life Serial.print("Raw Value = " ); // shows pre-scaled value Serial.print(RawValue); Serial.print("\t mV = "); // shows the voltage measured Serial.print(Voltage,3); // the '3' after voltage allows you to display 3 digits after decimal point Serial.print("\t Amps = "); // shows the voltage measured Serial.println(Amps,3); // the '3' after voltage allows you to display 3 digits after decimal point delay(2500); } ****** Code End****** www.openplatform.