logo elektroda
logo elektroda
X
logo elektroda

Schmitt Trigger Comparator Output Not Snapping Cleanly, Output Varies 5V to 4.5V

270 10
Best answers LABEL_AI_GENERATED

Why does my LM393 Schmitt trigger output sit between 5V and 4.5V near the threshold instead of switching cleanly?

The LM393 is probably behaving normally: when you trim the pot right at the switching point, the comparator can hover in its linear region, so the output moves gradually from 5V toward 4.5V until there is enough overdrive to snap fully to the other state [#21681752][#21681755] Check that the 100K feedback resistor really goes to the non-inverting input, that pin 4 is grounded and pin 8 has 5V, and add a 0.1µF bypass capacitor close to the chip between Vcc and ground [#21681748] Also make sure the unused half of the LM393 has its inputs tied to defined levels, since floating inputs can cause trouble [#21681750][#21681752] If both sides of the threshold network are derived from the same varying supply, the threshold moves with the input and can make switching awkward; one suggestion was to stabilize the pot side with a zener or other fixed reference [#21681751][#21681754] If the output drives CMOS logic, 4.5V is still a valid logic-high, so the intermediate voltage may be acceptable even before the final snap [#21681756]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT
  • Output only partially switches between 5 V and 4.5 V

    #1 21681747
    Graham Rounce
    Anonymous  
  • ADVERTISEMENT
  • Check feedback wiring and add bypass capacitor

    #2 21681748
    Rick Curl
    Anonymous  
  • #3 21681749
    David Ashton
    Anonymous  
  • ADVERTISEMENT
  • Unused LM393 comparator inputs should be tied off

    #4 21681750
    Aubrey Kagan
    Anonymous  
  • ADVERTISEMENT
  • Add zener diode and capacitor to stabilize thresholds

    #5 21681751
    Elizabeth Simon
    Anonymous  
  • ADVERTISEMENT
  • LM393 linear region and common-mode limits explained

    #6 21681752
    PeterTraneus Anderson
    Anonymous  
  • #7 21681753
    Graham Rounce
    Anonymous  
  • Zener-based threshold options for comparator divider

    #8 21681754
    Elizabeth Simon
    Anonymous  
  • LM393 low gain explains gradual output snap

    #9 21681755
    PeterTraneus Anderson
    Anonymous  
  • #10 21681756
    PeterTraneus Anderson
    Anonymous  
  • #11 21681757
    David Ashton
    Anonymous  

Topic summary

LABEL_AI_GENERATED
The discussion addresses an issue with an LM393 comparator circuit where the output voltage does not snap cleanly between high and low states, instead varying between 5V and 4.5V near the switching threshold. Key points include verifying correct wiring of the 100K feedback resistor to the non-inverting input, ensuring proper bypassing with a 0.1µF ceramic capacitor between Vcc and ground to prevent oscillations, and confirming correct power and ground connections on the LM393 pins. The LM393's open-collector output and relatively low gain (typical 200, minimum 50) can cause the output to hover in a linear region near threshold, resulting in intermediate voltages. The comparator inputs should be properly referenced, including defining the unused comparator inputs. The problem may also stem from both comparator inputs being connected to the same varying voltage source, causing threshold voltages to shift with input changes and preventing clean switching. Adding a zener diode in the threshold-setting resistor network can stabilize the switching points by fixing one side of the voltage divider. Alternatively, using an operational amplifier with push-pull output instead of a comparator can eliminate the need for a pull-up resistor and improve output behavior. The output voltage range between 4.2V and 5V is acceptable for CMOS logic inputs such as a 74HC04 inverter powered at 5V. Detailed datasheet consultation is recommended to understand LM393 input common-mode range, required overdrive voltage (~5mV), and output characteristics.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT