1. Überblick & Funktionsprinzip
Mechanical limit switches, reed switches, tipping-bucket rain gauges, and relay contacts suffer from two classic failure modes: 3–15 ms contact bounce (causing 5–20 false MCU interrupts per closure) and contact film oxidation when pulled up with weak microamp resistors. A proper wetting resistor R1 (≥ 5 mA) + RC debounce (R2/C1) + 74HC14 Schmitt trigger solves both permanently.
Minimum Wetting Current: Industrial silver-alloy contacts form thin insulating sulfide/oxide layers over months. Pushing ≥ 5–10 mA through R1 at 12–24 V physically punches through oxide films on every closure, keeping contact resistance low for years.
Why a Schmitt Trigger Is Mandatory: Feeding a slow RC ramp directly into a normal CMOS GPIO input causes multi-MHz shoot-through oscillation near Vcc/2! A 74HC14 Schmitt inverter has wide built-in hysteresis that turns slow RC curves into a single crisp nanosecond edge.

2. Step-by-step: Designing an industrial-grade dry-contact input stage
1Size wetting resistor R1 for 5–15 mA when contact closes
For 24 V DI, 2.2 kΩ (0.5 W) delivers 10.9 mA wetting current; never rely on 47 kΩ MCU internal pull-ups for field switches.
2Set RC debounce delay t_deb ≈ 1.1 × R2 × C1 > worst bounce
For 8 ms bounce, 22 kΩ × 0.47 µF yields ~11.4 ms clean debounce while still allowing up to 29 Hz pulses.
3Buffer with a 74HC14 / SN74LVC1G14 Schmitt trigger
Add a 3.3 V / 5 V clamp diode before the Schmitt input when wetting from a 24 V field supply.
4Verify maximum pulse rate stays below 1 / (3 × t_deb)
High-speed flowmeters (>200 Hz) use solid-state Hall/optical sensors with smaller C1 (1–10 nF) instead.
3. Fehlersuche & Multimeter-Diagnose
| Symptom | Ursache | Multimeter-Prüfung | Abhilfe |
|---|---|---|---|
| Limit switch works on the bench but randomly misses triggers after 6 months in the plant | Contact oxidation due to < 1 mA wetting current | Measure closed-contact voltage drop across switch terminals | Lower R1 to supply 5–10 mA wetting current or switch to gold-plated contacts |
4. Häufige technische Fragen (FAQ)
Do gold-plated reed switches also need 10 mA wetting current?
No — gold does not oxidize, so gold-plated dry-circuit contacts work reliably down to 100 µA–1 mA (and high current would actually burn off the thin gold plating!).
5. Zugehörige Rechner, Leitfäden & weitere Schaltungen
- Rechner für Impulsausgänge
- Rechner für Anti-Aliasing-RC-Filter
- PNP-Schaltausgang (3-Leiter, Plus-schaltend) — Schaltung & Simulator
- NPN-Schaltausgang (3-Leiter, Minus-schaltend) — Schaltung & Simulator
- NAMUR 2-Leiter Eigensicherheits-Schaltung (IEC 60947-5-6)
- Gegentakt (HTL/TTL Push-Pull) & Open-Drain Sensorausgang
- Optokoppler-Trennung & Relais-Freilaufdiode (Sensoreingang)
- 24-V-Sensoreingangsschutz (PMOS-Verpolschutz, TVS & PTC)
- 2-Leiter 4–20 mA Stromschleife & geschützter Empfänger
- 3-Leiter vs 4-Leiter Aktiver Analog-Messumformer (0–10 V)
- Spannung-zu-4–20 mA Stromsender (OPV + Längstransistor)
- NTC-Spannungsteiler + OPV-Impedanzwandler & RC-Filter