Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Brands and Sourcing

Tracing Temperature Thresholds and Restart Delay in a Thermostat With a 32.768 kHz Crystal

When a smart thermostat remains in a waiting state after crossing a temperature threshold, record temperature decisions, off-time protection and simulated output together. A satisfied temperature condition is not permission to start.

Consider a low-voltage connected thermostat prototype. Software decides whether to request cooling; another path decides whether it can start, possibly enforcing a minimum off time. Replay temperature logs with a test indicator, without connecting a compressor, relay load or equipment in use. Do not change protective settings on a production unit.

Two temperature thresholds and a timer serve different purposes

Hysteresis can set separate thresholds for asserting and canceling cooling. In this example the request starts at the upper threshold and clears only at the lower one. Between them, the prior state can be retained to avoid rapid cycling around one threshold. Record setpoint, displayed temperature and filtered comparison value separately; they may differ.

The off timer is another gate. A valid request may have to wait for protection to expire. Conversely, if the request cleared before expiry, timing alone cannot authorize output. Preserve reasons such as “below request threshold,” “request pending protection,” “request canceled” and “eligible.” A snowflake icon or waiting message does not replace these states.

Sample refresh is a third factor. After the input crosses a threshold, the application may wait for the next sampling and filter update. A later display change does not show that the low-speed oscillator ran slowly. Put simulated input, the value used by firmware, cooling request and protection counter in one reference timeline to locate the delay.

Worked example: why does action wait for all three minutes?

Suppose the simulated stop is at 0 seconds and the illustrative minimum off time is 180 seconds. At 40 seconds, the comparison temperature reaches 26.3 °C and passes the 26.0 °C request threshold. If the request stays active, there are still 180 − 40 = 140 seconds to wait. Output remains inhibited by design. If temperature instead drops to the 25.5 °C cancellation threshold at 120 seconds, the request clears. Timer expiry at 180 seconds should not revive it.

These numbers illustrate a test, not settings for real equipment. Use equipment-specific approved requirements. Document the source of the stop time: the last software command may differ from the acknowledged stop, and reset or resume can establish a new origin. A visible countdown does not establish it started from the correct event.

If the request is active and timing has expired but simulated output remains off, inspect other interlocks, modes and states. Log external inhibit, mode transition and sampling failures where applicable. Observe safety functions and verify them under approved procedures rather than disabling them to make a test pass.

Where does a 32.768 kHz crystal matter?

If the timer uses an external low-speed crystal, one candidate is Epson FC2012AN X1A000171000318, nominally 32.768 kHz with 7 pF load and ±20 ppm initial tolerance at 25 °C and 0.1 µW. Suffix 18 denotes 5,000 units per reel. It is passive and needs the controller's oscillator circuit. This is not a confirmed thermostat BOM, and crystal frequency cannot qualify the protective function.

For scale, if the timer uses that source throughout and the only error is a constant +20 ppm, a nominal 180 seconds lasts 180 ÷ 1.000020 ≈ 179.9964 seconds, about 3.6 ms short. That does not explain 140 seconds of waiting. Temperature, load, calibration, counter behavior and sleep source can all differ. If counting stops in sleep, switches sources or loses its start at reset, room-temperature tolerance cannot rule out a timing-chain problem.

Build one repeatable set of cases

On a bench disconnected from actuators, replay a timestamped trace covering stable high temperature, threshold crossing, a return into the hysteresis band and cancellation. Establish an awake baseline, then hold the trace fixed while testing supported sleep and reset. Save source selection, timer and request states. If an independent clock shows three minutes passed and the counter did not advance, verify whether its source runs in that power mode.

Add a case near a sampling boundary. Shift the same temperature trace slightly and see whether the request changes one sampling interval later. That differs from a protection timer restarting at the wrong event. Keep raw logs on the same timebase, not just an average response time.

CheckEngineering evidencePurchasing or quality conditions
Temperature decisionRaw input, effective comparison value and thresholdsRevision, sensor and filter settings
Off-time originSimulated stop, counter source and time remainingTie system criteria to test records
Candidate crystalSource selection, startup and continuity in low powerExact code, load, drive, specification and temperature
RecoveryWait-state reset or wake log and simulated outputDo not extend a bench image result to untested devices

Treat a same-frequency quote as a candidate only. Check load and oscillator margin and retest the low-power timebase. If original and candidate sources both work and the wait follows the approved rule, separate component evaluation from the thermostat issue.

Also cancel a request just before the timer expires, confirm expiry, then create a new request with the same replay. Verify that the log distinguishes the canceled request from the new one. A queued intent that is never rechecked can request output after demand is gone. Keep this test simulated.

Frequently asked questions

If the display stays above the upper threshold, is the crystal faulty? Verify the request, timer and whether the display uses the same value as the logic. Investigate clocking when the count differs from the independent reference.

Can initial ppm explain two thermostats starting a minute apart? Not by itself. Match stop origins, configuration, sample refresh and sleep state first. Any of them can change start time.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.