GREENHOUSE MONITORING USING WIRELESS SENSING
NETWORK (WSN)
FINAL PRESENTATION (December 2013)1
GROUP MEMBERS:Group ID: 2
Sumaira Rauf cs-127Hamra Rehan cs-82Shayan Rashid cs-85Asma Fatima cs-100
Project Internal Advisor:Ms. Maria Waqas
Project Co-Internal Advisor:Mr. Kashif Asrar
Project External Advisor:Mr. Ovais Ahmed Khatri
2
Greenhouse is an advanced hortical facility which changes plant growth environment creating suitable conditions for plant growth.
Monitoring & control of greenhouse environment play an important role in greenhouse production & management.
This project consists of implementation of a WSN that can monitor the air temperature, humidity & ambient light intensity in greenhouse
GREENHOUSE and WSN
3
2 Greenhouses with proper cooling systems(Manually driven).
Air conditioner for keeping the temperature maintained, and water sprinkler to fulfill water requirements of plants.
Sheltering system to avoid extra sunlight when not needed.
VISIT TO GREENHOUSES IN KARACHI UNIVERSITY
4
CORE CONCEPT
5
ARCHITECTURE
6
SUMAIRA RAUF: Wireless Circuitry, Wireshark and Nodes Programming.
HAMRA REHAN & ASMA FATIMA:Software as a service, Database and Artificial Intelligence, SMS Generation, Graphical User Interface & Email Generation.
SHAYAN RASHID:Wired Circuitry.
TASK DIVISION
7
The software which runs on a wireless network node deals with both application specific tasks and networking tasks (e.g.: assembling a message to send to another node).
The software on a node is organised as number of layers, forming a stack, with the user application at the top.
WSN Protocol Stack
8
WHY JENNET ?
9
Wireshark is a network protocol analyser application. It is widely used for network troubleshooting and
analysis, software and communications protocol development, and educational purposes.
NXP provide dissector plug-ins to the Wireshark source code in order to add support for the their protocols.
WIRESHARK
10
Installing and Configuring a Loopback Adaptor Program a JN51xx Board as a Sniffer
REQUIREMENTS OF WIRESHARK
11
FLASH PROGRAMMER
12
Flow control OF WSN
13
FEATURES Sensors measure voltage, temperature, light and
humidity. Temperature can be measured in the range 0 to
124oC. Relative humidity can be measured in the range
0-100%. Node operates independently if the network is
lost. Display of the network shape. Creating log.
BASIC FEATURES
14
Terminal Output
15
The various wireless technologies studied in research are listed as under:
Bluetooth XBee PRO series 1 and 2 RF wireless device Wi-Fi device ZigBee
WIRELESS TECHNOLOGY
16
Why XBee? Based on IEEE 802.15.4
standard for Wireless Personal Area Networks(WPANs).
Data Rate: 250kbps per channel at 2.4 GHz.
Range : 10m to 1.5km. Availability. Low power sleep modes. Low cost. Flow control. Error control. Low power.( 3.3V @ 215mA)
17
Wireless chat
Wireless text chat going between two computers using XBee 802.15.4 Wireless Modules.
The text type to one XBee will be wirelessly transmitted to the other Xbee.
18
Remote Communication
19
REMOTE AT
Using Remote AT Commands to Toggle an IO on a Remote XBee
Configuration Example
D4 LOW:7E 00 10 17 01 00 00 00 00 00 00 FF FF FF FE 02 44 34 04 6E
20
Graphical User Interface
21
PRIORITIZING GSM PHONE OVER GSM MODEM Easy to buy Battery operated Voice features Less Costly GSM mobile telephones and modems can be operated a serial
interface. A command entered at the user port generally begins with an
‘AT’ command prefix.
GSM TECHNOLOGY
AT Returns a “OK” to confirm that modem is working
AT+CPIN=”xxxx” To enter the PIN for your SIM ( if enabled )
AT+CMGF=1To format SMS as a TEXT messageRespoNse: OK
AT+CMGS=”+yyyyy” <Enter>> Your SMS text message here<Ctrl-Z>
To Send an SMS.The “+yyyyy” is your recipient's mobile number.
22
MANUAL SMS GENERATION
23
PORT SELECTION
24
Protocol for mail transfer between mail servers.
Goal : To transfer mail reliably and efficiently.
SMTP servers look at the destination address of a message and contact the target mail server directly.
SIMPLE MAIL TRANSFER PROTOCOL (SMTP)
25
MANUAL EMAIL
26
MANUAL EMAIL RECEIVED
27
DATABASE & LIVE GRAPHS
• A database with a set of real time data has been maintained and live graphs are being generated on the dashboard of GUI.
28
C# console application. Programmed in such a way that it reads the data from USB
serial port & gives the output.
Software as a SERVICE
29
AUTOMATIC SMS AND EMAIL GENERATION
A threshold value for temperature, humidity and light is pre-defined.
The live data obtained is compared to the threshold values, exceeding which leads to an automatic email and SMS notification generation.
Software as a SERVICE
30
EMAIL RECEIVED
31
INSERTION IN DATABASE
Live values of Temperature, Light and Humidity are being stored in the database along with the current date and time.
Prediction of “Weather” parameter is being done on the basis of current values received.
Software as a SERVICE
32
WEKA, is a computer program that was developed for the purpose of identifying information from raw data gathered from agricultural domains. It contains tools for a whole range of data mining tasks:
Data pre-processing Classification Regression Clustering Association Visualization
PATTERN GENERATION & AI
33
WEKA usually accepts .arff files, which are an extension of .csv files and specially supported by WEKA.
ARFF file Creation
34
Format of ARFF file
35
Studies how to automatically learn to make accurate predictions based on past observations.
Classification problems: Classify examples into set of given categories.
Often much more accurate than human-crafted rules (since data driven).
Don’t need a human expert or programmer. Automatic method to search for hypothesis explaining
data. Cheap and flexible- can be applied to any learning task.
Machine Learning Algorithms
36
Using the following Machine Learning Algorithms to test our data, we got the best and accurate result by J48.
ZeroR J48 NaiveBayes LMT
Hence, we did all the processing and other steps using the algorithm J48 that is best suited for data like ours.
Machine Learning Algorithms
37
It is a 4-step Process
Training a Data Set Training a Test Set Cross Validation Percentage Split
WEKA Explorer
38
39
WEKA provides additional options like to visualize all the values together , we can use visualize option. It gives an output like:
Visualize Patterns
40
Basic Scenario:
Controlling the circuit through parallel port.
Software using Userport dll to access the port.
Interfacing of circuit is done using DB-25 male connector.
WIRED CIRCUITRY
41
Receive input from parallel port.
Maintain constant voltage level with regulator.
Maintain a switching mechanism mechanically with the help of relays.
Glow the appliances when any parameter (i.e. temperature, light or humidity) goes out of suitable range.
Functions Performed
42
Schematic diagram using Orcad Capture.
Generate netlist.
Import netlist into Layout.
Place components.
Routing.
PCB Designing Steps
43
Schematic Diagram
Layout Design
45
Expose film.
Screening.
Etching.
Drilling.
Lamination.
PCB Printing Steps
46
WireShark
Jennic Forum
Programming Issues Eclipse
Unavailability of hardware
Challenges Faced