Home > Microcontroller >Microcontroller Production > Sharing the process of making a single-chip integrated digital clock

Sharing the process of making a single-chip integrated digital clock

Source: InternetPublisher:MartinFowler Keywords: Digital clock Updated: 2023/12/22

    Easy to make, beautiful digital clock with WiFi time collection function.

    One-piece structure: consists of only one functional part (except the back cover)

    Overall appearance: When powered off, looks like marble tiles

    Automatically adjust time over WiFi using NTP

    WiFi setup via smartphone

    Supplies

    25 pixel WS2812B (aka Neopixel) LED strip, 60 pixels per meter (16.67mm pitch), not covered by waterproof pipes. I used BTF-LIGHTING products (IP30 non-waterproof).

ESP32 (ESP-WROOM-32) microcomputer. The back cover is specially designed for short ESP32 development boards, such as MH-ET LIVE MiniKit for ESP32 or its compatible products.

    Four 2 x 10mm self-tapping screws

    Wire, soldering iron

    Decorative sheets: refurbished sticker sheets/wallpapers (wood, marble, fabric, etc.)

    Step 1: Print the Monolithic Lightguide

    Use a 3D printer to print a monolithic light guide.

    Print in the pose provided.

    No support is required for printing.

    Overall.stl

    Step 2: Prepare LED Strip

poYBAGJdJ0KAMc6LAANhTkJYRGo467.png

    Cut the LED light strip into 7, 7, 1, 7, 3 (corresponding to 1min, 10min, colon, 1hour, 10hour respectively)

    Reconnect the LED strip with wires (5V, GND, Din/Dout)

    Connect the LED strip to the ESP32 (VCC, GND and GPIO16)

    Check that all LEDs are lit

    Step 3: Glue the LED strip

pYYBAGJdJzyAbOVHAAZUBMkf-vY183.png

    Use tape to attach the LED strip to the main body.

    Step 4: Prepare the back cover (optional)

poYBAGJdJziAEHcBAASzqSp9Vcs784.png

    Print cover.stl in the provided pose. No support required.

    Insert the ESP32 board into the slot.

    Secure the back cover with 4 self-tapping screws.

    cover.stl

    Step 5: Cover with Diffusing Material

pYYBAGJdJzSADGhRAAl82dW0i8k248.png

poYBAGJdJy-AB67AAARNyuMoSLk489.png

    Cover the clock with a thin diffusion material.

    I bought some decorative panels at the 1 dollar store (100 yen store).

    One is natural wood plank (very thin solid wood plank with adhesive).

    The other is marble-like stickers. Both are translucent and diffuse enough.

    It would be nice to use your favorite photo as a diffuser.

    Another idea is to use a half mirror on this clock. In this case, tape copy paper over the entire back of the mirror to diffuse the light.

    Step 6: Flash the Code

    Use the Arduino IDE to flash the code to the ESP32.

    smartConfig.ino

    Step 7: Configure WiFi

    You can configure the ESP32's WiFi settings via a smartphone app. Use smatConfig.ino as Arduino sketch.

    The ESP32 stores the SSID and password in its non-volatile memory.

    If the previous (memorized) SSID and password do not work, it will automatically enter SmartConfig mode after 30 seconds. The clock shows "SC" (meaning SmartConfig).

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号