Arduino Clock With Animation and Rotary Encoder

by cristinepotu7171 in Circuits > Arduino

926 Views, 3 Favorites, 0 Comments

Arduino Clock With Animation and Rotary Encoder

snapshot111.png
Arduino Clock Project 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

8x8-Dot-Matrix-Display-Module-Pinout.jpg
58634_16881.jpg
arduino_433f0931b21c19369bcb8993eef059a4184628bc.jpg
images (1).jpg
download (5).jpg
downloadV.png
images.png
1k-ohm-resistor__05927.1532890549.jpg
  1. Arduino Nano Board
  2. Matrix Led 8x32 7219
  3. RTC DS1307 clock module
  4. push button
  5. Rotary encoder
  6. Visuino software
  7. Arduino IDE
  8. Led (blue)
  9. 4k7 resistor
  10. 470 ohm resistor

Schematic Diagram

SKU189961d-550x550.jpg
  • 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

snapshot59.png
snapshot60.png
snapshot62.png
snapshot20.png
  • 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


Verification and Assembly

snapshot31.png
snapshot32.png
snapshot35.png
  • 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

snapshot113.png
snapshot110.png
snapshot112.png
snapshot111.png


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!