Hi , i have already the MIB520 board ,MDA100CB development area , iris motes,
EC-5 moisture sensors .
I have connect the iris mote with moisture sensor and i want to take
humidity values from EC-5 sensor and print it in pc.
EC-5 have three wires , i have put ground wire in GND , Analog output in
ADC7 , and Excitation in INT0 in MDA100CP area-pins.
i want to use components SendingMoteC,nc and SendingMoteAppC.nc and also
MicaBusC.nc that provides interfaces MicaBusAdc and GeneralIO.
so with these i want to read the values of the moisture sensor and print
them to pc.
Here is SendingMoteAppC.nc
#include "RssiDemoMessages.h"
configuration SendingMoteAppC {
} implementation {
components ActiveMessageC, MainC;
components new AMSenderC(AM_RSSIMSG) as RssiMsgSender;
components new TimerMilliC() as SendTimer;
components SendingMoteC as App;
App.Boot -> MainC;
App.SendTimer -> SendTimer;
App.RssiMsgSend -> RssiMsgSender;
App.RadioControl -> ActiveMessageC;
}
and here the SendingMoteC.nc
#include "ApplicationDefinitions.h"
#include "RssiDemoMessages.h"
module SendingMoteC {
uses interface Boot;
uses interface Timer<TMilli> as SendTimer;
uses interface AMSend as RssiMsgSend;
uses interface SplitControl as RadioControl;
} implementation {
message_t msg;
event void Boot.booted(){
call RadioControl.start();
}
event void RadioControl.startDone(error_t result){
call SendTimer.startPeriodic(SEND_INTERVAL_MS);
}
event void RadioControl.stopDone(error_t result){}
event void SendTimer.fired(){
call RssiMsgSend.send(AM_BROADCAST_ADDR, &msg, sizeof(RssiMsg));
}
event void RssiMsgSend.sendDone(message_t *m, error_t error){}
}
If anyone knows, what modifications have to do to read the values of
moisture sensor and print them to pc? (using MicaBusC)
Thank you
--
View this message in context:
http://old.nabble.com/IRIS-mote-%2B-EC-5-moisture-sensor-tp31630262p31630262.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help