Author Topic: AMPMETER USING OP-AMP  (Read 6986 times)

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
AMPMETER USING OP-AMP
« on: February 18, 2006, 05:36:34 PM »
Trying to build an ampmeter using an LM324 op-amp to measure plus/minus 50 amps with a 1mv/amp shunt = +/- 50mv to the op-amp. The "-" of the shunt is also ground of the op-amp 12 volt supply. The ADC input is 0 - 5 VDC. Since the op_amp input goes negative, can I design the circuit with the +/- voltage in, and the op-amp input floats, with a range of minimum 0 to 100mv? The LM324 has 3 other sections in use.

evanh

  • Jr. Member
  • Posts: 59
  • y=A+B*(1-cos(2*Pi*x))
    • View Profile
Re:AMPMETER USING OP-AMP
« Reply #1 on: February 19, 2006, 09:33:34 PM »
There is two general ways to perform what you want.  However, you won't be able to use such methods for AC frequencies above about 10 Hz due to the limited speed of the PLC.  Your best line of attack for, say, mains frequency is to use an AC to RMS converter and then sample the resulting DC level.


Evan

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:AMPMETER USING OP-AMP
« Reply #2 on: February 20, 2006, 06:21:17 AM »
I guess I forgot to say, but the current is DC only, like an ampmeter on an auto, can swing +/- as the battery charges or discharges and as a result the signal can go +/- also, and the one side of the signal is near the PLC's ground, except for line and connection loses.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:AMPMETER USING OP-AMP
« Reply #3 on: February 21, 2006, 01:12:21 AM »
You will need to connect your input as a differential amplifier with gain =  50 (so +/-50mV amplified to +/-2.5V) and the ground of your OpAmp is tied to a voltage reference = 2.5V with respect to the PLC's 0V. This way, the output of the OpAmp will be equal to 0 to 5V with respect to the PLC's ground. I am not sure if the LM324 is suitable for this purpose. An instrumentation amp should work better.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

raan

  • Newbie
  • Posts: 31
    • View Profile
Re:AMPMETER USING OP-AMP
« Reply #4 on: March 13, 2006, 08:49:41 AM »
Linear Technolgies www.linear.com makes a variety of current sensing amplifiers like the LT6100 which outputs a stable 0-5v signal from a shunt resistor. They are cheap, much easier to use than dual ended op amps,  work well with the plc and can handle bidirectional inputs.

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:AMPMETER USING OP-AMP
« Reply #5 on: March 13, 2006, 09:49:44 AM »
Unless I missed something, my application is what Linear calls Bidirectional (the sense current can flow either direction as the battery is charged or discharged). Since the PLC can only use positive currents, Linear's example shows using an Op-Amp, and at this point I tend toward just using the Op-Amp and level shifting the inputs as discussed above. Thanks for the input, and still open to suggestions, but getting near implementing. :)