Professional Documents
Culture Documents
services
Application
In TinyOS, Moteiv provides the "Oscilloscope" application that samples from all of the sensors on Tmote Sky and sends the results over the radio. To use Oscilloscope, install one node with the code available at:
tinyos-1.x/contrib/moteiv/apps/Oscilloscope
Install a second node with TOSBase, as per the Moteiv QuickStart Guide (http://www.moteiv. com/products/docs/tmote-sky-quickstart.pdf). Connect the TOSBase node to your PC.
file:///G|/busqueda_040206/Getting%20Data%20from%20Tmote%20Sky's%20Sensors%20-%20Moteiv%20Community.htm (1 of 4)04/02/2006 16:55:07
Start running SerialForwarder, as per the QuickStart Guide. To show the readings, run the Oscilloscope java application while SerialForwarder is still running.
java net.tinyos.oscope.oscilloscope
check the "scrolling" checkbox click the "zoom out y" button to see values > 1024
(1)
value/4096 * Vref
where Vref = 1.5V The internal voltage sensor monitors Vcc/2, so multiply the resulting voltage value by 2 to get mote's supply voltage (Vcc).
Internal Temperature
Similar to the internal voltage, the internal temperature sensor is an uncalibrated thermistor that is sampled using the microcontroller's 12-bit ADC. Note that the sensor is not calibrated, although the following formula works well for most applications:
T =
(Vtemp - 0.986)/0.00355
(2)
I = Vsensor / 100,000
where Vsensor is the voltage calculated with the raw value and converted using equation (1). The Moteiv datasheet includes curves for converting the photodiode's current into light values (Lux). Based on the graphs available in the Hamamatsu S1087 datasheet (http://sales.hamamatsu. com/assets/pdf/parts_S/S1087_etc.pdf), the current of the sensor, I, may be converted to Lux.
(3)
where SOt is the raw output of the sensor. Humidity is a 12-bit value that is not temperature compensated.
(4)
where SOrh is the raw output of the relative humidity sensor Using this calculation and the temperature measurement, you can correct the humidity measurement with temperature compensation:
(5)
where Tc is the temperature measured in degrees Celcius from equation (3), SOrh is the raw output of the relative humidity sensor, and humidity is the uncompensated value calculated in equation (4). Retrieved from "http://www.moteiv.com/community/ Getting_Data_from_Tmote_Sky's_Sensors"