HOW-TO INTEL IOT CODE SAMPLES: WATERING SYSTEM

This automatic watering system application is part
of a series of how-to Intel IoT code sample
exercises using the Intel® IoT Developer Kit, Intel®
Edison development platform, cloud platforms,
APIs, and other technologies.
From this exercise, developers will learn how to:
Connect the Intel® Edison development
platform, a computing platform designed for
prototyping and producing IoT and wearable
computing products.
Interface with the Intel® Edison platform IO
and sensor repository using MRAA and UPM
from the Intel® IoT Developer Kit, a
complete hardware and software solution to
help developers explore the IoT and
implement innovative projects.
Run this code sample in Intel® XDK IoT
Edition, an IDE for creating applications that
interact with sensors and actuators, enabling
a quick start for developing software for the
Intel® Edison or Intel® Galileo board.
Set up a web application server to store
watering system data using Azure Redis
Cache* from Microsoft* Azure*, cloud
services for connecting IoT solutions
including data analysis, machine learning,
and a variety of productivity tools to simplify
the process of connecting your sensors to
the cloud and getting your IoT project up
and running quickly.
Invoke the services of the Twilio* API for
sending text messages.
What it is
Using an Intel® Edison board, this project lets you
create an automatic watering system that:
Turns a water pump on or off based on a
configurable schedule;
Detects if the pumping occurs when
expected, by using a water flow sensor;
Can be accessed with your mobile phone via
the built-in web interface to set the
watering times;
Keeps track of watering events, using cloud-
based data storage;
Sends text messages to alert recipients if
the system is not working as expected.
How it works
This watering system allows you to set the
watering schedule via a web page served directly
from Intel® Edison, by using your mobile phone.
It automatically checks moisture sensor data at
periodic intervals, and displays this data on the
web page.
If the water pump is supposed to be on, but the
water flow sensor does not detect that the
pumping is talking place as expected, it sends a
text message to a specified number through
Twilio* so the watering system can be repaired.
Optionally, it can also log watering system events
using the Intel IoT Examples Datastore running in
your own Microsoft* Azure* account.
Hardware requirements
Grove* Environment & Agriculture Kit containing:
1. Intel® Edison with an Arduino* breakout
board
2. Grove* Moisture Sensor
3. Water Pump
4. Water Flow Sensor
5. Grove* Dry-Reed Relay
Software requirements
1. Intel® XDK IoT Edition
2. Microsoft* Azure* account
3. Twilio* account