I have a project assignment to measure BTS power meter measurements and here I got trouble when I want to measure DC current using a shunt resistor (75mV for 50A) and OP AMP OP07 . where the current value on the serial monitor does not match results on the clamp meter. I use ACCU and Inverter as LOAD first. Here, I include the circuit and the sketch.
What are the values of the resistors.
Or.
Do the inputs of the opamp stay within the common mode range of the opamp.
That is about 3volt max on a +5volt opamp supply.
I guess not.
Try using an opamp that is designed for high-side sensing, like the INA167, INA196, INA219, INA 226 and many others.
Leo..
What is your LOAD?
To test and calibrate it should be a LOAD that is constant and resistive.
If you are using a power inverter as a load, then the current will not be constant.
The clamp meter will be measuring average current.
Your code is measuring instantaneous current.
If you average your arduino values, what do you get.
Also in your code;
float current = sensorValue * (ShuntAmps / 1024.0);
edit to;
float current = (float)sensorValue * ShuntAmps / 1024.0;
BTS is A base transceiver station (BTS) is a fixed radio transceiver in any mobile network. The BTS connects mobile devices to the network. It sends and receives radio signals to mobile devices and converts them to digital signals that it passes on the network to route to other terminals in the network or to the Internet.
ACCU ( battery ) is a battery that can be restored to full charge by the application of electrical energy.
and Inverter are also called AC Drives ( LOAD ), or VFD (variable frequency drive). They are electronic devices that can turn DC (Direct Current) to AC (Alternating Current).