DESIGNMISSION 018 · Digital inputs · Noise and debounceFoundational

The Button Pressed Itself

A normally open service button sits at the end of a two-meter cable. The controller logs presses while nobody is near it. Build an input that has a real electrical default, rejects the supplied cable pulse and still recognizes the shortest valid press.

Requirements

Supply · 3.3 VLeakage · 30 µA worst caseNoise · 300 µA for 0.8 msBounce · up to 4 msShortest press · 30 ms
  1. 01Design the complete input
  2. 02Verify field behavior
Circuit overview

Remote input path

Remote service button input networkA two meter cable connects a normally open button to ground. The MCU input uses MCU internal pull-up · 40 kΩ worst case and 100 nF · ±20%.MCU INPUTVIH 2.0 V · VIL0.8 VS1 · NORMALLY OPEN2 m CABLE · 100 Ω PATH+3.3 VR PULL-UPMCU internal pull-up · 40 kΩ worst caseC FILTER100 nF · ±20%CONTACT BOUNCE0.8 ms cable pulse

The input is a Schmitt-trigger GPIO, but hysteresis does not create a bias. Capacitor tolerance is ±20%. Use the minimum capacitance for noise rejection and maximum capacitance for response time.

Circuit and case data
Circuit and case data
Disturbance packet
Supplied design envelope
ConditionRequirementWhy it matters
Released≥2.30 VVIH plus 0.30 V margin after leakage
Cable pulseRemain ≥2.30 VNo ambiguous or false transition
Steady closed-switch current≤1.0 mA steadyClosed-contact power budget
Transient contact current≤40 mA peak / ≤1 msAuthored contact pulse envelope
Recognition<30 msAccept the shortest valid press

Firmware validation must exceed the observed 4 ms bounce. It cannot repair a floating or electrically noise-sensitive node before the sampler.

Worst-case readings
Released HIGH2.10 VAfter noise pulse-0.55 VSteady closed-switch current0.082 mAInitial contact current33.0 mAContact transient0.043 msPressed LOW0.008 VRecognition2.02 ms

The cable pulse starts at the leakage-reduced released voltage; its 300 µA sink is additional to the 30 µA leakage.

Press recognition only: release bounce and re-arm are outside this exercise. The 1 mA limit applies to steady-state closed-switch current. A separate authored contact qualification allows a peak of 40 mA for up to 1 ms; this is not a universal switch rating. The capacitor's initial discharge current is checked separately using the supplied 100 Ω contact path and maximum 3.3 V charge. The cable disturbance is a supplied current-pulse design case, not an EMC qualification waveform. The pressed-state RC calculation includes the closed-switch resistance and the pull-up as a Thevenin network.

Evidence notebook 0 saved

No evidence saved yet. Measure, inspect the result, then save useful observations.

Current task
Current task

Step 1 of 2

Design the complete input

0 evaluated decisions · Draft and verification saved locally
Technical references