Green House Monitoring and Controlling Using Android Mobile Application



Similar documents
Wireless monitoring system for temperature and humidity based on ZigBee

Sensing element Polymer humidity capacitor Operating range humidity 0-100%RH; temperature -40~80Celsius Accuracy

Digital-output relative humidity & temperature sensor/module DHT22 (DHT22 also named as AM2302)

Arduino Motor Shield (L298) Manual

FLYPORT Wi-Fi G

DHT11 Humidity & Temperature Sensor D-Robotics UK (

RC2200DK Demonstration Kit User Manual

Project Plan. Project Plan. May Logging DC Wattmeter. Team Member: Advisor : Ailing Mei. Collin Christy. Andrew Kom. Client: Chongli Cai

Wireless Security Camera

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

Web Site: Forums: forums.parallax.com Sales: Technical:

Android Controlled Based Interface

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

A REST API for Arduino & the CC3000 WiFi Chip

FT-1000/GPS-N. System of remote monitoring and control of physical

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Android Application Development and Bluetooth Technology

Microcontroller to Sensor Interfacing Techniques

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

BUILDING INSTRUCTIONS

Microcontroller-based experiments for a control systems course in electrical engineering technology

Building a Basic Communication Network using XBee DigiMesh. Keywords: XBee, Networking, Zigbee, Digimesh, Mesh, Python, Smart Home

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

AC-115 Compact Networked Single Door Controller. Installation and User Manual

TOSR0X-D. USB/Wireless Timer Relay Module. User Manual. Tinysine 2013 Version 1.0

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

Calibration Management Software by CyberMetrics (480)

Wireless Sensor Network Based Low Power Embedded System Design For Automated Irrigation System Using MSP430

Surveillance System Using Wireless Sensor Networks

EVAL-UFDC-1/UFDC-1M-16

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

Arduino Lesson 13. DC Motors. Created by Simon Monk

GT Sensors Precision Gear Tooth and Encoder Sensors

VOLTAGE/CURRENT CALIBRATOR ISO-TECH ILC-421

PN532 NFC RFID Module User Guide

CMOS OV7660 Camera Module 1/5-Inch 0.3-Megapixel Module Datasheet

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

SVC400P/SVC800P. 4/8 Camera Live Tracking Vehicle DVR Installation Manual. Version 1.0

Dyeing Programmer DP - 01

Computer Organization and Components

Radio sensor powered by a mini solar cell the EnOcean STM 110 now functions with even less light

Wireless Temperature

Board also Supports MicroBridge

Name Description Model Number. Parameters Min. Typ. Max. Note. Vaux Voltage 9.8 V 12 V 13.2 V Auxiliary Supply Voltage

Lab Experiment 1: The LPC 2148 Education Board

XBee Wireless Sensor Networks for Temperature Monitoring

SYSTEM 4C. C R H Electronics Design

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Monitoring Indoor Air Quality to Improve Occupational Health

Technical Information POWER PLANT CONTROLLER

Sensor network infrastructure for intelligent building monitoring and management system

Electronic Control Devices The European Product Catalogue 2007

Arduino Lesson 16. Stepper Motors

vyacht Wifi Router vyacht yacht automation About this manual

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

SYSTEM 45. C R H Electronics Design

DK40 Datasheet & Hardware manual Version 2

PU-USBX. USB over Ethernet Extender OPERATION MANUAL

USER MANUAL V5.0 ST100

emobility WAGO Leading the Charge

Aosong(Guangzhou) Electronics Co.,Ltd

UniPi technical documentation REV 1.1

MANUAL FOR RX700 LR and NR

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

User manual LCD 240-2xx

Fast remote data access for control of TCP/IP network using android Mobile device

TSic 101/106/201/206/301/306/506 Rapid Response, Low-Cost Temperature Sensor IC with Analog or digital Output Voltage

REAL TIME MONITORING AND TRACKING SYSTEM FOR AN ITEM USING THE RFID TECHNOLOGY

ANDROID APPLICATION DEVELOPMENT FOR ENVIRONMENT MONITORING USING SMART PHONES

ONLINE HEALTH MONITORING SYSTEM USING ZIGBEE

Cypress Semiconductor: Arduino Friendly PSoC Shield

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM.

Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013

ANDROID LEVERED DATA MONITORING ROBOT

An Introduction to MPLAB Integrated Development Environment

Design and implementation of modular home security system with short messaging system

Tire pressure monitoring

Vibration Measurement of Wireless Sensor Nodes for Structural Health Monitoring

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

DCDC-USB. 6-34V 10A, Intelligent DC-DC converter with USB interface. Quick Installation Guide Version 1.0c P/N DCDC-USB

Cell Phone Based Liquid Inventory Management Using Wireless System

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

Nagpur, Maharashtra, India

GEU Port Gigabit Switch

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Example Connection between USB Host and Android

obems - open source Building energy Management System T4 Sustainability Ltd

Micro-Step Driving for Stepper Motors: A Case Study

COLOR VIDEO DOOR PHONE CDV-71BE/D

AV1200 TL-PA8030P KIT. 3-Port Gigabit Passthrough Powerline Starter Kit. Highlights

Web Streamed SDR s in Service at GB2RHQ Hack Green Bunker

A Surveillance Robot with Climbing Capabilities for Home Security

Pololu DRV8835 Dual Motor Driver Shield for Arduino

Climate Ready Shade Operating Systems for residential applications.

ABB Drives. User s Manual HTL Encoder Interface FEN-31

AC1200 Multi-Function Concurrent Dual-Band Gigabit Wi-Fi Router

Android based Alcohol detection system using Bluetooth technology

CB-OLP425 DEVELOPMENT KIT GETTING STARTED

Transcription:

Green House Monitoring and Controlling Using Android Mobile Application Aji Hanggoro aji.hanggoro@ui.ac.id Mahesa Adhitya Putra mahesa.adhitya91@ui.ac.id Rizki Reynaldo rizki.reynaldo@ui.ac.id Riri Fitri Sari riri@ui.ac.id Abstract- The existing system has the ability to yet lack the ability to control indoor humidity. Green House Monitoring and Controlling is a complete system designed to monitor and control the humidity inside a green house. This software uses an Android mobile phone, connected using Wifi to a central server which connects via serial communication to a microcontroller and humidity sensor. The result shows that the condition specified in sensor s datasheet and system in reality is appropriate. The achieved test result concludes that the system is working properly. Keyword: green house, arduino uno, wireless network, embedded system, SHT 11 sensor I. INTRODUCTION Green house farmers cannot precisely detect level of level of humidity inside the green house. They only know the condition inside the green house manually and by feel it by themselves. Ultimately, experiences play a bigger part on their daily operations. If the condition is too dry, they will give water to the plants or soil, but if it is too humid, they will open the rooftop of the green house, especially in the daylight. In designing this device, there is limitation to problems, to see how far this system can do its tasks. This limitation according to the situation where this system will be used later. The limitation is the system can detect the humidity of air in the building. When the humidity sensor reach a certain threshold, the humidity sensor will send a signal to microcontroller which will then process the signal, to be sent int o connected computer. Computer functions as a server which connects to the android platform. There are 3 kinds of activity that are designed in the system. First, monitor the humidity level in the green house. Secondly, if the green house is too dry, the water sprayer can be activated, to increase the humidity level. It also can deactivated water sprayer. Third, if the green house is too humid, the rooftop can be opened to lower the humidity level. The third function can be use to open or close the rooftop based on the needs. II. DESIGN OF GREEN HOUSE MONITORING AND CONTROLLING SYSTEM This embedded system for monitoring and controlling the green house is based on measuring the humidity and temperature by sensor that located at different places. The monitoring and controlling is conducted through Android Smartphone. A. Hardware Description Design of hardware for green house monitoring and controlling are used to control the environment condition of green house to get a good condition. The parameters are humidity and temperature in the greenhouse. The monitoring and controlling of greenhouse component consists of sensor for the humidity, Arduino UNO microcontroller, serial communication, wireless connection, LED module change for water sprayer, stepper motor, model of greenhouse, personal computer as server, and power supply unit. The output for the sensor become an input to microcontroller and sent to computer through serial communication. The task of the computer is to transfer the data through wireless communication to application software at Android Smartphone. The task of the Android Smartphone to control the 978-1-4673-5785-2/13/$31.00 2013 IEEE 79 Quality in Research 2013

microcontroller and the components, such as, LED module and stepper motor, sent to the computer. Figure 1. Schematic Diagram Showing The Green House Monitoring and Controlling System The microcontroller will read the sensor periodically and updates the value of sensor to android. Figure 1 show the schematic diagram of greenhouse monitoring and controlling system. B. Software Description The software is designed to process the humidity value, monitoring and controlling the green house. The software includes the various measurements of the sensor, analog to digital converters, send humidity value from sensor to microcontroller. Then continue to display the value in application at Android, control the microcontroller from the application in Android and update to user by sending the value of sensor for monitoring the green house. The microcontroller Arduino UNO is to convert analog to digital, send the value of sensor through serial communication to PC, control the stepper motor, water sprayer, and updating the user. The program is written in Arduino 1.0.1 IDE.The server used to process the value from the sensor, serial, and wireless communication by PHP serial programming and PHPmyadmin to transfer and receive the input for controlling and output for monitoring. III. HARDWARE SYSTEM The hardware system is divided into 3 part. There are microcontroller arduino, a sensor, and IEEE wireless 802.11g. The microcontroller arduino used for monitoring and controlling the green house. It is used to read the measurement value of sensor, write an input to control the stepper motor and LED module, analog-digital converter and serial communication for the flow of value from sensor. First, microcontroller get the analog voltage signal from the sensor and convert it to digital signal. After microcontroller receive the digital signal, microcontroller send the value from sensor to the Android via computer through serial communication and wireless connection. 80

inch). The type of sensor is SHT 11 and contacts are assigned as follows: 1.GND, 2:DATA, 3:SCK, 4:VDD.[5] The features of SHT 11 sensor are: Temperature range: -40 o Fahrenheit (-40 o to +254,9 o F (123,8 o C) Temperature accuracy: +/- 0,5 o C - 25 o C Humidity Range: 0 to 100 %RH Low power consumption (typically 30W) [3] Figure 2. Architecture of AT MEGA 328 for Microcontroller Arduino[1] The reading program, the converter and also program to controlling is done in C Language for Arduino. The value from read the sensor, analog to digital converter, and for controlling is done in Microcontroller Arduino that use AT MEGA 328. Figure 2 shows the architecture of AT MEGA 328. For sensor we use SHT 11 to measure humidity and temperature. This sensor is interfaced to the stamp over two I/O pins. Through a two-wire serial interface, both temperature and humidity can be read with excellent response time and accuracy. Figure 3 shows the module of SHT 11 sensor: [4] Figure 3. SHT 11 Sensor Module [2] Each SHT 11 is invidually calibrated in a precision humidity chamber from the manufacturer. The calibration coefficients are programmed into an OTP memory on the chip. These coefficients are used to internally calibrate the signals from the sensors. The 2 wire serial interface and internal voltage regulation allows for easy and fast system integration. SHT 11, for which datasheet appliesfeatures a version 4 Silicon sensor chip. Besides the humidity and temperature sensors the chip contains an amplifier, A/D converter, OTP memory and a digital interface. Dimensions in mm (1mm = 0,39 Figure 4. Schematic of SHT 11 Wire to Microcontroller [2] Because the sensor built in resistors, the pins that should be connected, SHT-11 PIN 3 (SCK) -> Arduino PIN 11 (SCK) SHT-11 PIN 4 (VSS) -> Arduino s Ground SHT-11 PIN 1 (DATA) -> Arduino PIN 9 (data) SHT-11 PIN 8 (VDD) -> Arduino +5V Arduino is process signal from this sensor, where the result will take in the right value. In this sensor, there is a LED to show whether the sensor is on or off. For wireless transfer, we use IEEE 802.11g-2003 or 802.11g or Wireless G is an amendment to the IEEE 802.11 specification that extended throughput to up to 54 Mbit/s using the same 2.4 GHz band as 802.11b. This specification under the marketing name of Wi-Fi has been implemented all over the world. 802.11g is the third modulation standard for wireless LANs. It works in the 2.4 GHz band (like 802.11b) but operates at a maximum raw data rate of 54 Mbit/s, or about 19 Mbit/s net throughput (identical to 802.11a core, except for some additional legacy overhead for backward compatibility). 802.11g hardware is fully backwards compatible with the 802.11b hardware. Details of making b and g work well together occupied much of the lingering technical process. In an 802.11g network, however, the presence of a legacy 802.11b participant will significantly reduce the speed of the overall 802.11g network. Wireless G is used in our system as a communication path from Android to server and vice versa. [6] 81

IV. ANDROID APPLICATION SYSTEM In developing the software, Eclipse Indigo. The method that used is created to make monitoring activity. It is called kosong.java with layout_kosong.xml, controlling activity that called MainActivity.java with activity_main.xml, main menu window that called MainMenu.java with layout_mainmenu.xml, timer activity that needed to update data that received from database that called MyTimerTask.java. Table 1. List of Class used in the System Class Name Methods Description kosong.java DefaultHttpClient getthreadsafeclient() Used to connecting & receiving data from android to PHP onbackpressed() Used to disconnecting the update that received from PHP if we change to another window setoncheckedchangelistener(new CompoundButton.OnCheckedChangeListener() Used to make what need to do with toggle button MainActivity.java senddataspray() Used to sending data water sprayer from android to PHP senddatarooftop() Used to sending data rooftop from android to PHP MainMenu.java setonclicklistener(new OnClickListener() Used to change the window in main menu layout MyTimerTask.java MyTimerTask extends TimerTask{} Used to handling timer that used for updating data that received from PHP In the system, Kosong.java used to receiving data from PHP that has delay every three seconds. It will be shown in TextView on android window. MainActivity.java is the main class for controlling microcontroller. It send data from toggle button into database. Then it will get the string if the data get to database. If it doesn t get string, it will not receive any string because it is not connected to database that will send an echo into android. On MainMenu.java it is used to choose which window, whether it is monitoring or controlling. For MyTimerTask.java it is used to run the timer to control for updating data that received from PHP. made through serial communication and computer as a server. The computer as a path for receive and transfer value from sensor for monitoring and input for controlling. V. IMPLEMENTATION OF GREENHOUSE MONITORING AND CONTROLLING SYSTEM A. Hardware Implementation In the hardware implementation, it has wired components sensor to microcontroler arduino by jumper cable and use protoboard as a board for the components like stepper motor and LED module in the hardware. The 5V DC power is provided for microcontroller arduino UNO, stepper motor and also the sensor. Then, the connection between for microcontroller arduino, sensor circuit, stepper motor, water sprayer replace by LED module are Figure 5. Actual Hardware Implementation B. Software Implementation For software implementation, Figure 6 shows the flow of the software in monitoring and controlling the green house. C program for arduino to measure humidity, send the value to computer then to Android Smartphone through serial communication. Next receive input from Android Smartphone then control the stepper motor and LED module. PHP code use for communication path. Last, Modules for application in android are written in C program. 82

Figure 6. Software Flowchart Design Figure 7 shown the picture of Main Menu in Android Mobile Phone. Figure 8 shown the appearance of Monitoring System in the Smart Green House. Figure 7. Main Menu Figure 8. Monitoring System

Figure 9 shown the picture of Controlling System in Android Mobile Phone. Figure 11. Comparison of Sensor Work Characteristic with Datasheet In the test, the system is tested whether it is working properly or not. Table 2 shows that system is running properly. Figure 9. Controlling System VI. ANALYSIS Based on datasheet, sensor works stable within recommended normal range (see Figure 10). Long term exposures to conditions outside normal range, especially at humidity >80%RH. After return to normal range it will slowly return towards calibration state by itself. Prolonged exposure to extreme conditions may accelerate ageing. [5] Figure 10. Operating Condition of SHT 11 Sensor [5] In testing of work characteristic sensor, it used heat from GPU core of a computer through GPU ventilation to increase the temperature in environment. This test used a closed box to put the computer and sensor. Figure 11 shows the graphic of sensor working characteristic in this system (shown in red) compared to ideal sensor characteristic (shown in blue), where the comparison between temperature and humidity is in normal range SHT 11 sensor. In the red line, the tests are from 30 o C until 70 o C. In conclusion, sensor works fine and fit with the value in datasheet. The system shows that the sensor works properly. Table 2. Technology Acceptance Modeling No Parameter Yes No 1. Android received humidity data from sensor 2. Android send data and received in PHP 3. Android send data for water sprayer to microcontroller and water sprayer s indicator is turned on 4. Android send data for motor stepper to microcontroller and motor stepper work 5. There is no error in the whole application 6. There is no error in the whole system VII. CONCLUSION The prototype of the system is successfully built and run in reality based on Technology Acceptance Modeling that shows in Table 2. The output for the given analog input values are visualized in android application system. The analog value given by the sensor changes it into a digital value. The android software is already working properly and appropriate with the purpose in the beginning, that is to get humidity value from green house and give input to control components in green house. 84

After development is finished, test for sensor s work is done and device is working properly. The testing that has done shows that condition in datasheet of sensor and in system is appropriate. The test result shows in temperature 30 o C to 70 o C, humidity is still in normal range area. If temperature gets higher and more, relative humidity will be decrease and goes near to zero. Looking into the Table 2 about Technology Acceptance Modeling, it can be conclude that the whole system, which are software and hardware is working fine. [13] Porciello, G.P.; Doerr, D. Advanced Process Control for Moisture Monitoring and Control Applications, IEEE Conference Publications. Page(s): 58-64, 1999. REFERENCES [1] Arduino., what is Arduino?, Arduino Guide Introduction. Available[Accessed : 14 Oktober 2012]: http://arduino.cc/en/guide/introduction [2] Instructables., "Visualize Humidity with the SHT 11 Sensor". Available [Accessed: 20 December 2012]: http://www.instructables.com /id/visualize-humiditywith-the-sht11sensor/step2/wire-the-sensor/ [3] Instructables.,"Visualize Humidity with the SHT 11 Sensor". Available [Accessed: 20 December 2012]: http://www.instructables.com/id/visualize- humiditywith-the-sht11sensor/#step1 [4] Parallax.,"Sensirion SHT11 Sensor Module". Available [Accessed: 22 December 2012]: http://www.parallax. com/portals/0/downloads/docs/prod/acc/sensiriondocs.pdf [5] Sensirion The Sensor Company., "Datasheet SHT 1x (SHT 10, SHT 11, SHT 15)". Available [Accessed: 23 December 2012]: http://www.sensirion.com. cn/down/downimg/datasheetsht1x%20v5.pdf [6] IEEE Standards, Get IEEE 802 : Local and Metropolitan Area Network Standards. Availabe [Accessed: 22 Desember 2012]: http://standards.ieee.org/ getieee802/download/802.11g-2003.pdf [7] Mittal, M., Tripathi, G., Green House Monitor and Control Using Wireless System Network, VSRD- IJEECE, Vol. 2 (6), 2012, 337-345, 2012. [8] Ai, Q., Chen, C., Green House Environment Monitor Technology Implementation Based on Android Mobile Platform, IEEE Conference Publications. Page(s): 5584-5587, 2011. [9] Rangan, K.., Vigneswaran, T. An Embedded Systems Approach to Monitor Green House, IEEE Conference Publications. Page(s): 61-65, 2010. [10] Lihong, Z., Lei, S., Measurement and Control System of Soil Moisture of Large Greenhouse Group Based On Double CAN Bus, IEEE Conference Publications. Page(s) :518-521, 2011. [11] Yuquan, M., Shufen, H., Qingzhu, W., New Environment Parameters Monitoring and Control System for Greenhouse Based on Master-Slave Distributed, IEEE Conference Publications. Page(s): 31-35, 2010. [12] Qingzhu, W., Shuying, M., Development of Multi-span Greenhouse Measure and Control System, IEEE Conference Publications, Page(s): 1-4, 2010. 85