Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
23いいね 2285回再生

Using Arduino, RTC, and 3 Color LED ranges to build an Analog Clock

This is a simple Arduino circuit to make use of DS1307 RTC to create an analog clock with 3 color LED ranges. The trick is how to map Time (12 hour, 60 min, 60 sec) into 3 ranges (40, 48, and 60 LEDs). It is just a simple calculation. Since we cannot exactly map 12 hr to 40 LED, and 60 min to 48 LED, the "round down" calculation makes the clock looks weird. We added the tailing LED to shows the movement and progressing. We also added 2 tailing LED for the second. Since this project only turns on 7 LED, so we can use a cheap USB adapter to power it. We also use IKEA 10" picture frame the project as simple as possible. The LED color and the pattern are fixed in the program. You can download the source code and create your own color and pattern.

The circuit diagram: www.cmee4k.com/index.php/File:DS1307_WS2812_RangeC…
The source code:
www.cmee4k.com/files/ArduinoCode/RTC_ds1307_ws2812…

コメント