I don't know what sort of cross-check you have in mind...
maybe a second sensor set to compare values?

But anyway, if you have used the standard sort of ADC stuff
you should be getting 2 byte (16bit) values from Listen, where
the first byte is the LSB. So you should be able to combine
each two-byte set to get your 12bit readings.

MS


VMD Jagannath wrote:
Hi all,

I have made an ADC module which is measuring Analog input from an accelerometer(using tmotes).This module is sending the data over radio using module OscopeC.nc . This data is being collected by the TOSbase and I am storing the measured results in a text file using the Listen.java( modified Listen program). I have the following doubts now :

1.How do I cross check whether the values I have measured are correct or not. 2.My program is using ADCM in \TOSROOT\tos\platform\msp430. Since Iam using Listen.java to store the results, each reading is coming as an 8 bit hex data, whereas the actual ADC output is a 12 bit number. This means that Listen.java is truncating the value. Now what should I do to store the 12 bit output of the ADC in my text file.


Thank U



<http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/[EMAIL PROTECTED]>


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

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

Reply via email to