Climate Monitoring WEB Interface Using 1_Wire - PowerPoint PPT Presentation

About This Presentation
Title:

Climate Monitoring WEB Interface Using 1_Wire

Description:

Climate Monitoring WEB Interface Using 1_Wire Sensors Imad Hoteit Hassan Wehbe Outline Project Summary Functional Description Modes of Operation Database updates ... – PowerPoint PPT presentation

Number of Views:73
Avg rating:3.0/5.0
Slides: 18
Provided by: ImadH7
Category:

less

Transcript and Presenter's Notes

Title: Climate Monitoring WEB Interface Using 1_Wire


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

2
Outline
  • Project Summary
  • Functional Description
  • Modes of Operation
  • Database updates
  • Flowcharts
  • Testing
  • Schedule of tasks

3
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.
  • The objective of these sensors is mainly
    maintenance.

4
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.

5
Functional Description
  • Applet
  • The applet is running on a web server .
  • The applet displays a blueprint of Jobst
    hall,with the location of the sensors in each
    room.
  • The applet shows the current readings of the
    sensors

6
Functional Description
  • Once you press on the sensor a historical value
    chart appears,showing the previously recorded
    values

7
Functional Description
8
Applet Flowchart
Start
Initialize and Display
Lights
Humidity
Temperature
Room Sensor Is Located in, Value Read, Time of
Reading
Graph Displayed
Room where sensor is shown
9
CGI Script Flowchart
10
Modes of Operation
  • Applet
  • Display historical data
  • Get immediate sensor update
  • Sensor Query Daemon
  • Discover sensors on network
  • Request sensor readings
  • Update database

11
Functional Description
12
Database updates
  • The MySQL database has five tables
  • Temperature
  • timestamp, sensorid, temp_R, temp_V
  • Light
  • timestamp, sensorid, lite
  • Humidity
  • timestamp, sensorid, temp_R, temp_V, hmd_R, hmd_V
  • Data
  • sensorid, type, timestamp, value
  • Map
  • map, sensorid, X, Y

13
Sensor Query Daemon Flowchart
14
Sensor Query Daemon
  • The server application uses two classes
  • HA5
  • Sensor_DB
  • The reasons for object oriented programming are
  • Anticipated growth
  • Ease of debugging
  • Clarity of code

15
HA5
  • Open connection
  • Close connection ? Destructor
  • Search all, by family, by condition
  • Select one sensor
  • Read
  • Light switch
  • Temperature value
  • Humidity ratio

16
Sensors_DB
  • Open connection
  • Close connection ? Destructor
  • Search
  • All tables
  • By sensorid, by type
  • Insert/Update a row
  • Delete a rowused for troubleshooting

17
Climate Monitoring WEB Interface
  • Questions
  • Climwisr
Write a Comment
User Comments (0)
About PowerShow.com