SensorCatalog
IEC 61131-22-wire Dry Contact → RC + Schmitt

Contatto Pulito: Antirimbalzo Hardware RC e Corrente di Wetting

Debounced Digital / Pulse Input · 3.3–24 V DC Wetting Rail

I contatti meccanici richiedono ≥ 5–10 mA di corrente di wetting contro l’ossidazione e un filtro RC (t_deb > rimbalzo) seguito da 74HC14.

CLEAN DEBOUNCE — τ_deb = 11.4 ms (> 8 ms) · I_wet = 10.9 mA

74HC14 Schmitt trigger outputs a single glitch-free edge up to 29.3 Hz while 10.9 mA keeps contacts self-cleaning.

Flusso normaleAvviso / ClampGuasto / SovracorrenteVelocità ∝ |I|
+24.0 V2.2 kΩI_wet = 10.9 mADry Contact0 V (GND)22 kΩ0.47 µF74HC14Glitch-Free MCU IRQt_deb = 11.4 msZero False Counts

Debounce Time (t_deb)

11.4 ms

Wetting Current (Closed)

10.91 mA

Max Pulse Rate

29.3 Hz

R1 Power (Closed)

262 mW

Dry ContactCLOSED
Oxide ProtectionPASS (≥5 mA)
Schmitt OutputHIGH (Clean)
V

24 V industrial DI or 5 V / 3.3 V logic pull-up.

kΩ

Must push ≥ 5 mA through mechanical contacts to break oxide films!

kΩ

Sets debounce time τ = R2 × C1 together with capacitor C1.

µF

0.1–1.0 µF X7R before a 74HC14 Schmitt inverter.

ms

Limit switches / relays typically bounce 3–15 ms.

Preimpostazioni:

Formule passo passo in tempo reale

Contact Wetting Current (Anti-Oxidation)

I_wet = Vcc / R1 (target ≥ 5 mA) = 24.0 V / 2.20 kΩ

⇒ 10.91 mA

Schmitt RC Debounce Time

t_deb ≈ 1.1 × R2 × C1 = 1.1 × 22 kΩ × 0.47 µF

⇒ 11.37 ms

Distinta base dinamica (BOM)

Rif.ComponenteDimensionamentoStato
R10.5 W Wetting Pull-Up Resistor2.2 kΩ (262 mW)OK
U174HC14 / SN74LVC1G14 Schmitt TriggerHysteresis eliminates slow-edge oscillationOK

1. Panoramica tecnica e principio di funzionamento

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.

Contatto Pulito: Antirimbalzo Hardware RC e Corrente di Wetting — SensorCatalog
Antirimbalzo ContattoPNG 1200×630

2. Step-by-step: Designing an industrial-grade dry-contact input stage

  1. 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.

  2. 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.

  3. 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.

  4. 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. Ricerca guasti sul campo con multimetro

SintomoCausa principaleVerifica multimetroSoluzione
Limit switch works on the bench but randomly misses triggers after 6 months in the plantContact oxidation due to < 1 mA wetting currentMeasure closed-contact voltage drop across switch terminalsLower R1 to supply 5–10 mA wetting current or switch to gold-plated contacts

4. Domande frequenti (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. Calcolatori correlati, guide e altri circuiti

↑ ↓ scegli · Invio apri · Esc chiudi