Hexaclock: a Multifunctional IoT Clock

by corneliuschristian7 in Circuits > Clocks

504 Views, 2 Favorites, 0 Comments

Hexaclock: a Multifunctional IoT Clock

WhatsApp Image 2023-02-27 at 15.13.18.jpeg
ezgif.com-video-to-gif.gif

This is a clock, but not just that, you can use this clock as a lamp and also customize it's look! In the future i will add more features like reading temperature from openweather or even adding eyes to it.

Supplies

WhatsApp Image 2023-02-22 at 19.42.08.jpeg
WhatsApp Image 2023-02-22 at 19.42.09.jpeg
WhatsApp Image 2023-02-26 at 23.30.16.jpeg
WhatsApp Image 2023-02-27 at 15.31.21.jpeg

What you will need:

  • 1x MDF Board 2mm thick 20cmx20cm sized.
  • 1x Acrylic Board 2mm thick A4 sized, white colored or sandblast (I recommend sandblast for led case because it's more translucent).
  • WS2812b LED Strip (but you can use another led brand or type like WS2811), 60 LED/M, we just only need 40 pcs of led (66 cm). Amazon
  • ESP8266 Board (Any board including Nodemcu, Wemos, etc.) (I'm using Nodemcu Lolin V3). Amazon
  • DS3231 RTC Module (you can also use Chronodot) Amazon

Prepare Materials

WhatsApp Image 2023-02-26 at 22.47.08.jpeg
Screenshot from 2023-02-22 20-25-37.png

We'll make the face for our clock, this is the steps:

First, you need to cut the MDF board into:

  1. 1x Hexagon with sides of 8.5cm (all sides are equal in width)

And then we will need to paint the MDF board into gold (or whatever you want)

Stick Hexagon Board Into Acrylic Sheet

Stick the Hexagonal MDF board into the acrylic board with glue gun or two-sided tape. (There's no image for this step because i forgot to take a photo of it)

Connections and Wirings

Untitled Sketch_bb.png
WhatsApp Image 2023-02-22 at 19.42.08(1).jpeg
WhatsApp Image 2023-02-27 at 14.44.21(1).jpeg

LED STRIP : You need to solder a wire or jumper wire into input of the led strip (white arrows are the direction of flow), now connect:

  • LED GND into esp8266's G pin
  • LED Din into esp8266's D2 pin
  • LED 5V+ into esp8266's 3V pin

--------------------------------------------------------------------------------------------

DS3231 RTC Module :

  • DS3231 SCL into esp8266's D1 pin
  • DS3231 SDA into esp8266's D2 pin
  • DS3231 VCC into esp8266's 3V pin
  • DS3231 GND into esp8266's G pin

Build the Clock

WhatsApp Image 2023-02-27 at 16.24.27.jpeg

After sticking the hexagon MDF board into acrylic sheet, we'll cut the led strip into 6 groups with 5 leds per group and connect them with short wires. And then stick the led strips behind the acrylic sheet like on the image above.

Coding

Screenshot from 2023-02-27 14-50-33.png

If you haven't installed esp8266 boards you can follow this instructables

Now you need to upload the code attached below into your nodemcu or esp8266. You need to use this configuration :

  • Tools -> Baud Rate : 460800
  • Tools -> Board -> ESP8266 Boards -> Nodemcu 1.0 (ESP-12E Module)

Downloads

How to Use It

How to set themes and modes

To control the Hexaclock you need to connect to the clock using wifi, open your wifi setting and connect to "NodeMCU". Then, enter 192.168.1.1 in your browser. From there you can control the clock modes.

How to read the time

The blue light is indicating hour, red light is indicating second, and yellow light is indicating minute.

Done!

WhatsApp Video 2023-02-27 at 14.56.31.gif

Many features are ongoing. Also thanks for reading my instructable!