Hexaclock: a Multifunctional IoT Clock
by corneliuschristian7 in Circuits > Clocks
580 Views, 3 Favorites, 0 Comments
Hexaclock: a Multifunctional IoT Clock
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
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
We'll make the face for our clock, this is the steps:
First, you need to cut the MDF board into:
- 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
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
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
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!
Many features are ongoing. Also thanks for reading my instructable!