firstly, make sure that your MTS300 sensor board is connected probably to the Mica2 wireless module. I experienced a constant result last time when my MTS300 is not connected probably. :-) secondly, change back to DemoSensorC to see whether you got different value over time, as I remembered, the DemoSensorC component is for measuring voltage draw, so you will see the changes. you are right, to use Temperature Sensor just change DemoSensorC to TempC, it will work. for conversion of ADC values to appropriate DegreeC value please search the mailing list. there is a java example shows how to do it.

Murtuza wrote:
Hi friends,

The sensor and ADC related part is really confusing to me. According to the tutorial we can change the DemoSensorC file and make it work as we intend. Right? I changed it to measure the temperature by doing this

components new TempC() as Sensor;

I want to measure the temperature using a mica2 with
mts300 sensorboard. I wrote an application which calls the Read.read interface provided. Should this not return the temperature reading. But whatever I do i.e whether i use TempC or PhotoC I always get the same values. I get a value of 01 97 irrespective of what I use. Why is this so?

Why is it that the sensorboard is not working. Is it sth related to my Tinyos-2.x installation?

Plz help me out.

Thanking You
MMA

------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--
regards;

Peizhao

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to