[Firebug-cvs] firebug/web fireboard.html,NONE,1.1 weatherboard.html,1.7,NONE
Brought to you by:
doolin
From: <do...@us...> - 2003-11-21 16:13:20
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1:/tmp/cvs-serv25578 Added Files: fireboard.html Removed Files: weatherboard.html Log Message: Removed weatherboard web page, replaced with fireboard web page. --- NEW FILE: fireboard.html --- <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Fire Board --- Sensor Data Collection application </title> <link rel="SHORTCUT ICON" href="./images/favicon.ico"> <link type="text/css" rel="stylesheet" href="firebug.css"> <meta name="author" content="David M. Doolin, UC Berkeley" /> </head> <body> <h1>The Fire Board sensor platform</h1> <p> The Fire Board is a collection of five sensors mounted on a printed circuit board, manufactured by <a href="http://www.xbow.com">Crossbow Technology, Inc.</a>, and marketed under the producted identification MTS420CA. </p> <p> <center> <img src="./images/fireboard_top.jpg" height="195" alt="Top view of Fire Board" /> <img src="./images/fireboard_bottom.jpg" height="195" alt="Bottom view of Fire Board" /> </center> </p> <p>The sensors mounted on the Fire Board are:</p> <ul> <li>Sensirion SHT11 temperature and humidity sensor.</li> <li>Intersema barometric pressure sensor.</li> <li>LeadTek 9546 GPS unit.</li> <li>ADXL accelerometer.</li> <li>Taos TLS257 light intensity sensor.</li> </ul> <h2>Sensirion SHT11 temperature and humidity sensor.</h2> <h2>Intersema barometric pressure sensor.</h2> <h2>LeadTek 9546 GPS unit.</h2> <h2>ADXL accelerometer.</h2> <h2>Taos TLS257 light intensity sensor.</h2> <h1>Collecting Sensor Data From Fire Board</h1> <P> We collect temperature data from <a href="http: //www.sensirion.com/en/sensors/humidity/default.htm">Sensirion SHT11.</a><BR> SHT11 proivde humidity sensor and temperature sensor with the multiplex scheme. The Data Structure for the communication data packet is defined in SensorMsg.h. <center> <table class="code"> <tr class="code"> <td class="code"> <b>SensorMsg.h</b> <pre> typedef struct SensorMsg { uint16_t MoteID; //TOS_LOCAL_ADDR uint16_t HumidityData; uint16_t TempData; }SensorMsg; enum { AM_SENSORMSG = 128 }; </pre> </td> </tr> </table> </center> <p> The mote attached with WeatherBoard send data packet in AM type through the RF. The GenericBase is the receiver of these packets. We use SensorPacket---a Java application program to resolve the temperature readout from the packet, and do the mathmatics coversion from the readout to the actual temperature. </p> <center> <table class="code"> <tr class="code"> <td class="code"> <b>SensorPacket.java</b> <pre> public String toString(byte [] packet) { String s = "Message <SensorMsg> \n"; double tempC,tempF; long temp1; temp1=(packet[9]>=0)?packet[9]:(0-packet[9]); tempC= (packet[10]*256+temp1)*0.0098-38.4; tempF=(packet[10]*256+temp1)*0.0176-37.1; s += " [MoteID="+Long.toString(packet[6])+Long.toString(packet[5])+ "]\n"; s += " [TempData="+Long.toString(packet[10])+ Long.toString(temp1)+"]"; s += " [="+Long.toString((long)tempC)+" Celsius Degree]"; s += " [="+Long.toString((long)tempF)+" Fahrenheit Degree]\n"; return s; } </pre> </td> </tr> </table> </center> The actual temperature can be achieved by calibration with the following formula. <center> <table class="code"> <tr class="code"> <td class="code"> <pre> Temperature= d1+d2*SO Celsius : d1=-40, d2=0.01 Fahrenheit : d1=-40, d2=0.018 SO : Sensor Output </pre> </td> </tr> </table> </center> <p> The SensorPacket result will be like : <center> <table class="code"> <tr class="code"> <td class="code"> <pre> 7e 00 0a 7d 06 03 00 99 99 f9 17 ed 55 0e 8b c9 98 89 b2 90 4e 40 08 88 98 8e cc 0d cc b5 ba 99 98 0a 01 00 Message <SensorMsg> [MoteID=03] [TempData=237] [=19 Celsius Degree] [=66 Fahrenheit Degree] 7e 00 0a 7d 06 03 00 99 99 fa 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 Message <SensorMsg> [MoteID=03] [TempData=236] [=19 Celsius Degree] [=66 Fahrenheit Degree] 7e 00 0a 7d 06 03 00 99 99 f9 17 ed 55 0e 8b c9 98 89 b2 90 4e 40 08 88 98 8e cc 0d cc b5 ba 99 98 0a 01 00 Message <SensorMsg> [MoteID=03] [TempData=237] [=19 Celsius Degree] [=66 Fahrenheit Degree] </pre> </td> </tr> </table> </center> The final result checked for accuracy with a Raytek Raynger ST infrared thermometer. <center> <img src="./images/thermal_calib2.jpg"> </center> <hr /> <p> Last updated: $Date: 2003/11/21 16:13:17 $ by $Author: doolin $. </p> </body> </html> --- weatherboard.html DELETED --- |