[Tinyos-help] I want to read voltage value from Tmote
I am working on Tmote, and I am using the Tinyos 1.11 installed by the wizard downed from tinyos.net . I justrelpaced the Demosensor component by component InternalVoltageC in Oscilloscope.nc, and changed some connection names in Oscilloscope.nc and OscilloscopeM.nc .(Those two components in OscilloscopeRF) I used TOSbase to receive the signal from the other node. The value I got is between 3909~3919, but I think it's not right. Anybody have done the similar work before? What is the right reading voltage value of Tmote? If I am not correct, could you tell me how to get the right value? Thank you for your time! Yang ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] I want to read voltage value from Tmote
On Monday 28 August 2006 09:53 am, Yang Peng wrote: I just relpaced the Demosensor component by component InternalVoltageC in Oscilloscope.nc http://oscilloscope.nc/, and changed some connection names in Oscilloscope.nc http://oscilloscope.nc/ and OscilloscopeM.nc .(Those two components in OscilloscopeRF) I used TOSbase to receive the signal from the other node. The value I got is between 3909~3919, but I think it's not right. The value looks right to me. Msp430InternalVoltageC's read returns a 16-bit int that holds the 12-bit ADC value as a result of sampling 1/2 of the Tmote's VCC. So: 3909/4096 * 1.5 = 1.43V So VCC = 2*1.43 or 2.86V Steve ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help