Top Banner
SOGANG UNIVERSITY COMPUTER SCIENCE & ENGINEERING TEAM FULL STACK - KWAKJAEHOON VER 0.1 IoT Project – Smart Plant Kit (Using Arduino, Sensors, Spray, LED bulb …)
14

Sogang University IoT Project - Smart Plant Kit

Jan 26, 2017

Download

Technology

JaeHoon Kwak
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sogang University IoT Project - Smart Plant Kit

SOGANG UNIVERSITY COMPUTER SCIENCE & ENGINEER-ING TEAM FULL STACK - KWAKJAEHOON

VER 0.1

IoT Project – Smart Plant Kit (Using Arduino, Sensors, Spray, LED bulb …)

Page 2: Sogang University IoT Project - Smart Plant Kit

WHAT IS THIS? WHO WANTS THIS? Smart Plant Kit : Grow your plant, it will cover

clients’ job. Who wants this? - People who love their plant, however, don’t

want to be stuck in plant related works.

This kit will give you a convenience.

<Out Kit →>

Page 3: Sogang University IoT Project - Smart Plant Kit

THIS IS IOT PROJECT - COMPRESSION Using ‘ATmega8-Arduino’

With this Arduino, First, we will get sensing data(temperature,

illumination, soil moisture). Second, do some order to our machine(fan,

LED lamp, water spray).

Page 4: Sogang University IoT Project - Smart Plant Kit

HOW? – FIRST, SENSE a. Temperature sensing. ( sensor name :

DS18B20 ) In below picture, there are two difference with our

project. First, they use ‘Arduino Uno’ but we use ‘Arduino Fio’. Second, they use ‘Digital in 0’ and we use ‘digital pin 8’.

Page 5: Sogang University IoT Project - Smart Plant Kit

HOW? – FIRST, SENSE After finish circuit connection, start ‘Sketch’.(Download: https://

www.arduino.cc/download_handler.php) Temperature sensing code for Arduino is hear. (http://

www.hobbytronics.co.uk/ds18b20-arduino) (Be careful! In this link’s code, they use ‘digital pin 2’. And also, you should add libraries. - OneWire.h, Dal-

lasTemperature.h) ← At ‘Manage Libraries’ ,

you can add libraries.

Page 6: Sogang University IoT Project - Smart Plant Kit

HOW? – FIRST, SENSE b. Illumination sensing. ( sensor name : CDS ) Circuit is hear. (This is ‘Analog In’) Relate to resistance, lux is different. (Check it hear, https://learn.adafruit.com/

photocells/using-a-photocell) Illumination sensing code for Arduino is hear.

https://learn.adafruit.com/adafruit-arduino-lesson-9-sensing-light/arduino-code

Page 7: Sogang University IoT Project - Smart Plant Kit

HOW? – FIRST, SENSE c. Soil moisture sensing. Code and circuit is very easy.

Page 8: Sogang University IoT Project - Smart Plant Kit

HOW? – SECOND, ORDER TO MA-CHINE To control machine appropriately, we need relay.

Relay : Control machine running, with control input voltage in or not.

Page 9: Sogang University IoT Project - Smart Plant Kit

HOW? – SECOND, ORDER TO MA-CHINE a. Temperature and Fan mechanism. After you complete circuit. In arduino code, #define RELAY3 7 // Fan Pin number and after setup()

pinMode(RELAY3, OUTPUT); and after you want to use, if(lightVal >= 1000){ digitalWrite(RELAY2, LOW); } else{ digitalWrite(RELAY2, HIGH); }

Page 10: Sogang University IoT Project - Smart Plant Kit

HOW? – SECOND, ORDER TO MA-CHINE

It works when more than 30 degree of celsius. (I set-up with 30.)When you touch the temperature sensor, fan is working and when you de-touch, fan is not working anymore. Click to

watch

Page 11: Sogang University IoT Project - Smart Plant Kit

HOW? – SECOND, ORDER TO MA-CHINE b. Illumination and LED Lamp mecha-

nism. We open the LED lamp’s head, and connect it

with relay. Code is similar with a.Click to watch

Page 12: Sogang University IoT Project - Smart Plant Kit

HOW? – SECOND, ORDER TO MA-CHINE c. Water spray and soil moisture mecha-

nism. We but smart spray which is triggered by switch

and motor. Similar to LED lamp, we open this sprays head and connect appropriately with re-lay motor to control our wants.

Page 13: Sogang University IoT Project - Smart Plant Kit

HOW? – SECOND, ORDER TO MA-CHINE

When we put out soil moisture sensor to water, it means there is no water in soil, so trigger spray.(This is demo, so we code trigger spray when moisture is 0.)

Click to watch

Page 14: Sogang University IoT Project - Smart Plant Kit

NODEMCU AND DB Man in working