THE US POSTAL SERVICE IS EXPERIENCING SIGNIFICANT DELAYS. WE SUGGEST UPS SHIPPING IF YOU ARE IN A HURRY. CLICK HERE FOR DETAILS.

Building a Plant Watering System with an Arduino- Setting Up a Real Time Clock

June 27, 2014

We are putting together a plant watering system to be powered by an Arduino.  We have some flower boxes that get no water even when it rains, so for years I have been watering them manually.  So I figured, why not automate it?

Last year I tried using a soil temperature and humidity sensor to make a feedback loop for plant watering, but it just didn't work.  So this time, we will start by running timers that turn on our pumps at set intervals.

The Arduino has built in timing capabilities, but we wanted a solution that would be robust to power interruptions.

Enter the DS1307 Real Time Clock kit from Adafruit.  For $9, you can get an easy to solder kit that will keep time for 5 years!

Adafruit has a great overview of the kit, so I won't detail how it goes together.  It took me about 10 minutes to put it together.

Hooking it  up to the Arduino is a breeze, and there is a great library of Arduino code to get you started.  We just loaded up RTCLib, hooked up 5V and GND to the Arduino 5V and GND pins, and then SDA (Data Pin) to A4 and SCL (Clock Pin) to A5.

Assuming your Real Time Clock has never been used, the latest version of the library actually loads the time from your computer right away!

At right is a picture showing everything hooked up 

 

Next step, add a motor shield and pump some water!

 

 

 

 




Leave a comment

Comments will be approved before showing up.


Also in News

Why Adafruit Makes Great Beginner Board for Teachers
Why Adafruit Makes Great Beginner Boards for Teachers

March 24, 2021

Adafruit is a company that produces maker electronics boards. Learn why Adafruit boards are great for teachers to use for beginner electronics concepts.

Continue Reading

Understanding the Differences Between Micro:Bit and Arduino
Understanding the Differences Between Micro:Bit and Arduino

February 24, 2021

The micro:bit and Arduino are two microcontroller products that are popular in the maker electronics community. Understand the differences between them here.

Continue Reading

Arduino: What It Is and What You Can Do With It
Arduino: What It Is and What You Can Do With It

February 15, 2021

Continue Reading