EmbeddedRelated.com

ESP32-S3 IoT Digital Clock with Environmental and Weather Monitoring

A production digital clock with weather indication plus local room temperature and humidity sensing, built around the user's existing ESP32-S3 display platform.

Intermediate Project — This is an intermediate production design because it combines WiFi networking, I2C sensing, display integration, power-rail design, and enclosure/thermal considerations, even though the core MCU ecosystem is already chosen.
Assumptions:
  • The weather indicator means a simple icon/state derived from online weather data, not a full local weather station.
  • The existing Waveshare ESP32-S3 board and 2 inch capacitive display will be reused in the final product, even though production would normally move to a custom PCB/module.
  • The clock will use WiFi to fetch time and weather data from an internet service.
  • Room temperature and humidity are measured locally with a single digital sensor mounted away from heat sources on the PCB.

Bill of Materials

Microcontroller
Top Pick ESP32-S3-WROOM-1-N16R8 Espressif Systems From our database
ESP32-S3-WROOM-1-N16R8 is the best overall choice because it matches the user's existing ESP32-S3 ecosystem, gives comfortable memory margin for WiFi, weather parsing, and display UI, and is a production-suitable module rather than a dev board.
Mouser $6.71 (675 in stock)
ESP32-S3-WROOM-1-N8 Espressif Systems From our database
Lower-cost ESP32-S3 module option that still supports WiFi, I2C sensors, and a graphical clock UI. Good if firmware and assets are kept modest and you want to reduce BOM cost.
ESP32-S3-WROOM-2-N16R8 Espressif Systems
Useful if you want a smaller module footprint or a different antenna/package style while staying on the same ESP32-S3 toolchain. Still fully compatible with the user's existing ecosystem and software stack.
Room Temperature and Humidity Sensor
Top Pick SHT31-DIS-B Sensirion From our database
SHT31-DIS-B is the best overall pick because it offers excellent indoor temperature/humidity performance, is widely available, and is a very common production choice with a simple I2C interface.
SHT35-DIS-B Sensirion From our database
Highest-accuracy option in the list, with excellent humidity and temperature performance for a room clock that may be used as a reference device. I2C interface is simple to connect to ESP32-S3, and the part is active and available from major distributors.
SHT30-DIS-B10KS Sensirion AG From our database
Solid consumer/industrial-grade temperature and humidity sensor with good availability and a straightforward digital interface. A good value choice if you want reliable room sensing without paying for flagship accuracy.
Weather Indicator
Top Pick BMP390 Bosch Sensortec From our database
No additional hardware required is the best choice because a weather indicator for a clock is usually derived from online weather data, not from a local sensor. If you want a local trend icon instead, BMP390 is the cleaner add-on than BME280.
No additional hardware required N/A AI suggestion - verify availability
The weather indicator can be implemented in firmware using the existing display and WiFi connection to an online weather API. This is the cleanest production approach because it avoids extra sensors that cannot actually predict weather indoors.
BME280 Bosch Sensortec From our database
Combines humidity, temperature, and pressure in one part, which can simplify the BOM if you want pressure-based weather trend estimation. However, it duplicates the room sensing function and is less accurate than a dedicated SHT3x plus separate pressure sensor.
Power Supply
Top Pick AP2112K-3.3 Diodes Incorporated From our database
Top pick: AP2112K-3.3 (Diodes Incorporated). Simple, low-cost 3.3 V LDO that is easy to design in and widely used in ESP32-class products. Good if the input is already a clean 5 V rail and current is moderate.
MCP1700T-3302E/TT Microchip Technology From our database
Very low quiescent current LDO, useful if you later decide to support battery backup or always-on standby. Best when load current is modest and thermal dissipation is not a concern.
Display
Top Pick O12864A-GLB-YW3 Focus LCDs From our database
O12864A-GLB-YW3 is the best display candidate from the available parts because it is a practical SSD1306-based module with enough resolution for time, date, and weather icons, and it is easy to interface to the ESP32-S3.
SSD1306 Solomon Systech
Very common monochrome OLED controller with broad library support and low power draw, suitable if you redesign the product around a smaller text/icon display. Good for a simple clock and weather icon UI.
WEA012864DWPP3N00003 Winstar Display From our database
Another 128x64 SSD1306-based OLED module with strong contrast and straightforward integration. Useful as a production reference if you want a proven small graphic display.

Compatibility Notes

  • The ESP32-S3 family uses 3.3 V logic, so the SHT31-DIS-B and SSD1306-based display module should be powered and interfaced at 3.3 V unless the display module includes its own level shifting.
  • SHT31-DIS-B uses I2C, which is a good fit for the ESP32-S3 and leaves SPI pins free if the display module needs them.
  • If you use the existing Waveshare board in the prototype, confirm whether its display and sensor headers already expose 3.3 V I2C; for production, the custom PCB should place the SHT31 away from the ESP32 and regulator heat.
  • WiFi current bursts from the ESP32-S3 can be substantial, so the power rail must handle peak load without brownouts; a buck regulator is safer than a small LDO for production.

You'll Also Need

  • A real-time clock backup source such as a coin cell or supercapacitor if you want to keep time during power loss without WiFi sync.
  • Enclosure, display window, mounting hardware, and sensor venting path so the humidity sensor can measure room air instead of trapped case air.
  • Pull-up resistors for I2C, decoupling capacitors, and any required ESD protection on external connectors.
  • If you want local weather trend indication from pressure, you would need to add a pressure sensor and decide whether that duplicates the room sensor function.
  • Firmware, cloud/API selection, and time zone/DST handling are not hardware parts but are required for a production clock.
Estimated BOM Cost: $12-25 excluding the existing Waveshare ESP32-S3 d (based on live distributor pricing)

Design Considerations

Weather Indicator Architecture
For a clock product, the weather indicator should usually come from an online API rather than a local sensor. A local pressure sensor like BMP390 can only infer short-term pressure trends, which is useful for a simple icon but not for actual forecast accuracy. If you need true weather, design the firmware around periodic WiFi fetches, cached last-known-good data, and graceful fallback when the network is down.
Sensor Placement and Accuracy
The SHT31-DIS-B should be placed near a vent or opening and away from the ESP32-S3, regulator, and backlight/display heat. Even a few degrees of self-heating can bias humidity readings noticeably in a small enclosure. In production, use a thermal isolation cutout or edge placement and validate readings after 10-15 minutes of steady operation.
Power Integrity
ESP32-S3 WiFi transmit bursts can create current spikes that cause resets if the 3.3 V rail is weak. Budget for peak current, not just average current, and place local bulk capacitance near the module plus 0.1 uF decouplers at each IC. If the product is USB-powered, a buck regulator like ESP32-S3-WROOM-1-N16R8 gives better thermal headroom than an LDO.
Firmware Robustness
Use a state machine with separate tasks for time sync, weather fetch, sensor sampling, and display refresh. That makes it easier to recover from WiFi failures without freezing the UI. Add a watchdog and store the last valid time/weather state so the clock remains useful during network outages.
Display Readability
A 128x64 OLED is enough for a clock, date, and a small weather icon, but not for dense weather text. Keep the UI high contrast and use large numerals, because production devices are often viewed from several meters away. If you later need richer graphics, you will need more RAM and a more capable display pipeline than a simple monochrome OLED.
Production Reliability
Humidity sensors drift if exposed to condensation, dust, or direct airflow from fans and vents. Add a protective mesh or vent membrane if the enclosure environment is harsh, and define a calibration or replacement strategy for long-term accuracy. Also test cold-start behavior, WiFi reconnects, and power cycling to make sure the clock always boots into a valid display state.

Want to customize this project or build something different?

Try the Project Advisor