Lab Activity: TinyOS Sensor¶
Since |
30.10 lab |
Till |
13.11 lab |
Points |
1 |
Write an app that every 10 seconds:
reads measurements of humidity and temperature sensors
computes humidity as a percentage and temperature as a number of Celsius degrees following equations:
\(t(V_t) = 0.01 * V_t - 39.6\)
\(h(V_h, t) = -4.0 + 0.0405*V_h - 0.0000028*V_h^2 + (t-25.0)*(0.01 + 0.00008*V_h)\)
where \(V_t\) is the reading of the temperature sensor, \(V_h\) is the reading of the humidity sensor, \(t\) is temperature as Celsius degrees, \(h\) is humidity as percentage
prints the results if both values are available
Start with Sensor.tgz
which includes a template of the app (you are allowed to modify it) and sensor components.