Hi again,

I am running Oscilloscope on the Invent. Actually, I modified it days ago to
get temperature readings.

In the configuration of OscilloscopeAppC, I put

new SensirionSht11C() as TSensor in and take new DemoSensorC() as Sensorout.

I also changed OscilloscopeC.Read -> Sensor to OscilloscopeC.Read ->
TSensor.Temperature

The other things were kept unchanged. When I ran the SerialForwarder, I
always got 65535 for the readings.

After being through the code in OscilloscopeC.nc, I found that 65535 is set
by the Read.readDone() event in case of unsuccessful data read. Moreover,
LEDs were not working. Two motes gave me the same results.

My current guess in that I might not activate the temp sensor correctly. I
have one reply saying that Invent may not be supported by TinyOS 2.x.

I'm using TinyOS 2.x, Tmote Invent (as sensor), Tmote Sky (as base station),
Windows XP & cygwin.

Best wishes,
Ittipong

On 05/03/2008, Michael Schippling <[EMAIL PROTECTED]> wrote:
>
> As long as you're getting a varying reading things are probably working.
> It's just that 4095 == 0xFFF which is a bit suspicious.
>
> By other ADC channels I meant are there other sensors on the Invent
> that you can use? You don't say what program you are running on the
> re-Mote, but you should be able to switch the sampled sensor in
> the config file. In fact I think that's one of the tutorial exercises.
>
> MS
>
>
> Ittipong Khemapech wrote:
> > Hi Michael,
> >
> > Thanks for all replies I've got. I tried another Invent mote which was
> > plugged into USB (for charging).
> >
> > The readings swing around 4000. I think charging may be the cause of
> this.
> >
> > I'm quite new. Could you give me some explanation on "other ADC
> channel"?
> >
> > Do you mean try the other Invent mote?
> >
> > Unfortunately, the Invent platform (with sensors) is all I have.
> >
> > Best wishes,
> > Ittipong
> >
> >
> > On 05/03/2008, *Michael Schippling* <[EMAIL PROTECTED]
>
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     I'd be a little suspicious of the constant 4095 reading since that's
> >     the max value for the ADC. You might try switching the mote sensor
> >     to some other ADC channel, is there a temp or light sensor on the
> thing
> >     that you could use?
> >
> >     MS
> >
> >
> >     Ittipong Khemapech wrote:
> >      > All,
> >      >
> >      > I have been running Oscilloscope application (with no
> >     modification) on
> >      > Tmote Invent. Also installed and ran BaseStation on Tmote Sky.
> >      >
> >      > After running SerialForwarder, I have a constant reading of
> >     (about) 4095
> >      > or 4096.
> >      >
> >      > According to the DemoSensorC.nc, the actual voltage is obtained
> by
> >      > dividing the reading (ADC counts) by 4096 and multiplying by 3.
> >      >
> >      > So, I have 3 V.
> >      >
> >      > I have some questions:
> >      >
> >      > 1. Is it normal to have that 4095 (or 4096) all the time?
> >      >
> >      > 2. As Invent is not supported by TinyOS 2.x, is voltage the only
> >     reading
> >      > I can get?
> >      >
> >      > Many thanks in advance,
> >      > Ittipong
> >      >
> >      > Platforms - Tmote Sky and Invent
> >      > OS - TnyOS 2.x
> >      > Window XP & cygwin
> >      >
> >      >
> >
> >      >
> >
> ------------------------------------------------------------------------
> >
> >      >
> >      > _______________________________________________
> >      > 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
> >
> >
>
>
> --
>
> 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

Reply via email to