Know How...

Mar 23rd 2017

Know How... 296

Arduino with RTC and Screen

Refresh from our Aruduino 101 series

Although the show is no longer in production, you can enjoy episodes from the TWiT Archives.
Category: Help & How To

Writing to digital pins, reading from digital pins, and how to use i2c RTC with an i2c LED Screen.

RTC     
    
An Arduino's memory is wiped when it loses power. For most of our projects, that doesn't matter b/c we're only using the Arduino as a momentary I/O controller. However, when we have a project that needs to be persistent, we need a way to keep time even when the Arduino is powered off.        
            
    Segment Summary:        
    We're going to connect a Tiny RTC to an Arduino.        
            
    Parts:        
    1. Tiny RTC I2C DS1307 Real Time Clock  $2.00    
    2. Arduino        
    3. Jumper Wires        
            
    What is I2C?        
    * I2C (Pronounced "I Squared C") can communicate with multiple devices over short distances with just two wires: SDA (Data Line) & SCL (Clock Line)        
    * Technically, it's a "Multi-Master, Multi-Slave, Single-Ended, Serial bus"        
            
    You need to know what are the SCL and SDA pins on your arduino        
    * Uno, Nano or clone (SDA = A4 // SCL = A5)        
    * Mega (SDA = 20 // SCL = 21)        
    * Leonardo (SDA = 2 // SCL = 3)        
    * Due (SDA = 20 // SCL = 21)        
              

Geekcreit i2c 20x4 LCD Display  $6   

<p><b>Connect with us!</b></p><ul><li>Don't forget to check out our large library of projects at <a href="https://twit.tv/shows/know-how">https://twit.tv/shows/know-how</a>.</li… our <a href="https://plus.google.com/communities/102778909882340711425&quot; target="_blank">Google+ Community</a>.</li><li>Tweet at us at <a href="https://twitter.com/PadreSJ&quot; target="_blank">@PadreSJ</a>, <a href="https://twitter.com/Cranky_Hippo&quot; target="_blank">@Cranky_Hippo</a>, and <a href="https://twitter.com/Anelf3&quot; target="_blank">@Anelf3</a>.</li></ul><p>Thanks to <a href="https://www.cachefly.com/&quot; target="_blank">CacheFly</a> for the bandwidth for this show.</p>

Links