I made an application but was still not able to figure out which ADC am I reading from.... The files VoltageP and VoltageP do not specify the same...
Please help me out in this regard Shikhar On Wed, May 14, 2008 at 8:42 AM, Shikhar Sachan <[EMAIL PROTECTED]> wrote: > Thank you for the help... > I will try the same and get back in case it does not work. However, I > would like to know if I run the default application to read the > values from PhotoTemp sensor which automatically reads values from > ADC1, will it be able to sample ADC1 if I do not attach the > programming board(specific to the PhotoTemp sensor) and attach my > custom sensor instead. > > Thanks > > Shikhar > > > > > On Tue, May 13, 2008 at 11:43 PM, Philip Levis <[EMAIL PROTECTED]> wrote: > > > > > > On May 13, 2008, at 11:04 AM, Shikhar Sachan wrote: > > > > > > > Greetings > > > I am facing slight difficulty in reading values directly from the ADC > > > pins in my MicaZ motes. > > > I need to retrieve values from ADC1,2 and 3. In tinyOS 1x,there was an > > > ADC interface defined which could be used. > > > > > > However, this is not the case in tinyos 2x because of so much > abstraction. > > > I would be thankful if someone could pass me on the code. > > > > > > > > > Please take a look at > > > > platform/mica/VoltageC.nc > > platform/mica/VoltageP.nc > > > > They show how to write a simple ADC sample. VoltageP is just 3 lines of > > code that tell the ADC how to be configured for the sample. > > > > Phil > > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
