Author Topic: Shunt Resistor with a LM339  (Read 1986 times)

0 Members and 1 Guest are viewing this topic.

Offline eev_carlTopic starter

  • Regular Contributor
  • *
  • Posts: 224
  • Country: us
Shunt Resistor with a LM339
« on: August 22, 2018, 01:57:30 pm »
Hi,

I made a simple series resistive circuit to test out a shunt resistor.  The circuit is shown in the schematic below.  1V DC is sent through a pair of resistors: 0.7ohm and 10kOhm.  The 0.7ohm is a value I measured directly on my MM of 3 "1.5ohm" resistors in parallel.

I'm using an LM339 to amplify the difference between the 1V supply and the junction of the 0.7 and 10k resistors.  I got a current value of 2.23mA which is much higher than the value I measured directly with my MM (187uA).  These are my calculations

A = 1 + 10/1 = 11
Vdiff = 17.6mV / 11 = 1.6mV
I = 1.6*10-3 / 0.7 = 2.23mA

17.6mV is the value I measured on the output of the LM339.  The supply to the LM339 is 9V.  I don't have any other 3 op amp son the LM339 connected.

Feel free to suggest another measuring technique if I'm off base with the comparator.

Thanks,
Carl
 

Offline glarsson

  • Frequent Contributor
  • **
  • Posts: 814
  • Country: se
Re: Shunt Resistor with a LM339
« Reply #1 on: August 22, 2018, 02:12:50 pm »
LM339 is a comparator, not an op-amp. The feedback from the output should go to the negative input to create a differential amplifier (and replacing the LM339 as well). The top connection of the sense resistor has the higher voltage and the bottom connection has the lower voltage. You wired it the other way.
 
The following users thanked this post: eev_carl

Offline eev_carlTopic starter

  • Regular Contributor
  • *
  • Posts: 224
  • Country: us
Re: Shunt Resistor with a LM339
« Reply #2 on: August 22, 2018, 02:45:42 pm »
Should I run the comparator without feedback into an amplifier?  Is the comparator of any use or should I just use an op amp.

Thanks
 

Offline glarsson

  • Frequent Contributor
  • **
  • Posts: 814
  • Country: se
Re: Shunt Resistor with a LM339
« Reply #3 on: August 22, 2018, 03:00:53 pm »
First, the 339 has an open collector output. This means that it can't output a voltage, only pull down a voltage provided by a pull up resistor or similar. The 339 flips the output based on which input has the higher voltage. It doesn't act as an amplifier. If you want to amplify the voltage over the sense resistor you need an op amp. Also, the op amp must be able to handle signals close to the power supply. In your application the signals are within 1V of the negative power supply of the op amp, ground in this case. Not all op amps can do this.
 
The following users thanked this post: eev_carl

Offline eev_carlTopic starter

  • Regular Contributor
  • *
  • Posts: 224
  • Country: us
Re: Shunt Resistor with a LM339
« Reply #4 on: August 22, 2018, 03:52:46 pm »
Thanks.  LM339 is the wrong IC for what I'm trying to do
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17427
  • Country: us
  • DavidH
Re: Shunt Resistor with a LM339
« Reply #5 on: August 22, 2018, 04:46:56 pm »
It is possible to externally compensate the LM339 comparator to operate as an operational amplifier but the circuit as shown would not work anyway.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf