I don't use T2 so I can't say for sure, but in T1 there is telosb a DemoSensorC.nc file in tos\platform\msp430 which uses "InternalTempC" as the Sensor. You can replace InternalTempC with anything that supplies the ADC interface, like "HumidityC" from the telos directory. Or you could replace DemoSensor in your app with something that supplies that same interface.
MS Ahmed Ebaid wrote: > I'm using telosb platform, and I can modify the file, but I don't which > component I should be using in order to make my platform use the > temperature sensor, I'm running TinyOS-2.x on using XubunTOS. > > On Mon, Nov 24, 2008 at 2:32 PM, Michael Schippling <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > You can either go into your platform directory of choice > and change the config file for DemoSensor, or else just > throw the whole thing out and connect directly to the ADC > channel you want to sample. Note that the demo Temp and > Photo sensors also need to be enabled by turning on a PWx > pin, so the their component modules do a bit more than > just ADC sampling. > > I haven't examined the MPS chip that closely but I think > it includes an internal connection to an ADC channel to > monitor it's supply voltage. The MPS manual is written > in an entirely different dialect of gibberish from the > ATMEGA and PIC ones that I'm used to, so I'm not sure. > > MS > > > Ahmed Ebaid wrote: > > Hey > I have a question regarding the Sense application, since the > DemoSensor component is a platform dependent, how can I change > the configuration file in order to sense temperature. also , > what is the MCU-internal voltage sensor do. > Thanks in Advance. > > -- > Ahmed > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > <mailto:[email protected]> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > -- > Platform: WinXP/Cygwin > TinyOS version: 1.x, Boomerang > Programmer: MIB510 > Device(s): Mica2, MicaZ, Tmote > Sensor board: homebrew > > > > > -- > Ahmed Ebaid > PhD Student > > -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
