[Tinyos-help] Unit of the Voltage sensor
Joe Polastre
joe at polastre.com
Sun Jun 3 15:21:45 PDT 2007
You must be using TinyOS 2.x (which it always helps if you include
which version of the operating system that you're using), and this
version (for some odd reason) doesn't report the Voltage in
millivolts. Both TinyOS 1.x and Boomerang report in millivolts, thus
the confusion.
-Joe
On 6/3/07, Romain Thouvenin <romain.thouvenin at gmail.com> wrote:
> On 6/3/07, Joe Polastre <joe at polastre.com> wrote:
> > Are you using InternalVoltageC or VoltageC? It sounds like you are
> > using InternalVoltageC; instead use VoltageC, it returns the value in
> > millivolts.
> >
>
> No, I am using VoltageC. According to the source code, it just renames
> Msp430InternalVoltageC, and the latter suggests in the comments to
> divide by 4096 and multiply by 3 to get the actual voltage. I guess I
> got my answer...
>
> Thanks for the reply,
>
> Romain
>
More information about the Tinyos-help
mailing list