Introduction: Smart IoT Weather Clock

This IoT desktop weather clock connects to the internet via a Wi-Fi module, fetches real-time weather data (temperature, humidity, conditions) and time from the HeFeng Weather API, and displays them on a 0.96" OLED screen. Featuring a custom 3D-printed enclosure with a horizontal tactile button for content switching, this project combines hardware soldering, embedded programming, and 3D design, perfect for makers to build and customize.

Supplies

Hardware List

  1. OLED Display SSD1306 128x64 (I2C)
  2. Horizontal Tactile Button 6x6mm 4-pin
  3. Wi-Fi Module ESP8266 (ESP-01)
  4. Voltage Regulator Chip AMS1117-3.3V
  5. 3D-Printed Enclosure
  6. Micro USB Cable
  7. Soldering Tools

Step 1: Hardware Assembly & Debugging

  1. Solder AMS1117-3.3V to PCB for stable 3.3V power supply to ESP8266.
  2. Connect ESP8266 TX/RX pins to MCU via jumper wires. Pre-flash AT command firmware.
  3. Solder OLED I2C interface to MCU. Connect button to GPIO with interrupt configuration.
  4. Connect Micro USB 5V input to AMS1117. Verify stable 3.3V output.
  5. Check for short circuits with a multimeter. Power test each module sequentially.

Step 2: 3D Modeling & Printing

  1. Model enclosure in Fusion 360 with openings for OLED, button, and ventilation. (My design is in the hardware section above)
  2. Print with PLA, 0.2mm layer height, 20% infill. Add supports for overhangs.
  3. Insert components into enclosure, secure PCB with screws. Align button with case opening.