Testing an LCD Clock Before Enclosure Design
- Intermediate
- Article
- Ages 16+
- 9 min read

A clock prototype needs tests for normal networking, outages, location changes, power transitions and real viewing distances. Each test requires an initial condition and an expected outcome. Finalize components and enclosure only after essential functions recover correctly and energy measurements support the proposed operating schedule and runtime target.
Contents
- Clock prototype
- Measurement instrument
- Test record
What you will learn
- Define tests for time, weather and settings.
- Check large-character faces and USB-to-battery transitions.
- Record evidence separating proposed behavior from measured results.
Before you start
Understand the energy budget and proposed firmware loop.
How should network and time failures be tested?
Separate connection, data and timekeeping failures. Espressif documents SNTP setting system time and the RTC timer resetting on power-on. Losing Wi-Fi while still powered is therefore different from starting after all power was removed.
This table is a proposed test plan rather than reported results.
| Scenario | Expected observation |
|---|---|
| Startup with networking | Valid time after synchronization and correct local rules |
| Wi-Fi disabled during operation | Continuing clock face and visible network state |
| Startup after complete power loss | Backup time or an explicit unset indication |
| Weather request timeout | Buttons and clock meet the defined responsiveness requirement |
| Missing temperature field | Unavailable data rather than an invented value |
| Location changed during a request | Previous-location data cannot appear under the new name |
| Connection restored | Fresh data replaces old data and clears its indication appropriately |
Open-Meteo includes the validity time of current data. Record both source time and device reception time when investigating weather behavior. A newly downloaded response can still describe an earlier time.
Compare clock time against a selected reference after synchronization and after local operation. Record deviation, observation duration, sleep mode and ambient temperature if measured. Define acceptance limits before testing rather than assigning an accuracy specification to unselected hardware.
Add the following alarm and OTA cases. Each row describes proposed acceptance behavior, not a completed test.
| Scenario | Expected observation |
|---|---|
| Save alarm time and repeat days, then restart | Schedule and enabled state are restored |
| No valid time | A set-time indication, with ringing unarmed |
| Wi-Fi lost before an occurrence | Alarm follows valid local time |
| Backward correction or repeated local time | The same occurrence does not ring twice |
| Forward adjustment past an alarm or zone change | Skip the crossed occurrence, recompute and display the next one |
| Press + while ringing, then change system time | Snooze follows elapsed time rather than the corrected clock |
| Press Menu while ringing | Dismiss this occurrence and retain the repeat schedule |
| Restart while snoozing | Cancel snooze with a notice, retaining the original schedule |
| Incomplete OTA download or network loss | Previous firmware remains bootable, with an error and retry path |
| Wrong board, oversized image or failed signature | Reject installation without selecting that image for boot |
| Power loss while writing the unused application slot | Verify previous boot and readable settings |
| New build fails boot diagnostics | Return to the previous build if rollback is enabled; otherwise use wired recovery |
| Settings-schema change followed by rollback | Previous build can still read the retained alarm and location |
| Update near an alarm or during snooze | Defer installation and preserve alarm operation |
Record the step and interruption point for each OTA test. This scope updates the application, leaving the bootloader and partition table unchanged. After a successful update, check the alarm, zone, location, lighting and displayed version; download completion alone does not establish a working release.
- Network disconnected
- Continuing time
- Status indication to check
How should readability and power transitions be checked?
Use the intended reader, distance and lighting for both compact and distance-view versions. Prepare fictional long time strings for the selected font, long dates, long place names and missing-data states. Check that notifications leave time as the primary information.
Place the prototype on its intended desk or shelf and try frontal and off-axis viewing through the cover lens. Let the user read without announcing the displayed value. Record confusion, change one factor such as font or angle and repeat. This is a proposed product evaluation, not a vision assessment.
For power, observe USB operation, USB removal and battery operation, then USB restoration. Record the face and startup log to catch blanking or resets. Confirm charging from signals supported by the module instead of inferring it from cable presence.
Preferences is documented to retain settings through restarts and power loss. Verify the application by saving a place, restarting and comparing the restored choice. Returning to defaults calls for investigating configuration reads and writes before replacing hardware.
Exercise quick presses, holds, releases and successive inputs. One accepted press produces one action; releasing a held Menu must not save pending edits. Canceling or reaching the inactivity deadline restores the previous schedule. Repeat during an HTTP wait, during ringing and on both screen sizes, checking readable dismiss, snooze and Save/Cancel instructions.
- Large-character face
- User seating position
- USB source transition
What belongs in the design record?
Record enough configuration to repeat the experiment and enough results to decide the next change. Include board identity, library versions, LCD identity, display profile, power assembly, measurement point and lighting and networking schedule.
EIA distinguishes instantaneous power from energy used over time. A single current reading therefore does not replace a full-cycle assessment. Observe defined states, record their duration and combine energy contributions at a consistent boundary.
Before stating runtime, operate the assembled device under the recorded schedule from a defined initial power state to a stated endpoint. Record successful updates, outages, lighting and time readability near the endpoint. Measurements taken only at USB establish USB input consumption, not battery runtime.
Proceed to enclosure design after checking the display, buttons, ports and recovery access. Retain wired programming access in the prototype enclosure. Once enclosed, repeat viewing, interaction and operating-temperature checks because the installation conditions have changed.
- Defined measurement point
- Observation over time
- Configuration and conditions
Real-world example
A large-character prototype works on the bench but restarts when USB is removed. Its stored place remains intact. That separates settings retention from source transition: saved data survives while continuous operation fails.
The team records the exact power module, repeats the transition and confirms its power-transition behavior before changing the design. After correction, they repeat the same case and test an outage during battery operation. This is a fictional diagnostic example, not an observed prototype failure.
Common misunderstandings
Successful upload establishes a finished prototype. Failure, recovery and intended operating conditions still require testing.
Calculated endurance is measured product runtime. Compare the estimate with a trial using the same configuration and usage schedule.
Frequently asked questions
Should the compact or large version be tested first?
Complete one configuration first, then repeat the scenarios on the other. Shared software does not replace separate readability and energy checks.
Should invalid server responses be tested?
Yes. Saved responses make failures reproducible so the face and previous-data handling can be checked.
When can time between charges be stated?
After testing the complete device with the chosen battery assembly, clear usage conditions and a consistent endpoint.
Terms in this article
English and Vietnamese terms, with the meanings used here. Hover, tap or Tab to a term with a dotted underline for an explanation as you read.
- RTC
- A timekeeping timer whose behavior depends on power state.
- energynăng lượng
- Electricity use assessed over power and time.
This article is not marked as viewed
Spotted something wrong or unsafe?
Tell the administrator by email. The message already has the article title and address.
You may also like
IntermediateUSB, Rechargeable Power and LCD Clock Runtime
Budget energy for an LCD clock, distinguish charging from power-path control, and measure lighting, networking and sleep costs.
Internet of Things (IoT)7 min read
IntermediateInternet Time and Local Weather for a Clock
Synchronize time, select and store a location, and handle stale weather without confusing outdoor conditions with room temperature.
Internet of Things (IoT)7 min read
IntermediateChoosing an LCD and Large Clock Characters
Compare LCD lighting modes, character size and display profiles for a compact desk clock or a large face read from a chair or bed.
Internet of Things (IoT)7 min read
IntermediateWhat Does a Smart Desktop Clock Need?
Plan an LCD desk clock with Wi-Fi, local weather and a rechargeable battery, with clear component roles and a manageable firmware design.
Internet of Things (IoT)7 min read
Sources
These sources are written for older readers. If they feel hard, read them with an adult.
- System Time(opens in a new tab)
EspressifTier C: other sourcesRead on November 1, 2026
- Preferences API(opens in a new tab)
EspressifTier C: other sourcesRead on November 1, 2026
- Measuring electricity(opens in a new tab)
U.S. Energy Information AdministrationTier A: government, standards or research bodiesRead on November 1, 2026
- Weather Forecast API(opens in a new tab)
Open-MeteoTier C: other sourcesRead on November 1, 2026
