Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

what comparator to use

Status
Not open for further replies.

carmusic

New Member
Hi i have a little circuit that must monitor a very small voltage on a shunt resistor (about 1 mV) if the voltage goes over it i must swith the output comparator. (open collector if possible)
the problem is that my supply for the comparator is 12V and the shunt is around 1 to 20V (it is a high side shunt resistor on a variable voltage,) is there any comparator that can handle voltage at input pins higher than the vcc pin?
 
Please post the schematic.

Where are you getting your 1mV refernce from?

It sounds like you need a differiential amplifier across the shunt and a comparator monitoring the output of the amplifier.
 
Here is the schematic the 1mw comes from the shunt resistor
 

Attachments

  • circuit.jpg
    circuit.jpg
    12.4 KB · Views: 203
A high side current monitor such as INA139 will allow you to amplify the voltage and reference it to GND so that you can use something like an LM393, but the INA139 has up to ±1mV of input offset, so you would need to make your sense resistor about 10 times larger.
There are several manufacturers of high side current monitors, and various part numbers. You might find one that works better than INA139.
 
Last edited:
In a differential amplifier both of the op-amp's inputs are held near 0V so it won't make any difference.
 
Yes, you're right, he needs to power the op-amp from a higher voltage than 20V.

EDIT:
Another option is to make a differiential amp with a unity gain, that way the op-amp inputs will be only be biased at a maximum of 10V.

I like your new avatar by the way, I think I've used that image in one of my posts, did you borrow it from me or find it for yourself using Google image search?
 
Last edited:
Yes, you're right, he needs to power the op-amp from a higher voltage than 20V.

EDIT:
Another option is to make a differiential amp with a unity gain, that way the op-amp inputs will be only be biased at a maximum of 10V.
There are over-the-top op amps (Google) such as LT1490A which have common mode ranges that exceed vcc. I still think a high-side current monitor such as INA139, and a cheap comparator, is the way to go.

I like your new avatar by the way, I think I've used that image in one of my posts, did you borrow it from me or find it for yourself using Google image search?
I might have gotten it from you, although I added the red circle with MS Paint. I found the original the other day in one of my picture folders. The file is dated 4/17/07. I'm not sure why I saved it.
 
about 20-30 ma but in the circuit i measure up to 20A so the shunt wont be over 0.01ohm
so want to detect signal over 1 mV, i tried similar chip as the ina139 and below 5 mV they dont work very well. I must keep the circuit as simple as possible.
what can occur with the comparator (shown in schematics) if input pin are higher than vcc? i will try it.
 
Hi i have a little circuit that must monitor a very small voltage on a shunt resistor (about 1 mV) if the voltage goes over it i must swith the output comparator. (open collector if possible)
the problem is that my supply for the comparator is 12V and the shunt is around 1 to 20V (it is a high side shunt resistor on a variable voltage,) is there any comparator that can handle voltage at input pins higher than the vcc pin?
LM393 won't work. The common mode range only goes up to Vcc-1.5V. It also has input offset voltage of ±5mV max.
 
INA213 should work in front of your LM393. It has input offset of ±100uV max, and gain=50. With 1mV in, you should get 50mV out, referenced to GND so the LM393 can handle it. With 20 amps through .01Ω, you will get 10V out (20A*.01Ω*50), which will not harm your LM393.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top