Skip to content

This is a simple Desk Clock made from five 8x8 LED matrices and an Arduino Nano / Pro Mini

License

Notifications You must be signed in to change notification settings

wilhelmzeuschner/arduino_led_matrix_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino LED Matrix Clock

This is a simple Desk Clock made from five 8x8 LED matrices and an Arduino Nano / Pro Mini

This clock uses a DS3231 RTC IC, which is not only quite accurate, but does also provide a temperature reading (which isn't as accurate but good enough). In order to switch between the normal Time-Display to the Date / Temperature Reading, a touch sensor (TTP223) or button can be used. This sensor triggers an interrupt inside the code.

Unfortunately the LEDs and / or their driver chip becomes quite warm which is obliviously a problem when trying to acquire an accurate temperature reading of the environment. Therefore I decided to use a DHT11 sensor which is placed further away, on the end of the power cable. One of the former data lines in an old USB cable can be used to communicate with the sensor. Since I²C uses two wires for communication, it would be possible to place the RTC on the end of the cable too.

In addition to the code, I have created a 3D-printable model for this clock: https://www.thingiverse.com/thing:2861401

The following libraries are needed:

https://github.com/Makuna/Rtc & https://github.com/MajicDesigns/MD_MAX72XX The MD_MAX72XX library is supplied with this repo. All the edits mentioned down below are already done. Just download it and extract it to your Arduino library directory.

Old: I'd recommend changing line 258 in "MD_MAX72xx_font.cpp" to " 5, 0x00, 0x42, 0x7f, 0x40, 0x00, // 49 - '1'". This ensures even character spacing. If the library gets updated this line number may change! Current version: Matrix Library v.3.0.2

Optional: https://github.com/adafruit/DHT-sensor-library

Adjust_RTC.ino can be used to set the time of the RTC manually.

This code, combined with the enclosure is quite flexible, thanks to the Arduino IDE. You could use an ESP8266 for example and get accurate time information via NTP. Ultimately you can display whatever you want on these matrices...

Here is an image of the clock: Clock

About

This is a simple Desk Clock made from five 8x8 LED matrices and an Arduino Nano / Pro Mini

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages