"Drill down" to the DemoSensorC module, which you may find in:
    tos\sensorboards\micasb\DemoSensorC.nc
and you will find that it is connected directly to the Photo
component. This can be changed to some other ADC channel.
For extra credit you can throw the whole DemoSensor thing
out and just connect to an ADC directly. It's basically an
exercise in confusing the neophyte into thinking that nesc
is way harder than necessary.

To get more than one trace on O'scope, I'd guess that you
need to clone the GUI code. But more to the point you'll
need to modify the O'scope message structure to contain
readings from multiple ADC channels, say, by alternating
them in the data buffer.

MS


Ferry Cialis wrote:
Hello,
I read tinyos 1.1 online tutorial lesson 6 about displaying data on a PC. It uses Oscilloscope application and the Serial Forwarder program to display the light sensor readings on a Java GUI. I would like to ask how do I change the ADC channel such that it is reading another sensor (for example: x-axis and y-axis of 2-D accelerometer) located at another ADC channel. I looked at the Oscilloscope code but couldn't find which segment to alter.

Also, how do I make the oscilloscope to display more than one sensor readings? Your help is greatly appreciated

Thank you

Ferry


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

_______________________________________________
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