[Tinyos-help] Re ad Adc - humidity value
Hi , i use Tinyos-2.. I want to read humidity data from EC-5 soil sensor. i want to read values from adc with SendingMote (RssiDemo) ,using also compoment MicaBusC. I have already motify the code but i i think need some help here. New lines SendingMoteC.nc #include ApplicationDefinitions.h #include RssiDemoMessages.h module SendingMoteC { uses interface Boot; uses interface TimerTMilli as SendTimer; uses interface GeneralIO as PW1; uses interface MicaBusAdc as Adc7 uses interface AMSend as RssiMsgSend; uses interface SplitControl as RadioControl; } implementation { message_t msg; event void Boot.booted(){ call RadioControl.start(); call PW1.makeOutput(); } 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 Adc7.getChannel(); call RssiMsgSend.send(AM_BROADCAST_ADDR, msg, sizeof(RssiMsg)); call PW1.toggle(); } event void RssiMsgSend.sendDone(message_t *m, error_t error){} } Thank you. -- View this message in context: http://old.nabble.com/Read-Adc---humidity-value-tp31655696p31655696.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Re ad Adc - humidity value
With all this i mean that , i want to get the right ADC channel , sample the value , store it in a struct and send it to Base and then to pc. George_1985 wrote: Hi , i use Tinyos-2.. I want to read humidity data from EC-5 soil sensor. i want to read values from adc with SendingMote (RssiDemo) ,using also compoment MicaBusC. I have already motify the code but i i think need some help here. New lines SendingMoteC.nc #include ApplicationDefinitions.h #include RssiDemoMessages.h module SendingMoteC { uses interface Boot; uses interface TimerTMilli as SendTimer; uses interface GeneralIO as PW1; uses interface MicaBusAdc as Adc7 uses interface AMSend as RssiMsgSend; uses interface SplitControl as RadioControl; } implementation { message_t msg; event void Boot.booted(){ call RadioControl.start(); call PW1.makeOutput(); } 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 Adc7.getChannel(); call RssiMsgSend.send(AM_BROADCAST_ADDR, msg, sizeof(RssiMsg)); call PW1.toggle(); } event void RssiMsgSend.sendDone(message_t *m, error_t error){} } Thank you. -- View this message in context: http://old.nabble.com/Read-Adc---humidity-value-tp31655696p31658429.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Re ad Adc - humidity value
I use Iris Mote and MDA100CB development area. George_1985 wrote: With all this i mean that , i want to get the right ADC channel , sample the value , store it in a struct and send it to Base and then to pc. George_1985 wrote: Hi , i use Tinyos-2.. I want to read humidity data from EC-5 soil sensor. i want to read values from adc with SendingMote (RssiDemo) ,using also compoment MicaBusC. I have already motify the code but i i think need some help here. New lines SendingMoteC.nc #include ApplicationDefinitions.h #include RssiDemoMessages.h module SendingMoteC { uses interface Boot; uses interface TimerTMilli as SendTimer; uses interface GeneralIO as PW1; uses interface MicaBusAdc as Adc7 uses interface AMSend as RssiMsgSend; uses interface SplitControl as RadioControl; } implementation { message_t msg; event void Boot.booted(){ call RadioControl.start(); call PW1.makeOutput(); } 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 Adc7.getChannel(); call RssiMsgSend.send(AM_BROADCAST_ADDR, msg, sizeof(RssiMsg)); call PW1.toggle(); } event void RssiMsgSend.sendDone(message_t *m, error_t error){} } Thank you. -- View this message in context: http://old.nabble.com/Read-Adc---humidity-value-tp31655696p31658449.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] IRIS mote + EC-5 moisture sensor
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 TimerTMilli 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 Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MDA100CB and Soil Moisture Sensor
Any help with the Excitation wire following the table of MDA100 plz.. And any more help is appreciated. Thanks George_1985 wrote: Thank you.. Here in page 30 is the table of the MDA100 http://courses.ece.ubc.ca/494/files/MTS-MDA_Series_Users_Manual_7430-0020-04_B.pdf , could you tell me where in what pin to put the excitation ? (analog outp--ADC , Ground--GND is ok) Is there any sample code in net or in tinyos to see , to program this? Also i will check the site.. Thanks.. Michael Schippling-2 wrote: I'm guessing Excitation means Power. Although you could probably switch it on and off by connecting to an I/O pin similar to the light and temp sensors on the MDA100. You could find a wire that fits the hole and run a short jump of it to the sensor wire. That will probably be more stable than trying to trim the wire. Heatshrink tubing and possibly silicon seal will be your friends, might as well make their acquaintance. For future use, if you are making a bunch of these you don't need the MDA board, just some way to mount the connector. I have a design for a break-out board you can have made if you need a few: http://www.etantdonnes.com/Motes/MicaBOB/ MS George_1985 wrote: Thank you for help. OK, -Analog output to any ADC pin. -Ground wire to any gnd pin? -Excitation wire to what pin? On thing more, in practically i have to put wires into the holes until the iris mote? and somehow to keep it stable..Ground's wire is thin and can pass into the hole , but the other two wires is a little more thick and can not..is that ok? Should somehow make the wire thinner with some tool? I have Tinyos-2.1.1 , here in tutorials http://docs.tinyos.net/index.php/TinyOS_Tutorials will help me the sensing more or adc ? Thanks again.. Michael Schippling-2 wrote: You should be able to connect the analog output to any available ADC pin. ADC3-7 seem to be available on the prototyping pads, however ADC7 is also used internally to read the Battery reference. From my brief reading of the sensor specs, if you have the EC-5 you can run it from the same battery power as the iris. But with any of them the max output you get is 40% of the supply voltage, so your conversion range is somewhat limited. Running an EC-10 on 5v would boost that range a bit, but then you need another power supply...and another sensor... You can probably modify the DemoSensor module to read from the ADC you select. That module is used in most of the demo apps, in TOS-1.x at least... MS George_1985 wrote: Hi guys i have allready MIB520, iris motes , MDA100CB developemnt area and soil moisture senros EC-5 from Decagon. I have put the MDA100CB on iris (with 51-pins). So i want to connect the soil moisture sensor in MDA100CB and send data to iris and then to the MIB520 board. Ηοw have to connect the cable's soil to MDA100CB? Here is the manual's soil http://www.decagon.com/assets/Manuals/EC-20-EC-10-EC-5-Soil-Moisture-Sensor-User-Manual.pdf . It has three wires Analog out , Ground , Excitation. Thank you ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- View this message in context: http://old.nabble.com/MDA100CB-and-Soil-Moisture-Sensor-tp31598297p31602774.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] re ading moisture data
Hello, i have alreadey iris motes , MIB520 , MDA100CB development area and soil moisture EC-5 sensors from decagon. I have connect the iris mote + soil mositure sensor (EC-5) I want to make a code to get reading from ADC ,from soil sensor to iris mote , could you help me with that? Have you got some code like this to post? Thanks. . Alessandro Matese wrote: I have IRIS mote + MIB520 + MDA300 sensorbord, my objectives is to monitor temperature, radiation and humidity adc sensors. Using your UOIT MDA300 driver, i write a simple application. Now I can read ADC channels and Vref, but: 1- How can i read also Temp and Humidity internal channels? 2 - I found problem also to read Differiential precision channels, any ideas? Thank you very much in advance ! -- Alessandro Matese Institute of Biometeorology - IBIMET National Research Council - CNR Via Caproni 8, 50145, Florence, Italy. tel +39 055 30 33 711 fax +39 055 30 89 10 mobile +39 320 9223934 e-mail: a.mat...@ibimet.cnr.it http://www.ibimet.cnr.it ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- View this message in context: http://old.nabble.com/mda300-tp31378952p31605170.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MDA100CB and Soil Moisture Sensor
Hi guys i have allready MIB520 iris motes , MDA100CB developemnt area and soil moisture senros EC-5 from Decagon. I have put the MDA100CB on iris (with 51-pins). So i want to connect the soil moisture sensor in MDA100CB and send data to iris and then to the MIB520 board. Ηοw have to connect the cable's soil to MDA100CB? Here is the manual's soil http://www.decagon.com/assets/Manuals/EC-20-EC-10-EC-5-Soil-Moisture-Sensor-User-Manual.pdf . It has three wires Analog out , Ground , Excitation. Thank you -- View this message in context: http://old.nabble.com/MDA100CB-and-Soil-Moisture-Sensor-tp31598297p31598297.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MDA100CB and Soil Moisture Sensor
Thank you for help. OK, -Analog output to any ADC pin. -Ground wire to any gnd pin? -Excitation wire to what pin? On thing more, in practically i have to put wires into the holes until the iris mote? and somehow to keep it stable..Ground's wire is thin and can pass into the hole , but the other two wires is a little more thick and can not..is that ok? Should somehow make the wire thinner with some tool? I have Tinyos-2.1.1 , here in tutorials http://docs.tinyos.net/index.php/TinyOS_Tutorials will help me the sensing more or adc ? Thanks again.. Michael Schippling-2 wrote: You should be able to connect the analog output to any available ADC pin. ADC3-7 seem to be available on the prototyping pads, however ADC7 is also used internally to read the Battery reference. From my brief reading of the sensor specs, if you have the EC-5 you can run it from the same battery power as the iris. But with any of them the max output you get is 40% of the supply voltage, so your conversion range is somewhat limited. Running an EC-10 on 5v would boost that range a bit, but then you need another power supply...and another sensor... You can probably modify the DemoSensor module to read from the ADC you select. That module is used in most of the demo apps, in TOS-1.x at least... MS George_1985 wrote: Hi guys i have allready MIB520, iris motes , MDA100CB developemnt area and soil moisture senros EC-5 from Decagon. I have put the MDA100CB on iris (with 51-pins). So i want to connect the soil moisture sensor in MDA100CB and send data to iris and then to the MIB520 board. Ηοw have to connect the cable's soil to MDA100CB? Here is the manual's soil http://www.decagon.com/assets/Manuals/EC-20-EC-10-EC-5-Soil-Moisture-Sensor-User-Manual.pdf . It has three wires Analog out , Ground , Excitation. Thank you ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- View this message in context: http://old.nabble.com/MDA100CB-and-Soil-Moisture-Sensor-tp31598297p31598786.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MDA100CB and Soil Moisture Sensor
Thank you.. Here in page 30 is the table of the MDA100 http://courses.ece.ubc.ca/494/files/MTS-MDA_Series_Users_Manual_7430-0020-04_B.pdf , could you tell me where in what pin to put the excitation ? (analog outp--ADC , Ground--GND is ok) Is there any sample code in net or in tinyos to see , to program this? Also i will check the site.. Thanks.. Michael Schippling-2 wrote: I'm guessing Excitation means Power. Although you could probably switch it on and off by connecting to an I/O pin similar to the light and temp sensors on the MDA100. You could find a wire that fits the hole and run a short jump of it to the sensor wire. That will probably be more stable than trying to trim the wire. Heatshrink tubing and possibly silicon seal will be your friends, might as well make their acquaintance. For future use, if you are making a bunch of these you don't need the MDA board, just some way to mount the connector. I have a design for a break-out board you can have made if you need a few: http://www.etantdonnes.com/Motes/MicaBOB/ MS George_1985 wrote: Thank you for help. OK, -Analog output to any ADC pin. -Ground wire to any gnd pin? -Excitation wire to what pin? On thing more, in practically i have to put wires into the holes until the iris mote? and somehow to keep it stable..Ground's wire is thin and can pass into the hole , but the other two wires is a little more thick and can not..is that ok? Should somehow make the wire thinner with some tool? I have Tinyos-2.1.1 , here in tutorials http://docs.tinyos.net/index.php/TinyOS_Tutorials will help me the sensing more or adc ? Thanks again.. Michael Schippling-2 wrote: You should be able to connect the analog output to any available ADC pin. ADC3-7 seem to be available on the prototyping pads, however ADC7 is also used internally to read the Battery reference. From my brief reading of the sensor specs, if you have the EC-5 you can run it from the same battery power as the iris. But with any of them the max output you get is 40% of the supply voltage, so your conversion range is somewhat limited. Running an EC-10 on 5v would boost that range a bit, but then you need another power supply...and another sensor... You can probably modify the DemoSensor module to read from the ADC you select. That module is used in most of the demo apps, in TOS-1.x at least... MS George_1985 wrote: Hi guys i have allready MIB520, iris motes , MDA100CB developemnt area and soil moisture senros EC-5 from Decagon. I have put the MDA100CB on iris (with 51-pins). So i want to connect the soil moisture sensor in MDA100CB and send data to iris and then to the MIB520 board. Ηοw have to connect the cable's soil to MDA100CB? Here is the manual's soil http://www.decagon.com/assets/Manuals/EC-20-EC-10-EC-5-Soil-Moisture-Sensor-User-Manual.pdf . It has three wires Analog out , Ground , Excitation. Thank you ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- View this message in context: http://old.nabble.com/MDA100CB-and-Soil-Moisture-Sensor-tp31598297p31599185.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help