User Tools

Site Tools


rgb_shades_clock_using_chronodot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rgb_shades_clock_using_chronodot [2015/10/11 16:36]
macegr created
rgb_shades_clock_using_chronodot [2015/10/11 16:50]
macegr
Line 1: Line 1:
 +====== RGB Shades with ChronoDot ======
 +
 +The RGB Shades have several available I/O pins for adding external sensors and other electronics. In this simple example, we've attached a ChronoDot RTC module to the RGB Shades, allowing the RGB Shades to display the current time and date as a scrolling text message.
 +
 +{{::dsc_6346.jpg?560|}}
 +
 +===== Wiring =====
 +The ChronoDot is an I2C device. On Arduino-compatible boards (such as the RGB Shades) the I2C interface is accessed using the Wire library, and uses pins **A4** and **A5**.
 +
 +^  ChronoDot ^ ^ RGB Shades ^
 +|  VCC |  connects to  | 5V  |
 +|  GND |  connects to  | GND  |
 +|  SDA |  connects to  | A4  |
 +|  SCL |  connects to  | A5  |
 +
 +
 +===== Code =====
 +The Time library is a great way to implement timekeeping functions. It has a built-in method to sync with the ChronoDot. Here's example code showing how to use the Time library on the RGB Shades:
 +{{url>https://codebender.cc/embed/sketch:161385?board=Arduino%20Mini%20w/%20ATmega328 100%,510 noborder}}
 +
 +===== Demonstration Video =====
 +
 {{youtube>qCQTyME2Cpk?560x315}} {{youtube>qCQTyME2Cpk?560x315}}
/home/macetec/public_html/docs/data/pages/rgb_shades_clock_using_chronodot.txt ยท Last modified: 2015/10/11 16:50 by macegr