Feb 2nd 2017
Know How... 283
Growduino Part III
Install a RTC on our Growduino to schedule watering using an Arduino!
We go over the basic operation of our Growduino system, what is an RTC and why we need one for this project, and learn how to program an Arduino to schedule when to turn on and off the watering system.
Problem:
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 ~$1.50
2. Arduino
3. Jumper Wires
Tools:
1. Soldering Kit
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)
Segment Agenda:
1. Explain I2C
2. Solder pins onto the TinyRTC
3. Connect TinyRTC to Breadboard
4. Show Output
5. Set Time
6. Trigger Relay
The Code for today's episode can be found HERE
<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" target="_blank">Google+ Community</a>.</li><li>Tweet at us at <a href="https://twitter.com/PadreSJ" target="_blank">@PadreSJ</a>, <a href="https://twitter.com/Cranky_Hippo" target="_blank">@Cranky_Hippo</a>, and <a href="https://twitter.com/Anelf3" target="_blank">@Anelf3</a>.</li></ul><p>Thanks to <a href="https://www.cachefly.com/" target="_blank">CacheFly</a> for the bandwidth for this show.</p>