If one press makes a humidifier panel advance twice, record the raw contact waveform, debounced confirmation and setting event separately. That shows which stage counted the press twice before an oscillator is changed.
Consider an isolated low-voltage control panel that shows settings only through indicators or a simulated log. It connects to no atomizer, motor, heater or mains supply. Although the symptom is on a humidifier panel, the method does not depend on any manufacturer's parts. The question is how many hardware edges, accepted events and setting changes come from one press.
Multiple contact transitions can come from one press
A mechanical contact may open and close several times during a press or release. The input circuit sees alternating levels. If the controller treats every transition in the press direction as a command, it may count one press twice. This is contact bounce. Clock phase jitter describes variation in clock edge timing and belongs to a different measurement.
Debouncing determines when to recognize a transition as a new stable state. Firmware can sample with a timer, and some controllers filter at the peripheral. First define whether an ordinary event fires on stable press or stable release, and whether long-press repeat follows a separate rule. If the lower layer fires on press and the upper layer issues the same command on release, a clean input can still advance two settings.
Adding milliseconds alone cannot guarantee responsive behavior. A longer delay can change which short pulses are accepted. It cannot prevent two modules from each handling the same event. The panel alone can also be misleading. An animation may show intermediate positions although firmware committed only one change. Compare the internal setting record and display to distinguish two commands from a display transition.
Worked example: quantify the debounce window and clock error separately
Assume an external 32.768 kHz low-speed crystal provides the timing reference. A divide-by-32 gives 1024 samples per second, spaced about 0.977 ms apart. If the rule confirms a press after five consecutive pressed samples, there are only four intervals between the first and fifth samples, about 3.906 ms. Because the transition can occur between samples, the ideal delay from the final stable transition to confirmation is about 3.906 to 4.883 ms. This assumes no earlier sample qualified for the same state and excludes scheduling and output delay. It is an illustrative window.
An implementation that instead waits five intervals adds about one sample period. With a hypothetical one-sided frequency error of 20 ppm, a roughly 4.883 ms window changes by about 0.10 µs, compared with about 977 µs for a whole sample interval. A wrong divider, switching the low-speed clock source or missing timer activity can still affect timing. If a repeatable difference is around a full interval, check which tick starts the count before tightening the crystal tolerance.
The contact transition need not align with sampling. When replaying the same synthetic waveform, preserve pulse widths and vary the starting phase against the sample points. A pass with fixed alignment does not cover arbitrary press timing. Record stable-state duration, event count and delay from stability to display separately.
Give engineering a reproducible setting-button trace
Record one ordinary short press on the approved panel bench. Capture the button input, logged stable state, setting event and final setting. If channels have different clocks, align them using a shared observable marker before calculating latency. Use a designated low-voltage input test point. A conventional probe connected across a low-power crystal can alter the oscillator under observation.
Compare three cases. With one clean press and release, check for exactly one ordinary event. If the raw and stable states both show one press but there are two setting commands, inspect both handlers. Replay an input with short bounce in desktop software and compare raw edges with stable transitions. If extra stable transitions appear, check whether debouncing covers press and release or only one direction. Finally, replay two intentional short presses to verify that filtering preserves the second.
Test short presses separately from the product's long-press repeat. A press can trigger once immediately and start repeating after a delay if both mechanisms consume the event. Correctness depends on whether repeat is enabled, when it starts and whether release causes an extra change. Give ordinary actions and repeat actions distinct log labels so a repair team can tell which symptom occurred.
When should purchasing investigate the crystal?
If firmware logs show different sample periods on different boards for the same input and the external low-speed reference is actually active, investigate crystal compatibility with engineering. Japan's Epson FC1610AN with base code X1A0001210006 is a 32.768 kHz, 9 pF candidate for a matching design. A passive crystal relies on the board oscillator circuit and the controller clock path. It does not directly output the button sampling clock. Confirm the packaging suffix. The candidate is not identified as the installed part in a finished humidifier.
Other load-capacitance grades in the same package and at 32.768 kHz are not automatically equivalent. Verify equivalent series resistance, drive, the controller's low-speed oscillator requirements and board startup. If debouncing uses a different internal clock, changing a crystal that serves the calendar clock may have no effect on panel response. Obtain the board ID, part number and measured clock path before requesting a specification.
| Check | Evidence to keep | Insufficient substitute |
|---|---|---|
| Contact transitions | Actual input waveform and press and release timestamps | Displayed setting change alone |
| Debounce | Initial state, sample spacing, consecutive samples and confirmation event | A single configured time value |
| Setting change | Event owner, long-press flag and final setting | One combined record for press and release |
| Crystal replacement | Actual clock source, full order code, load and startup verification | A matching frequency alone |
Frequently asked questions
Will doubling the debounce time resolve the complaint? Two handlers can still issue two commands after filtering. A wide window may also suppress an intended second press. Replay a clean short press, a bouncing press and two separate short presses, then correct the stage where the extra event occurs.
If it advances twice only after waking, is crystal startup slow? The wake interrupt may only wake the processor or may already count as a press. Handling a stable press after wake can count it again. Record the wake cause, first valid sample and setting commands. Investigate the oscillator circuit if the clock output and its use show an anomaly.
