Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Help on using a non suported type of Soil Moisture Sensor
#4

Hi,

Its ok.

In your RX software, go to the RX_TX tab and find line 294
Replace the content of that line with this code:

Code:
       Soil_Data[i][1] = map(RX_Data[SoilMoist_Source[i][1] + 2], AnalogSensor_MinVoltOut[SoilMoist_Source[i][1]], AnalogSensor_MaxVoltOut[SoilMoist_Source[i][1]], 100, 0);

I can't guarantee, but I think this will do the trick. You will let me know  Smile

In the config use:

Code:
const unsigned int AnalogSensor_MaxVoltOut[4] = { 5000, 5000, 5000, 5000 }; const unsigned int AnalogSensor_MinVoltOut[4] = { 530, 530, 0, 0 };

Regards

Reply


Messages In This Thread



Users browsing this thread: 1 Guest(s)