# Schmitt Trigger: Robust Comparator Design with Hysteresis

> Hacker News story 49111194 · language: en · submitted 2026-07-30
> Web version: https://zeli.app/story/49111194
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 18 · by [ankitg12](<https://news.ycombinator.com/user?id=ankitg12>) · 💬 10
[original](<https://www.wevolver.com/article/schmitt-trigger-robust-comparator-design-with-hysteresis>) · [HN discussion](<https://news.ycombinator.com/item?id=49111194>)

## Summary

A Schmitt trigger is a comparator with built-in hysteresis, ensuring clean digital output even with noisy or slow inputs. This article covers the principles, derives threshold voltages for inverting and non-inverting op-amp circuits, explores discrete BJT implementations, and compares integrated CMOS Schmitt-trigger inverters like the SN74HC14 and SN74LVC1G14. It also discusses comparator ICs with adjustable hysteresis and practical applications such as debouncing, zero-cross detection, and relaxation oscillators.

## Key quote

> Hysteresis is essential in many embedded systems: it debounces mechanical switches, shapes waveforms, prevents oscillation when sampling analog levels, and enables simple oscillators.

## HN discussion (10 comments)

### [wrigby](<https://news.ycombinator.com/item?id=49148250>)

> It's worth point out that on many microcontrollers (STM32's at least), configuring a pin as a "digital input" means that the signal is routed through a Schmitt trigger circuit that's built into the MCU.
>
> This also means you'll want to ensure that any floating MCU pins are _not_ configured as digital inputs, as the Schmitt trigger circuit itself will waste power switching back and forth between high and low states constantly.

### [aappleby](<https://news.ycombinator.com/item?id=49148307>)

> Slop

---

## Cite

- Page: https://zeli.app/story/49111194
- Date: 2026-07-30
- Source: wevolver.com (https://www.wevolver.com/article/schmitt-trigger-robust-comparator-design-with-hysteresis)
- Hacker News: https://news.ycombinator.com/item?id=49111194

## Other languages

- zh: https://zeli.app/zh/story/49111194 · markdown: https://zeli.app/zh/story/49111194.md
- ja: https://zeli.app/ja/story/49111194 · markdown: https://zeli.app/ja/story/49111194.md
- ko: https://zeli.app/ko/story/49111194 · markdown: https://zeli.app/ko/story/49111194.md
- de: https://zeli.app/de/story/49111194 · markdown: https://zeli.app/de/story/49111194.md
- es: https://zeli.app/es/story/49111194 · markdown: https://zeli.app/es/story/49111194.md
