Electronic – arduino – Problem Measuring Current in a High Voltage circuit with arduino

amplifierarduinocurrent measurement

I 'm measuring a current in a resistor as shown in the picture below. There I'm using a voltage substractor with an LM324 Operational Amplifier. I'm having trouble in the real World when the voltage is grater than 12 V , the amplifier behaves strangely (I'm feeding the amplifier with 12 V ).

What can I do in order to properly measure this current with such a high voltage in the nodes of the resistor. I need to get to 60 V. I'm planning to send this voltage signal to Arduino, so I need it to be beteween 0-5V .

Any Help is appreciated.

Problem's circuit

Best Answer

Instead of using the circuit you are using now, consider the LTC4151. It works with input voltages up to 80V.

enter image description here

Instead of a voltage output, it uses an I2C interface, which should be available on the Arduino.

It is available for $5.55 from Digi-Key.