SensorCatalog
IEC 60748Analog Sensor → Positive-FB Comp

ヒステリシス付きコンパレータ(シュミットトリガ)回路

Dual-Threshold Hysteresis Switch · 3.3–5.0 V (LM393 / TLV3201)

シュミットトリガは正帰還抵抗Rfにより単一しきい値をVth+とVth−へ分離(ΔVh = Vcc·R1/Rf)し、ノイズを含むアナログセンサでのリレーチャタリングを完全防止します。

OUTPUT = HIGH (5.0 V · LED ON) · Vth− = 2.25 V / Vth+ = 2.75 V

Positive feedback Rf (100 kΩ) creates a 500 mV Schmitt deadband around Vref (2.5 V).

正常電流フロー警告・クランプ故障・過電流速度 ∝ 電流 |I|
Analog Sensor2.80 V0 – 5.0 V10 kΩSetpoint Vref2.5 VRf = 100 kΩ+−LM393 /TLV3201Schmitt Output5.0 VBand: 2.25–2.75 V

Upper Trip Threshold (Vth+)

2.75 V

Lower Release Threshold (Vth−)

2.25 V

Hysteresis Deadband (ΔVh)

500 mV

Comparator Output State

5.0 V (ON)

Alarm LED / Relay OutputENERGIZED (ON)
Positive Feedback (Rf)ACTIVE (25.0 µA feedback)
Sensor Operating ZoneABOVE Vth+ (TRIPPED)
Comparator Output TypeLM393 (Needs Pull-Up) / TLV3201
V

Drag across Vth− and Vth+ to see chatter-free Schmitt switching!

V

Center threshold reference (e.g. 2.50 V = 50% scale).

kΩ

Forms positive feedback ratio with Rf (typically 10 kΩ).

kΩ

Smaller Rf = wider hysteresis band ΔVh = Vcc · R1 / (R1 + Rf)!

プリセット:

リアルタイム計算式

1. Hysteresis deadband width

ΔV_H = V_CC · (R_1 / R_f) = 5.0 V × (10k / 100k)

⇒ 500 mV

2. Upper & lower switching thresholds

V_th+ = V_ref(1 + R1/Rf), V_th− = V_th+ − ΔV_H = Vref = 2.5 V

⇒ Vth− = 2.25 V | Vth+ = 2.75 V

3. Current switching decision

Vsens vs [V_th−, V_th+] = 2.80 V

⇒ HIGH (5.0 V)

動的部品選定・BOM

記号部品推奨定格判定
U1Dedicated Comparator (Never slow op-amp!)TLV3201 (push-pull) or LM393 (add 4.7 kΩ pull-up)OK
R1/RfHysteresis Feedback DividerR1 = 10 kΩ, Rf = 100 kΩ (ΔVh = 500 mV)OK
C1Sensor Input Noise Filter Cap10 nF–100 nF on Vsens before R1OK

1. 回路概要と動作原理

Whenever an analog sensor (NTC temperature, photodiode light level, liquid level, or battery voltage) needs to trigger a clean digital alarm, relay, or fan without a microcontroller, a Comparator with Positive-Feedback Hysteresis (Schmitt Trigger) is the essential circuit.

A bare single-threshold comparator chatters violently whenever sensor noise hovers near Vref — burning out relay contacts in minutes. Adding just ONE positive-feedback resistor Rf splits the trip point into two clean thresholds (Vth+ and Vth−), creating a rock-solid noise-immune deadband!

Dual Threshold Mechanics: Positive feedback routes a small fraction of the output voltage back to the non-inverting (+) pin. When output snaps HIGH (5 V), it nudges the (+) pin upward, reinforcing the HIGH state so Vsens must drop all the way below Vth− to flip back LOW — giving deadband ΔVh = Vcc · (R1 / Rf).

Dedicated Comparator vs Op-Amp: Always prefer a real comparator (TLV3201 push-pull or LM393 open-collector) over a general-purpose op-amp! Op-amps suffer slow overload recovery from saturation rails and some have back-to-back input clamp diodes that short Vsens to Vref.

ヒステリシス付きコンパレータ(シュミットトリガ)回路 — SensorCatalog
シュミット比較器回路PNG 1200×630

2. Step-by-step: Sizing a chatter-free Schmitt trigger sensor switch

  1. 1Measure peak-to-peak sensor noise and set ΔVh ≥ 3× noise

    Choose ΔVh wide enough to reject noise AND stop mechanical equipment short-cycling (e.g. 100–300 mV for alarms, 0.5–1.0 V for pump/fan thermostats).

  2. 2Compute Rf = R1 × (Vcc / ΔVh) around your target Vref

    Pick R1 = 10 kΩ (large enough not to load the sensor), then calculate Rf (e.g. 100 kΩ gives ΔVh = 500 mV on 5 V). Keep sensor source impedance << R1.

  3. 3Remember pull-up resistor if using open-collector LM393

    LM393 cannot source HIGH voltage! Add a 2.2–4.7 kΩ pull-up resistor to Vcc (and note R_pu adds to Rf when HIGH — pick Rf ≥ 20 × R_pu so symmetry stays tight).

  4. 4Add a small input RC filter BEFORE R1 (never right at the + pin!)

    Filter high-frequency sensor noise BEFORE R1 so the positive feedback step at the (+) pin snaps instantaneously without delay.

3. 現場トラブルシューティングとテスタ確認

症状原因テスタ測定ポイント対策
Relay buzzes / chatters for 1–2 seconds as temperature crosses setpointMissing Rf hysteresis, ΔVh smaller than sensor noise, or power-supply dip when relay pulls inProbe Vref and Vcc during relay engagement; confirm ΔVh > 3× rippleLower Rf to widen ΔVh, decouple Vcc near comparator (100 µF + 100 nF), and stabilize Vref
LM393 output never goes HIGH (always stays near 0 V)Forgot external pull-up resistor on open-collector LM393 outputCheck datasheet output stage — LM393/LM339 are open-collectorAdd 4.7 kΩ pull-up resistor from output pin to +5 V (or use push-pull TLV3201)

4. よくある技術質問(FAQ)

Why shouldn’t I use an LM358 op-amp as a sensor comparator?

Op-amps are internally frequency-compensated for linear feedback, so recovering from rail saturation takes tens of microseconds and output slew is sluggish — increasing noise susceptibility during switching. Dedicated comparators snap in nanoseconds.

How much hysteresis (ΔVh) is enough?

At least 3× the worst-case peak-to-peak noise at the comparator input (typically 50–200 mV for clean board sensors, 300–800 mV for noisy remote process probes or pump/heater deadbands).

Does the sensor’s own output impedance affect Schmitt trigger thresholds?

YES! Any sensor source impedance R_s adds directly in series with R1 (R1_eff = R1 + R_s), widening hysteresis and shifting thresholds! Either buffer the sensor first or include R_s in your R1 calculation.

How do I invert the logic so output goes HIGH when sensor drops BELOW Vref (e.g. low-battery)?

Swap inputs to an Inverting Schmitt Trigger: connect Vsens to (−) and apply Vref + positive feedback Rf to (+). Then Vsens < Vth− snaps output HIGH!

Can I build a Window Comparator (both Under-Range AND Over-Range alarms)?

Yes! That’s why open-collector LM393 is legendary: tie the two comparator outputs together with ONE shared pull-up resistor — either Under-Limit OR Over-Limit pulls the shared FAULT line LOW automatically!

Why does a relay turning ON sometimes make the comparator immediately turn back OFF?

Relay coil inrush pulls down the shared power rail, momentarily lowering Vsens or shifting Vref across the threshold. Add bulk decoupling (100 µF) and derive Vref from an independent shunt reference (TL431) rather than raw Vcc.

5. 関連計算ツール・比較ガイド・その他の回路

↑ ↓ 選択 · Enter 開く · Esc 閉じる