Smart Garden
 Coratti Stefano coratti.s86@gmail.com
 Perri Massimo massimo.perri@yahoo.it
 https://github.com/mp-76/Smart-Garden
 https://github.com/CorattiS86/Smart-Garden
 http://www.slideshare.net/StefanoCoratti/smart-garden-62115754
Overview
1. What is Smart Garden ?
2. How to realize it ?
3. Building Costs and Consumption Costs
4. Configuration
5. Problems
6. Simulation
Functionalities
 Use of weather data as humidity,
temperature and pressure
 All wireless connections for communications
 Data are sent on the WEB
 Intelligent
watering
Technologies
 Wi-Fi module
ESP8266
 Arduino Mega
 ATMega328p
standalone
 Wireless 2.4GHz
Transmitter & Receiver
nRF24L01
Sensors & Attuators
 DHT11
Temperature & Humidity
 Hygrometer
Soil Moisture
 BMP180 GY68
Barometric Pressure
 Pump Water
capacity: 30 liter/hour
Plant Configuration
ET° x Crop coeff. x Density x Exposure x Planted Area x 2,36
Irrigation Efficency
Architecture
 Plant station #3 Plant station #2
 Plant station #1
 Master Control Unit
Master schema
3,3V
GND
GND
GND
GND
GND
3,3V
5V
12V
20k 10k
3,3V
PC
Plant Station schema
3,3V
GND
GND
GND
5V
12V
Master schema
Plant Station schema
Communication
 Plant station #3 Plant station #2
 Plant station #1
 Master Control Unit
 Radio modules
Protocols
Master
Control
Unit
Plant
Station
#1
Plant
Station
#2
Plant
Station
#3
Idle
1 s1 s 1 s 15 s1 s
 MCU sends packet in broadcast to each PSs
 PS#1 receives packet, wait 1 seconds then response to MCU
sending packet with own data
 PS#2 receives packet, wait 2 seconds then response to MCU
sending packet with own data
 PS#3 receives packet, wait 3 seconds then response to MCU
sending packet with own data
 Idle time where each station compute own calculus
loop
Protocols
Preamble Network
Address
Packet
Control
To From ID Flags Payload CRC
1
byte
3 to 5
byte
9
bit
1
byte
1
byte
1
byte
1
byte
0 to 28
byte
2
Byte
 RadioHead library
 Reliable Datagram
 Approximately 40 bytes packet
Protocols
Preamble Network
Address
Packet
Control
To From ID Flags Payload CRC
1
byte
3 to 5
byte
9
bit
1
byte
1
byte
1
byte
1
byte
0 to 28
byte
2
Byte
 RadioHead library
 Reliable Datagram
 Approximately 40 bytes packet
 Broadcast packet payload
Protocols
Preamble Network
Address
Packet
Control
To From ID Flags Payload CRC
1
byte
3 to 5
byte
9
bit
1
byte
1
byte
1
byte
1
byte
0 to 28
byte
2
Byte
 RadioHead library
 Reliable Datagram
 Approximately 40 bytes packet
Timestamp Data
Soil humidity
4
Byte
2
Byte
 Response packet payload
Internet of Things
 Wi-Fi
 Monitoring
by BLYNK
 Monitoring
by ThingSpeak
ThingSpeak  channels
ThingSpeak and Pushing box
BLYNK Setup
 BLYNK app for Android and iOS devices
 User interface easily to configure
 Timer for
timestamping  Gauge widgets for
weather data
 Indicator of
Soil humidity
for each plant
BLYNK Setup  Pin connection
 Initialization
 Library
 Authentication
Code
gathered data:
• pressure
• temperature
• humidity
• light
Code
 When is the right case to water ?
Code
 When is the right case to water ?
Code
 When is the right case to water ?
Code
 When is the right case to water ?
Code
 When is the right case to water ?
Code
 formula to predict whether it rains
 Compute how much water to use for watering
Simulation
 Simulation conditions: Temperature = 46° Humidity = 10%
Under such conditions each plant has a different need for water
 cactus
plant
 rosemary
plant
 tomato
plant
Any questions ???

Smart garden