To control a Neo-pixel LED, we should feed the signal to the din pin. A Neo-pixel LED has 4 pins that are VCC, GND, data IN, and data Out. The STL file is also available for download from Thingiverse and you can print your casing using it.Īssembling the Neo-Pixel LEDs on 3-D Printed PartsĪfter 3D printing of the parts, first, we need to insert the Neo-pixel LEDs on their respective sockets. Once it was done, my design looked something like this:Īfter I was satisfied with the design, I exported it as an STL file, sliced it based on printer settings, and finally printed it. I have designed all the parts in Tinker CAD software. I also designed two segments for the second indication. Later in these slots, we will place Neo pixel LEDs. The design is very simple, each segment has a slot for Neo pixel LED. After hours of thinking and calculations, I designed a ten-segment digit. Here, we are going to 3-D print some parts so that we can arrange the Neo-Pixel LEDs in digits form and display time. 3-D Printing the Parts to Display TimeĪs discussed earlier, instead of using a 7-segment display we are going to use Neo-Pixel LEDs for displaying time. The output voltage from these cells will be around 7.4 so an AMS1117 5V voltage regulator is used to supply regulated 5V to Arduino pro mini and other components. This complete setup is powered by two 18650 cells connected in series. The push buttons are connected to digital pin 2 and 4 of Arduino. DS3231 works on the I2C communication protocol so the SCL and SDA pins of the RTC module are connected to I2C pins (A4 and A5) of Arduino. The complete schematic for building Arduino LED Clock is shown in the image given below:Īs you can see, this circuit diagram has two parts, first one is the main circuit that consists of an Arduino Pro Mini, DS3231 RTC module, push buttons, and AMS1117 voltage regulator and the second is the LED digit circuit where all the Neo-Pixel LEDs are arranged to display the time. Ten Segment Rainbow Clock Circuit Diagram DS3231 RTC module also comes with a temperature sensor so, we can also get the temperature readings. with the help of such libraries, we can read the current time, and with the help of Arduino, we can display that time in any type of display. But there are already several libraries for the DS3231 RTC which can be found on the internet. However, when it comes to communication between Arduino and RTC module the code isn’t that small and easy. The module uses the I2C communication protocol which makes the connection to the Arduino board very easy. The DS3231 is a low-cost, accurate Real Time Clock that can maintains hours, minutes, and seconds, as well as, day, month, and year information. This clock gets the current time and date using the DS3231 RTC module and then this time is displayed on Neo-Pixel LEDs using Arduino Pro Mini. The working of this clock is very simple and similar to other digital clocks. Components to build your own Rainbow Clock About the clock I made, it's a very simple clock that shows time and room temperature and the main feature of this clock is that the color of the digits changes every minute. So, here I am going to use Neo-Pixel LEDs with Arduino pro mini and RTC module. While searching for the clock model, I got thousands of designs but most of them were using seven-segment displays and I wanted to build a unique and colorful clock without using Seven segment display. So, I decided to make one Arduino digital clock for my room. I know making a clock sounds a little irrelevant, especially nowadays because we all have smartphones and no one is going to use or look into the clock for time, but it is good when you are doing some work or during the workout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |