Well, as I said, look at my code to see how I did a similar thing.
But I think you are on the right track, you need:
  OscilloscopeM.SensorControl -> ADCC;
instead of:
  OscilloscopeM.ADCControl -> ADCC.ADC[11];
Because SensorControl is the name used in the O'scope code.

And then I don't know what ADC number 11 is since
there are only 8 of them on the ATMEGA. I guess the MDA300
adds a few more ADCs, but I've never used it and don't know
how it works. You might find clues in:
    contrib\xbow\tos\sensorboards\mda300\Sample*.nc

Or you can just dispense with the MDA thing altogether and use one
of the ADCs (1-6, where 0 is the radio RSSI and 7 is connected to a
battery monitor) on the main mica controller. Or even just use the ADC
normally assigned to the DemoSensor code and not make any changes to
O'scope. If you have no sensorboard attached, all of those ADCs are
available.

sorry I can't be of much more help than that
MS




Steve the Taiwanese wrote:
I tried swaping wherever sensor was with ADCC in the
Oscilloscope config file as seen below:

configuration Oscilloscope { }
implementation
{
  components Main, OscilloscopeM
           , TimerC
           , LedsC
           , DemoSensorC as Sensor
                   , ADCC
           , GenericComm as Comm;

  Main.StdControl -> OscilloscopeM;
  Main.StdControl -> TimerC;
OscilloscopeM.Timer ->
TimerC.Timer[unique("Timer")];
  OscilloscopeM.Leds -> LedsC;
  OscilloscopeM.ADCControl -> ADCC.ADC[11];
  OscilloscopeM.ADC -> ADCC.ADC[11];
  OscilloscopeM.CommControl -> Comm;
  OscilloscopeM.ResetCounterMsg ->
Comm.ReceiveMsg[AM_OSCOPERESETMSG];
  OscilloscopeM.DataMsg -> Comm.SendMsg[AM_OSCOPEMSG];
}

but it gets a compile error when I try to use the
ADC11 and even if I take out the ".ADC[11]" it still
gives me errors. I looked at your code and am still a
little fuzzy as to how it works. I just need it to
read a value from the mote using the MDA300.

Thanks in advance,
Steve

--- Michael Schippling <[EMAIL PROTECTED]> wrote:

You should be able to swap out the Sensor stuff in
the
config file and use ADCC instead. See how it's done
in:
     tos\sensorboards\micasb\PhotoTemp.nc
If you follow the O'scope silly-Sensor modules all
the way
down you get to the real ADCC...

Or look in my code bolus at:
http://www.etantdonnes.com/Motes/robocode.tar.gz

MS


Steve the Taiwanese wrote:
Hi, I am trying to make a wireless EKG. I want to
try
to use Oscilloscope to graph the data from the ADC
11,
or ADC0. How can I change it from the photo sensor
to
the ADC?
Thanks,
Stephen Anderson

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com _______________________________________________
Tinyos-help mailing list
[email protected]

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to