Author Topic: Need opamp / comparator advice  (Read 522 times)

0 Members and 1 Guest are viewing this topic.

Offline CaptDonTopic starter

  • Super Contributor
  • ***
  • Posts: 1740
  • Country: is
Need opamp / comparator advice
« on: March 21, 2024, 07:53:37 pm »
I have an old Nems Clarke GPR-20 general purpose receiver. I believe it to be all PNP transistors as it uses -12 volts referenced to chassis ground. I would like to add a C.O.R. (Carrier Operated Relay). The signal strength meter is chassis grounded on its positive connection and the negative connection is around -5mv at no signal and goes to -100mv at full scale 100% reading. Signals producing -10mv or more on the meter terminal are useful with an acceptable signal to noise ratio. I am wondering if a rail-to-rail opamp would work. I would set it up open loop as a comparator with the voltage trip point adjustable on the + non-inverting input and the negative going signal strength signal on the - inverting input. The output shall drive a relay rated at 20ma@12vdc. Can a rail-to-rail device work properly with input signals this close to the rail voltage? I would be hooking up the opamp / comparator 'upside down' so to speak with the positive supply pin referenced to chassis and the negative supply pin connected to -12vdc. Any suggestions as to what DIP-8 device I should choose? I can't do surface mount devices at home so I would be looking at a DIP-8 indeed. Thanks!!
Collector and repairer of vintage and not so vintage electronic gadgets and test equipment. What's the difference between a pizza and a musician? A pizza can feed a family of four!! Classically trained guitarist. Sound engineer.
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1109
  • Country: lt
Re: Need opamp / comparator advice
« Reply #1 on: March 21, 2024, 10:36:01 pm »
Yeah, most op amps are not designed for common mode range up to or above V+. I know a series of op amps from analog, like a LT1637, they call them Over-The-Top (what a gem of marketing). These have very wide common mode range. Otherwise I don't know, you can try a parametric search.
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14214
  • Country: de
Re: Need opamp / comparator advice
« Reply #2 on: March 21, 2024, 11:04:03 pm »
The MCP6006 gives data for operation even some 200 mV above and below the supply range. Most, especially older datasheets don't really specify the behavior slight outside the supply, but there is little reason to asume it should not work.  Chances are the even the LM358 will work a little below its negative supply at the input, though not at the output.
 

Offline CaptDonTopic starter

  • Super Contributor
  • ***
  • Posts: 1740
  • Country: is
Re: Need opamp / comparator advice
« Reply #3 on: March 21, 2024, 11:38:41 pm »
I guess my explaination left some doubt as to voltages. The Positive supply pin of the opamp shall be at chassis ground, the negative supply pin of the opamp shall be connected to -12vdc. The + non-inverting input will be adjustable from -10mv below chassis ground (A.K.A. the positive supply voltage of the opamp) to around -50mv below chassis ground and the - inverting input will be directly driven from the signal strength meter which varies from -5mv to -100mv below chassis ground. When the negative voltage on the - input pin goes more negative than the reference voltage on the + input pin the output will swing to the opamps negative supply rail which in this case is -12vdc. I can add a driver transistor to the opamp output to drive the relay if the opamp can't produce 20 milliamps. In no case will any input voltage be beyond the supply voltage. The inputs will be between 10mv and 100mv below the opamps positive rail voltage which in this radio also happens to be chassis ground. I am wondering can any rail to rail opamp / comparator work effectively / reliably with inputs that are only 10 to 100mv below the positive supply? Thanks!!
Collector and repairer of vintage and not so vintage electronic gadgets and test equipment. What's the difference between a pizza and a musician? A pizza can feed a family of four!! Classically trained guitarist. Sound engineer.
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1109
  • Country: lt
Re: Need opamp / comparator advice
« Reply #4 on: March 22, 2024, 12:26:58 am »
If input common mode voltage range in datasheet includes V+ or above (over full temperature range) then it should work.
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14214
  • Country: de
Re: Need opamp / comparator advice
« Reply #5 on: March 22, 2024, 08:23:29 am »
For the input side rail to rail includes the rails and usually also a little (like 100-300 mV) beyound the rails. It is only at the output where rail to rail may still leave out some 10 or 50 mV (e.g. CE saturation voltage of a BJT) and at least some resistance. So most RR op-amps should work, iif they allow for 12 V supply.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12864
Re: Need opamp / comparator advice
« Reply #6 on: March 22, 2024, 10:32:15 am »
You'll want a stabilised voltage to divide down for the reference level, so maybe use a 79L05 regulator to power the OPAMP, which opens up the choice to all the 5V RRIO OPAMPs.  You'd then need a PNP transistor to drive the relay, emitter to Gnd, base with a resistor to the OPAMP output.
 

Offline MarkT

  • Frequent Contributor
  • **
  • Posts: 367
  • Country: gb
Re: Need opamp / comparator advice
« Reply #7 on: March 23, 2024, 09:08:21 am »
Can a rail-to-rail device work properly with input signals this close to the rail voltage?
If you want a comparator (positive feedback), use a comparator, if you want negative feedback (amplification etc), use an opamp.

You can sometimes use an opamp as a comparator, but its not ideal and many types of opamp cannot handle this and will be fried, you'll need to read the datasheet in detail to figure out the ramifications of such alternate use...

LM339's and similar are very cheap and purpose-made as comparators...

BTW Comparators cannot work as opamps ever, note, they are completely unstable under negative feedback.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12864
Re: Need opamp / comparator advice
« Reply #8 on: March 23, 2024, 11:41:48 am »
Unfortunately the LM339 common mode range does not include its positive supply.    In this application, comparing a signal that is between 5mV and 100mV below the +ve rail against a threshold voltage in the same range, with a 12V supply,  there isn't a lot of choice for comparators.   Again, adding a -5V regulator opens up the choices considerably.
 

Offline Vovk_Z

  • Super Contributor
  • ***
  • Posts: 1419
  • Country: ua
Re: Need opamp / comparator advice
« Reply #9 on: March 23, 2024, 11:59:06 am »
Again, adding a -5V regulator opens up the choices considerably.
He has now -12 and 0 VDC rails. So, as I could understand, he needs rather +5 or +12 VDC rail.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12864
Re: Need opamp / comparator advice
« Reply #10 on: March 23, 2024, 12:21:14 pm »
A -5V regulator running from the -12V rail allows the use of modern 5.5V max supply comparators and OPAMPs, more of which have  rail to rail inputs.   The down-side is the need for a low Vgs threshold P-MOSFET or PNP transistor to drive the relay, but it probably needed a driver transistor anyway unless the relay has very low coil current.

He has now -12 and 0 VDC rails. So, as I could understand, he needs rather +5 or +12 VDC rail.
A +5V rail would be nice to have but if all you've got is a negative supply, it would certainly be a bad idea to add a DC-DC switched mode converter to get one, in a highly noise sensitive comms receiver!
« Last Edit: March 23, 2024, 01:34:38 pm by Ian.M »
 
The following users thanked this post: Vovk_Z

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16622
  • Country: us
  • DavidH
Re: Need opamp / comparator advice
« Reply #11 on: March 23, 2024, 01:25:26 pm »
Most of the old JFET operational amplifiers have an input range which includes their positive supply, like the TL031, TL051, TL061, TL071, LF351, and LF411.  The old bipolar LM301A also has an input range which includes the positive supply.

Modern rail-to-rail input parts will of course also work.  Suitable low cost modern parts include the OPA990, OP991, OPA196, and OPA197.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf