Hi !

I am trying to sample adc channels in mica2 motes. The configuration file i am 
using is as below-

configuration HighFreqADCToRfm {
}
implementation {
  components Main, HighFreqADCToRfmM, LedsC;
  components Sample, MicroTimerM;
  components BufferedLog, ByteEEPROM;
  components GenericComm, ADCREFM;
  //components Photo;
    
  Main.StdControl -> HighFreqADCToRfmM.StdControl;
  Main.StdControl -> ByteEEPROM;
  Main.StdControl -> GenericComm;
  
  HighFreqADCToRfmM.Leds -> LedsC;
  HighFreqADCToRfmM.Sampling -> Sample;
  HighFreqADCToRfmM.SendMsg -> GenericComm.SendMsg[AM_SAMPLEDONEMSG];
  HighFreqADCToRfmM.AllocationReq -> ByteEEPROM.AllocationReq[HFS_EEPROM_ID];
  HighFreqADCToRfmM.ReadData -> ByteEEPROM.ReadData[HFS_EEPROM_ID];
  HighFreqADCToRfmM.ADCControl -> ADCREFM.ADCControl;
  
  Sample.LogData -> ByteEEPROM.LogData[HFS_EEPROM_ID];
  //Sample.LogData -> BufferedLog;
  //Sample.fastAppend -> BufferedLog;
  Sample.ExternalShutdown -> GenericComm;
  Sample.MicroTimer -> MicroTimerM;
  Sample.ADC -> ADCREFM.ADC[7];// TOS_ADC_VOLTAGE_PORT = 7,  defined this in 
hardware.h
  //Sample.ADCControl -> ADCREFM.ADCControl;
  Sample.Leds -> LedsC;
  MicroTimerM.Leds -> LedsC;
  
  //BufferedLog.Logger -> ByteEEPROM.LogData[HFS_EEPROM_ID];
}

The application however does not work. Also, I want to use 2 of the available 
adc channels. How do I do this.
Any help will be much appreciated.

Thanks and regards,

vipin

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to