Gina,
 You need to call the init and start methods when you wire to
PhotoTemp module. For example when you wire to TempStdControl of
PhotoTemp as follows:
MyModule.TempControl -> PhotoTemp.TempStdControl;

you will need to call TempControl.init() and TempControl.start() to
use the temperature sensor. I used the sensor and it gives correct
values. You will need to look into the manual of MTS300/MTS310 on how
to convert the ADC values into temperature values.

 Also beware that the micaz reception fails when temperature sensor is
enabled. Read the MPR/MIB manual for Micaz (from xbow) to see how to
get the fix.

Also look at the example code in $TOSROOT/apps/MicaSBVerify/MicaSBTest1/.

Regards

Raghu

> Message: 4
> Date: Sun, 16 Apr 2006 18:42:19 -0500
> From: "Gina Upperman" <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] Turning on the temperature sensor for Micaz
>         motes
> To: <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi All -
>
>
>
> I am using the MTS300CA sensor board on the Micaz motes and have hooked it
> up using the phototemp module.  The temperature readings that come in are
> all stuck on C (12), so I think something is wrong.  Do we need to "turn-on"
> or initialize the temperature sensor in some way?  A few posts from several
> years ago mention this, but the files they reference seem to be obsolete.
> Has anyone had luck with using the temperature sensor, and was there
> anything extra that you had to do?  Any advice would be appreciated!
>
>
>
> Thank you,
>
> Gina Upperman
>
> Rice University
>

--
=================================
Research Assistant
Department of Computer Science
University of Illinois, Urbana-Champaign
IL-61801
=================================

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

Reply via email to