climate monitoring web interface using 1_wire™ sensors

26
Climate Monitoring WEB Interface Using 1_Wire™ Sensors Imad Hoteit Hassan Wehbe

Upload: oistin

Post on 19-Jan-2016

22 views

Category:

Documents


0 download

DESCRIPTION

Climate Monitoring WEB Interface Using 1_Wire™ Sensors. Imad Hoteit Hassan Wehbe. Outline. Project Summary Standards Functional Description Inputs and Outputs Modes of Operation. Outline. Block Diagrams Flowcharts Parts List Datasheet Specifications Testing Schedule of tasks. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Imad HoteitHassan Wehbe

Page 2: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Outline

Project SummaryStandardsFunctional DescriptionInputs and OutputsModes of Operation

Page 3: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Outline

Block DiagramsFlowchartsParts ListDatasheet SpecificationsTestingSchedule of tasks

Page 4: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Project Summary

Monitoring temperature and humidity in computer laboratories will assist in maintaining facilities and hardware.Light sensors can be used to keep track of laboratory usage and even reduce the electricity bill.

Page 5: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Project Summary

The purpose of this project is to set up these sensors, create a user-friendly web based interface (applet) and a database that will hold previous data and provide query abilities to the applet.

Page 6: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Standards

MySQL protocol over TCP/IP(DSTP)Operating System: Windows or Linux PlatformDallas Semiconductor “1-Wire” devicesPoint Six, Inc HA5 adapter to ASCII protocolIEEE’s “9 pin” Serial Connection, RS-232

Page 7: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Standards

Page 8: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

Hardware Interface– The sensors will be distributed along two wires

that go through different rooms of Jobst hall; these are connected to the HA5 adapter.

Page 9: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

Page 10: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

Applet– The applet will run on a web server and will

query the sensors for readings.– Data will be recorded in a database for later

use.– Many applications could be added to the applet

making use of the records in the database. These have not been decided yet.

Page 11: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

GUI/Applet

Mouse/keyboard

Screen

User

TCP/IPDSTP

TCP/IPHTTP

Page 12: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Inputs and Outputs

Inputs:– Light, temperature and humidity i.e. sensor

readings– Input from the user

• Request history of a sensor

• Update the readings

Page 13: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Inputs and Outputs

Outputs:– Output displayed to the user from the interface

• Current status of all sensors

• History for selected sensor

– Data sent and saved in the database

Page 14: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Modes of Operation

Applet– Display historical data– Get immediate sensor update

Sensor Query Daemon– Discover sensors on network– Request sensor readings– Update database

Page 15: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Start

Get configuration filefrom web server

InitializeApplet

Connect todatabase

Displaycurrent

network status

Select asensor

Querydatabase for

old data

Get imediateupdate of

sensor value

Displayresults

Applet Flowchart

Page 16: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Sensor Query Daemon Flowchart

Create aconnection to

database

Create aconnection toHA5 adapter

through serialport

Discover allsensors

Send 'aS,FF'command

Updatedatabase with

new values

Query sensorsperiodically

Start

Page 17: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Parts List

Point Six, Inc manufactures all these devices– D2Photo Light Sensor– DS1820 Digital Thermometer– HMP-2001S 0-100% Digital Relative Temperature

and Humidity Sensor– HA5 RS232 to Isolated 1-Wire Host

Adapter– T8A 8 Channel 12 bit Analog 1-Wire

CARD– T8D 8 Channel Digital I/O 1-Wire CARD

Page 18: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Datasheet Specifications

HA5 Adapter– Drive capability: 200 sensors– Maximum cable length: 2000 ft

Power Supply– Power received: 110V/60Hz– Power provided: 5V/2A

Page 19: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Datasheet Specifications

DS1820 (Digital Thermometer):– Temperature is read as a 9-bit digital value– Range: -55°C to +125 °C with ±0.5

°C -67 °F to +257 °F with ±0.9 °F

– Converts temperature to digital word in 200ms

Page 20: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Datasheet Specifications

D2Photo (Light Monitor):– Returns ON or OFF– Photosensitivity Spectral Range:

• Min: 730 nm

• Max: 1100 nm

Page 21: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Datasheets Specifications

HMP-2001S (Humidity & Temperature sensor):– Collects:

• %RH (12 bit) (0-100% range)

• Temperature data (13 bit - ±0.038 °F)

All sensors have a unique 64-bit electronic serial number

Page 22: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Testing

The HA5 was accessed using the HyperTerminal program.– Baud rate: 115200 bits/s– Data bits: 8– Parity: None– Stop bit: 1– Flow control: None

Page 23: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Timing

Hassan Super ImadResearch Testing Research Testing

Week1 7 0 7 0Week2 5 1 3 3Week3 2 4 2 3Week4 4 2 3 2Week5 2 4 5 2Week6 2 3 4 3Total 22 14 24 13

Page 24: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Schedule of Future Tasks

Winter Break– Investigate and (hopefully) test Database usage– Research JDBC

January, February– Complete main objective of project

Page 25: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Schedule of Future Tasks

March, April, May– Tentative Implementation of additional features

• Plots based on historical data

• Generation and usage of a general configuration file

– Capstone Presentation– Winning the award

Page 26: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Climate Monitoring WEB Interface

Questions