Hi,
I'm starting the development of a wireless sensor network using the ez430-rf2500 kit. My goal is to measure soil humidity with a soil moisture sensor in each device of the network. The soil moisture sensor i'm using is the following: http://www.dfrobot.c...&product_id=599 .
ADC10CTL1 = INCH_0;
ADC10CTL0 = ADC10IE + ADC10ON + ADC10SHT_2 + SREF_0;
for( degC = 240; degC > 0; degC-- ); // delay to allow reference to settle
ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion start
__bis_SR_register(CPUOFF + GIE); // LPM0 with interrupts enabled
results[2] = ADC10MEM;
I'm having trouble integrating this sensor with the ez430-rf2500. I'm using the Temperature Sensor Monitor Demos as a basis for my project. But i don't understand this formula: degC = (((temp - 673) * 4230) / 1024); which converts the value read by the sensor! Is there any formula i could apply to my case?
My code is the following:
I've tested it but the read values are not in the range which is given in the moisture sensor wiki.
It is suppose to be something like this:
Value range:
- 0 ~300 : dry soil
- 300~700 : humid soil
- 700~950 : in water
Thanks in advance!
Best regards!