Wall Clock Using Arduino + 60LED WS2812B Analog Digital Clock

by ELECTROGINEER in Circuits > Arduino

5191 Views, 5 Favorites, 0 Comments

Wall Clock Using Arduino + 60LED WS2812B Analog Digital Clock

Wall Clock Using Arduino + 60LED WS2812B Analog Digital Clock

This instructable will guide you through the process of connecting the following parts to create an interesting analog LED clock that will set the time from the DS3231 RTC module.

Parts Needed:

1) Arduino (UNO or NANO)

2) WS2812B addressable led strip

3) DS3231 RTC

4) Resistor 330ohm

5) 5V 1Amp power supply

Program DS3231 RTC to Set Time

rtc prog.jpg
Screenshot (29).png
Screenshot (30).png
DS3231.jpg

To connect the DS3231 RTC module do it according to the picture or below:

VCC -> Arduino 5V

GND -> Arduino GND

SCL -> SCL or A5

SDA -> SDA or A4

As long as I know, there are dedicated SCL and SDA pins on the Arduino UNO and MEGA. There are also two other pins which are the32K and SQW ones but we will not use them as we get the full functionality through the I2C interface. Then uncomment (remove forward slash) the day, time, and date line and replace it with current information. Then without removing the connections again comment(put forward slash in front of code as in figure2 ) all the 3 lines and upload it again. Then to see if time is set open the serial monitor and the time will be displayed.

Connecting the WS2812B LED Strips Power and Data Terminal Wires

How-to-Connect-WS2812B-LEDs-and-Arduino-Circuit-Schematic.jpg
images (1).png
ws2812b.png

Using 3 pins (or wires) of the supplied terminal connector(as shown in figure 1), solder these at an angle so you can bring the 5V, Data in, and GND terminals out to the connector without creating a short circuit.

I have connected the wires as below:
Red -> 5V

GREEN -> Data In (Din)

Black -> GND

Connect the WS2812B LED Strip and DS3231 RTC Module to Your Arduino Board.

final.jpg

Now we connect the wires from the LED strip to the Arduino board.

Connect your red and black wires to the power supply(as shown in the figure). On the opposite side of the module, roughly halfway, you should find a pin called D7 through 330-ohm resistor; this is the data out pin from the Arduino board, and will provide data to the Data In pin on the LED strip; connect the green wire here. Also, connect the DS3231 RTC module as shown in the figure.

Programming Your ARDUINO

upload the following code in your Arduino. But first, you have to add libraries. to download the required libraries click here