Smart garden

Post on 15-Apr-2017

173 views 0 download

Transcript of Smart garden

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

Overview1. What is Smart Garden ?2. How to realize it ?3. Building Costs and Consumption Costs 4. Configuration5. 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

1) Thanks to sensors on-site it is possible to sense data Of the surrounding environment as well as to sense data for each plant

2) This allow to manage in efficently way the use of the water, then we have intelligent watering without wasting

Technologies

Wi-Fi moduleESP8266

Arduino Mega

ATMega328p standalone

Wireless 2.4GHzTransmitter & Receiver

nRF24L01

Sensors & Attuators

DHT11Temperature & Humidity

HygrometerSoil Moisture

BMP180 GY68Barometric Pressure

Pump Water capacity: 30 liter/hour

Plant ConfigurationET° 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 schema3,3V

GND

GND

GND

GND

GND

3,3V

5V

12V

20k 10k

3,3VPC

Plant Station schema3,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

MasterControl

Unit

PlantStation

#1

PlantStation

#2

PlantStation

#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 MCUsending packet with own data

PS#2 receives packet, wait 2 seconds then response to MCUsending packet with own data

PS#3 receives packet, wait 3 seconds then response to MCUsending packet with own data

Idle time where each station compute own calculus

loop

Protocols

Preamble

Network

Address

PacketControl

To From

ID Flags Payload CRC

1 byte

3 to 5 byte

9 bit

1 byte

1 byte

1 byte

1 byte

0 to 28byte

2 Byte

RadioHead library Reliable Datagram

Approximately 40 bytes packet

Protocols

Preamble

Network

Address

PacketControl

To From

ID Flags Payload CRC

1 byte

3 to 5 byte

9 bit

1 byte

1 byte

1 byte

1 byte

0 to 28byte

2 Byte

RadioHead library Reliable Datagram

Approximately 40 bytes packet

Broadcast packet payload

Protocols

Preamble

Network

Address

PacketControl

To From

ID Flags Payload CRC

1 byte

3 to 5 byte

9 bit

1 byte

1 byte

1 byte

1 byte

0 to 28byte

2 Byte

RadioHead library Reliable Datagram

Approximately 40 bytes packet

Timestamp DataSoil 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 ???