FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan...

46
GREENHOUSE MONITORING USING WIRELESS SENSING NETWORK (WSN) FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal Advisor: Ms. Maria Waqas Project Co-Internal Advisor: Mr. Kashif Asrar Project External Advisor: Mr. Ovais Ahmed Khatri

Transcript of FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan...

Page 1: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 2: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 3: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 4: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

4

CORE CONCEPT

Page 5: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

5

ARCHITECTURE

Page 6: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 7: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 8: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

8

WHY JENNET ?

Page 9: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 10: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

10

Installing and Configuring a Loopback Adaptor Program a JN51xx Board as a Sniffer

REQUIREMENTS OF WIRESHARK

Page 11: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

11

FLASH PROGRAMMER

Page 12: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

12

Flow control OF WSN

Page 13: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 14: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

14

Terminal Output

Page 15: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 16: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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)

Page 17: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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.

Page 18: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

18

Remote Communication

Page 19: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 20: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

20

Graphical User Interface

Page 21: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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.

Page 22: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

22

MANUAL SMS GENERATION

Page 23: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

23

PORT SELECTION

Page 24: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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)

Page 25: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

25

MANUAL EMAIL

Page 26: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

26

MANUAL EMAIL RECEIVED

Page 27: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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.

Page 28: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 29: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 30: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

30

EMAIL RECEIVED

Page 31: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 32: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 33: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

33

WEKA usually accepts .arff files, which are an extension of .csv files and specially supported by WEKA.

ARFF file Creation

Page 34: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

34

Format of ARFF file

Page 35: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 36: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 37: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

37

It is a 4-step Process

Training a Data Set Training a Test Set Cross Validation Percentage Split

WEKA Explorer

Page 38: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

38

Page 39: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

39

WEKA provides additional options like to visualize all the values together , we can use visualize option. It gives an output like:

Visualize Patterns

Page 40: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 41: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

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

Page 42: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

42

Schematic diagram using Orcad Capture.

Generate netlist.

Import netlist into Layout.

Place components.

Routing.

PCB Designing Steps

Page 43: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

43

Schematic Diagram

Page 44: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

Layout Design

Page 45: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

45

Expose film.

Screening.

Etching.

Drilling.

Lamination.

PCB Printing Steps

Page 46: FINAL PRESENTATION (December 2013) 1 GROUP MEMBERS: Group ID: 2 Sumaira Rauf cs-127 Hamra Rehan cs-82 Shayan Rashid cs-85 Asma Fatima cs-100 Project Internal.

46

WireShark

Jennic Forum

Programming Issues Eclipse

Unavailability of hardware

Challenges Faced