logo elektroda
logo elektroda
X
logo elektroda

Quad Comparator for +/-25V Input, 9-12V Supply, DIP Package for Voltmeter Assembly

225 15
ADVERTISEMENT
  • #1 21662559
    Frank Bushnell
    Anonymous  
  • ADVERTISEMENT
  • #2 21662560
    Boi Okken
    Anonymous  
  • ADVERTISEMENT
  • #3 21662561
    Cody Miller
    Anonymous  
  • #4 21662562
    Boi Okken
    Anonymous  
  • ADVERTISEMENT
  • #5 21662563
    Cody Miller
    Anonymous  
  • #6 21662564
    Steve Lawson
    Anonymous  
  • #7 21662565
    Steve Lawson
    Anonymous  
  • #8 21662566
    Frank Bushnell
    Anonymous  
  • ADVERTISEMENT
  • #9 21662567
    Frank Bushnell
    Anonymous  
  • #10 21662568
    Steve Lawson
    Anonymous  
  • #11 21662569
    Steve Lawson
    Anonymous  
  • #12 21662570
    Frank Bushnell
    Anonymous  
  • #13 21662571
    Per Zackrisson
    Anonymous  
  • #14 21662572
    Frank Bushnell
    Anonymous  
  • #15 21662573
    Frank Bushnell
    Anonymous  
  • #16 21662574
    Steve Lawson
    Anonymous  

Topic summary

✨ The discussion addresses the challenge of finding a quad comparator in a DIP package capable of measuring input voltages of ±25V while powered from a 9 to 12V supply, for use in a voltmeter assembly to sense polarity. Standard comparators like the LM139/LM239/LM339/LM2901/LM3302 have input voltage ranges limited to the supply rails, making direct measurement of ±25V inputs outside their specifications. Suggested solutions include using a voltage divider to scale down the input voltage within the comparator's input range, with recommendations to incorporate a combination of fixed resistors and a trimmer potentiometer for calibration and improved accuracy. Alternative approaches discussed involve generating higher positive and negative supply rails using circuits such as a Villard cascade driven by a 555 timer, or employing diode protection (e.g., Schottky diodes) to block negative voltages and protect the comparator inputs. The concept of zero-crossing detection was also mentioned, but no comparator was identified that inherently supports input voltages significantly beyond its supply rails without additional circuitry. The LM339 was noted as a common, inexpensive quad comparator suitable for non-critical applications, but it does not meet the ±25V input requirement directly. Overall, the consensus is that external voltage scaling or supply rail extension is necessary to safely and accurately measure ±25V signals with low-voltage comparators in DIP packages.
Generated by the language model.

FAQ

TL;DR: For ±25 V sensing on a 9–12 V supply, use a voltage divider into a quad comparator; note the −0.3 V input limit and “Differential input voltage range equal to the power supply voltage.” [Elektroda, Frank Bushnell, post #21662566] Why it matters: This keeps your voltmeter inputs high‑impedance while adding reliable polarity LEDs without overvolting the comparator.

Quick-Facts

Quick Facts

What quad comparator in a DIP package should I start with?

Use the LM339 family. It is a widely available quad comparator in DIP, easy to source, and well suited for indicator logic when preceded by proper input scaling. As one expert put it, it is the “standard” comparator for noncritical precision needs. [Elektroda, Cody Miller, post #21662561]

Can an LM339 directly measure ±25 V on a 9–12 V supply?

No. Its differential input range tracks the supply, and the input must not go below −0.3 V relative to the negative rail. Positive input can exceed V+ only if the other input remains within the common‑mode range. Use a divider or other front‑end. [Elektroda, Frank Bushnell, post #21662566]

How do I scale ±25 V to a comparator input safely?

Add a resistor divider so the comparator sees a reduced voltage. The transfer is Vout = (R2/(R1+R2))·Vin. Choose high values to keep input current low, then feed the divided node into the comparator. This preserves high input impedance for your voltmeter assembly. [Elektroda, Boi Okken, post #21662560]

How can I calibrate out resistor tolerance in the divider?

Make the lower divider leg a fixed resistor in series with a small trimmer. Size the trimmer around 2% of the lower resistor’s nominal value, then adjust to dial in the exact ratio. This reduces sensitivity and eases fine tuning. [Elektroda, Steve Lawson, post #21662564]

Should I use a potentiometer or a fixed‑plus‑trimmer approach?

Use a fixed resistor plus a small trimmer, not a lone potentiometer. This gives smoother adjustment and avoids large swings per turn. “Dial in” the exact ratio with minimal interaction while keeping stability and accuracy in check. [Elektroda, Steve Lawson, post #21662564]

What trimmer tolerance should I design around?

Assume 20% tolerance for common trimmers. Design for the lowest‑case value when calculating the series combination. For example, a 500 kΩ trimmer could be as low as 400 kΩ; size the fixed resistor accordingly to cover the needed adjustment range. [Elektroda, Steve Lawson, post #21662564]

Can you give a numeric example divider I can copy?

Yes. For a divide‑by‑two with 2 MΩ input resistance, use two 1 MΩ resistors. Add a trimmer per the 2% method to fine‑tune the midpoint. This example demonstrates practical values and an easy calibration plan you can replicate quickly. [Elektroda, Steve Lawson, post #21662565]

What if I only need polarity (zero‑crossing) indication?

Implement a zero‑crossing detector. You can bias the comparator slightly negative (above −0.3 V limit) and detect when the input passes near zero. This keeps sensitivity high for polarity LEDs without requiring full linear accuracy. [Elektroda, Steve Lawson, post #21662574]

Can I keep the comparator on a single positive supply and still block negative input?

Yes. Use a series diode to prevent negative input from reaching the comparator, with the inverting input at ground. A Schottky reduces forward drop, but watch reverse leakage at high temperature as an edge‑case failure risk. [Elektroda, Steve Lawson, post #21662569]

How do I power the comparator with true ± rails if I prefer that route?

Generate split rails using a 555‑driven stacked Villard charge‑pump. This can produce both positive and negative supplies so the input never violates rail limits. It adds parts but simplifies input handling. [Elektroda, Steve Lawson, post #21662569]

Why not drive LEDs directly from the measured voltage?

That lowers input impedance and loads the circuit under test. The thread’s goal was a high‑impedance voltmeter with polarity LEDs. A comparator front‑end preserves measurement integrity while providing clear indication. [Elektroda, Frank Bushnell, post #21662573]

Does LM339 allow inputs above the positive rail?

Yes, but only for positive excursions and only if the other input stays within the allowed common‑mode range. The lower input limit remains −0.3 V relative to the negative supply. Mind these limits in your design. [Elektroda, Frank Bushnell, post #21662566]

What’s a simple 3‑step way to set up an adjustable divider?

  1. Choose R1 and R2 for the target ratio and input resistance.
  2. Replace part of R2 with a trimmer ≈2% of R2.
  3. Calibrate at a known input and adjust the trimmer to hit the exact threshold. [Elektroda, Steve Lawson, post #21662564]

Any quick tip to compensate for production tolerances?

Plan the trimmer range using its worst‑case low value. For a 50 kΩ, 20% trimmer, design as if it were 40 kΩ. This ensures your adjustment range always covers real‑world component variation. [Elektroda, Steve Lawson, post #21662565]

Is there an ultra‑simple alternative if precision isn’t critical?

Use four LEDs with series resistors to indicate ±2 V and ±20 V bands. It’s crude but workable when loading is acceptable and precision is secondary. Specify LED forward voltages for correct resistor sizing. [Elektroda, Per Zackrisson, post #21662571]
Generated by the language model.
ADVERTISEMENT