smart garden

30
Smart Garden Coratti Stefano [email protected] Perri Massimo m [email protected] https:// github.com /mp-76/Smart-Garden https:// github.com/CorattiS86/Smart-Garden http://www.slideshare.net/StefanoCoratti/smart-garden-62115754

Upload: stefano-coratti

Post on 15-Apr-2017

177 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Smart garden

Smart Garden

Coratti Stefano [email protected] Perri Massimo [email protected]

https://github.com/mp-76/Smart-Garden https://github.com/CorattiS86/Smart-Garden http://www.slideshare.net/StefanoCoratti/smart-garden-62115754

Page 2: Smart garden

Overview1. What is Smart Garden ?2. How to realize it ?3. Building Costs and Consumption Costs 4. Configuration5. Problems 6. Simulation

Page 3: Smart garden

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

Page 4: Smart garden

Technologies

Wi-Fi moduleESP8266

Arduino Mega

ATMega328p standalone

Wireless 2.4GHzTransmitter & Receiver

nRF24L01

Page 5: Smart garden

Sensors & Attuators

DHT11Temperature & Humidity

HygrometerSoil Moisture

BMP180 GY68Barometric Pressure

Pump Water capacity: 30 liter/hour

Page 6: Smart garden

Plant ConfigurationET° x Crop coeff. x Density x Exposure x Planted Area x 2,36

Irrigation Efficency

Page 7: Smart garden

Architecture

Plant station #3 Plant station #2

Plant station #1

Master Control Unit

Page 8: Smart garden

Master schema3,3V

GND

GND

GND

GND

GND

3,3V

5V

12V

20k 10k

3,3VPC

Page 9: Smart garden

Plant Station schema3,3V

GND

GND

GND

5V

12V

Page 10: Smart garden

Master schema

Page 11: Smart garden

Plant Station schema

Page 12: Smart garden

Communication

Plant station #3 Plant station #2

Plant station #1

Master Control Unit

Radio modules

Page 13: Smart garden

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

Page 14: Smart garden

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

Page 15: Smart garden

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

Page 16: Smart garden

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

Page 17: Smart garden

Internet of Things

Wi-Fi

Monitoring by BLYNK

Monitoring by ThingSpeak

Page 18: Smart garden

ThingSpeak channels

Page 19: Smart garden

ThingSpeak and Pushing box

Page 20: Smart garden

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

Page 21: Smart garden

BLYNK Setup Pin connection

Initialization

Library Authentication

Page 22: Smart garden

Code

gathered data:

• pressure

• temperature

• humidity

• light

Page 23: Smart garden

Code

When is the right case to water ?

Page 24: Smart garden

Code

When is the right case to water ?

Page 25: Smart garden

Code

When is the right case to water ?

Page 26: Smart garden

Code

When is the right case to water ?

Page 27: Smart garden

Code

When is the right case to water ?

Page 28: Smart garden

Code formula to predict whether it rains

Compute how much water to use for watering

Page 29: Smart garden

Simulation Simulation conditions: Temperature = 46° Humidity = 10%

Under such conditions each plant has a different need for water

cactus plant

rosemary plant

tomato plant

Page 30: Smart garden

Any questions ???