DC Current Measurement
Now in this section we're gonna use a module, it's the ASC712. It offers cost-effective and precise AC or DC current sensing solutions for industrial, commercial, and communications systems. The device package makes it simple for the client to use. Motor control, load detection and management, switch mode power supply, and over current fault protection are examples of common uses. The device is not designed for use in automobiles. The circuit is made up of a precise, low-offset linear Hall circuit with a copper conduction route near the die's surface. The Hall IC converts the magnetic field generated by the applied current flowing via this copper conduction route into a proportionate voltage.
Materials for DC Current Measurement
- • Arduino Uno
- • Cables and Breadboard
- • IC1 - ASC712-05A
Schematic for DC Current Measurement
To test this circuit we just need to use a load, it can be a LED or a resistor, anything that gets the current flowing.
Code for DC Current Measurement
const int analogIn = A0 ;
double mVA = 185;
double Value = 0;
double ACSoffset = 2500;
double Voltage = 0;
double Amps = 0;
void setup (){
Serial.begin (9600);
}
void loop (){
Value = analogRead (analogIn);
Voltage = (Value/1024.0)*5000;
Amps = ((Voltage-ACSoffset)/mVA);
Serial.print ("Amps = ");
Serial.println (Amps ,2);
delay (1000);
}
To see the results you need to check the serial monitor!