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
> > Tinyos-help@Millennium.Berkeley.EDU
> >
>
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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to