Professional Documents
Culture Documents
Linear DC SHUNT CURRENT
Linear DC SHUNT CURRENT
In this example we are measuring 50Amp current using 75mV shunt (Rsense). Shunt
gives 75mV voltage across it when we pass the current of 50Amp. Arduino takes 5V as
input for ADC, so the differential amplifier will convert 75mV to 5V.
Calculations for 50Amps 75mV Shunt
Vo is voltage given at ADC (A0) i.e. 5V
Rin = R1 = R3
Rf = R2 = R4
Vin = 75mV
Vo = Vin * (RF/Rin)
Where:
Vin = 75mV
Vo = 5V
/*
DC Current Measurement Using Shunt - www.circuits4you.com
Reads an analog input on pin 0, converts it to current, and prints the result to
the serial monitor.
*/
const float ShuntAmps = 50; //Enter the shunt maximum current
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// Convert the analog reading (which goes from 0 - 1023) to a Current (0 - 50):
float current = sensorValue * (ShuntAmps / 1024.0);
/*
DC Current Measurement Using Shunt - www.circuits4you.com
Reads an analog input on pin 0, converts it to current, and prints the result to
the serial monitor.
*/
const float ShuntAmps = 50; //Enter the shunt maximum current
// Convert the analog reading (which goes from 0 - 1023) to a Current (0 - 50):
float current = sensorValue * (ShuntAmps / 1024.0);