Arduino Clock With Animation and Rotary Encoder
by cristinepotu7171 in Circuits > Arduino
1074 Views, 3 Favorites, 0 Comments
Arduino Clock With Animation and Rotary Encoder
- This project presents the creation of a clock with animation and programming with the help of a rotary encoder
- A very useful project for those who want to build useful projects for the home
Supplies
- Arduino Nano Board
- Matrix Led 8x32 7219
- RTC DS1307 clock module
- push button
- Rotary encoder
- Visuino software
- Arduino IDE
- Led (blue)
- 4k7 resistor
- 470 ohm resistor
Schematic Diagram
- The electrical diagram is not very complicated, it requires attention to the connections to the led matrix display 7219. Also, the led and the related resistance may be missing, but they indicate the entry or exit of the device from the programming mode.
The Code
- The code is built with the Visuino program. You can find this program in the attached web address. You can use it for free with codes that do not require more than 20 components, or you can generate a free license key for 15 days. The code is quite thick for this project, being at the limit of the memory of the Arduino board.
- Visuino download: www.visuino.com
Downloads
Verification and Assembly
- Assembly consists in making the connections between the several components. The clock can be built in a box or even on a test board as in the case presented.
- The color of the LED that signals entering or exiting the programming mode is obviously optional. I chose blue.
Start the Device
At the time of the first test, when powered from the battery or USB, the display will show 0:00. With the help of the rotary encoder module and the push button, we program the desired time and date. As long as the blue LED is ON, the watch is in programming mode. Programming is done by rotating the rotary encoder module. Changing the programming dates is done by pressing the pushbutton in the rotary encoder as follows: 1 hour, 2 minutes, 3 date, 4 month. 5 exit programming mode.
You can watch the animation of the watch in the attached video.
Enjoy!