It would be helpful to state which version of TinyOS you are using.
 
Assuming you are using 1.1.10, try wiring ADC and ADCControl to PhotoTemp
(instead of Temp).
 
Regards,
Chee

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of G. Santhosh
Kumar
Sent: 29 January 2008 05:47
To: [email protected]
Subject: [Tinyos-help] Unable to read Temperature


Hi all
 
Recently I  did some programming through NesC in few crossbow MICA MOTE for
monitoring the Light. The core program used was SenseToLed.nc in the apps
folder as shown below

 configuration SenseToLeds {}

implementation{

  components Main, SenseToInt, IntToLeds, TimerC, Photo;

   Main.StdControl -> SenseToInt;

  Main.StdControl -> IntToLeds;

   SenseToInt.Timer -> TimerC.Timer[unique("Timer")];

  SenseToInt.TimerControl -> TimerC;

  SenseToInt.ADC -> Photo;

  SenseToInt.ADCControl -> Photo;

  SenseToInt.IntOutput -> IntToLeds;

}

 This works well and I could able to modify this program to communicate the
reading over RF to a base station and further through serial port to PC. The
Same Code I modified for temperature monitoring as shown below, But I always
getting the 10 bit information readout of ADC as Zero.(In case of Photo I
could able to get real values and keeps changing when the sensor board
exposed to alternatively to dark and light)

 configuration SenseToLeds {}

implementation

{

  components Main, SenseToInt, IntToLeds, TimerC, Temp;

  Main.StdControl -> SenseToInt;

  Main.StdControl -> IntToLeds;

  SenseToInt.Timer -> TimerC.Timer[unique("Timer")];

  SenseToInt.TimerControl -> TimerC;

  SenseToInt.ADC -> Temp;

  SenseToInt.ADCControl -> Temp;

  SenseToInt.IntOutput -> IntToLeds;

}

 I am using MIB510 Serial port programmer, MPR2400 Mote processor and MTS310
Sensor Data Acquisition board. The MTS310 I have carries both Photo Sensor
and Temperature Sensor.

 If some one can help to sort the temperature monitoring problem.

Thanks in advance,




-- 
G. Santhosh Kumar
Lecturer
Dept. of Computer Science
Cochin University of Science & Technology
Cochin - 682 022
+914842577126 (ext 306) | Tel (Off)
+914842212221 | Tel (home) 


*******************************************************************************
Please consider the environment before printing this email.
*******************************************************************************
This email and any files transmitted with it are intended solely for the use of
the individual or entity to whom they are addressed and may not be divulged to
any third party without the express permission of the originator.  Any views
expressed in this message are those of the individual sender, except where the
sender specifically states them to be the views of Thales Research & Technology
(UK) Limited.
*******************************************************************************

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

Reply via email to