What can I do to get consistent readings from moisture sensor?
Posted: Wed Mar 06, 2019 12:23 pm
I am using example of adc in asp idf 3.2, as given here https://github.com/espressif/esp-idf/tr ... erals/adc .
I am using Esp32 devkit v1 and my moisture sensor is identical to this https://www.aliexpress.com/item/Free-Sh ... st=ae803_4
The output is very anticlimax.
Question is what can I do to get consistent readings?
Below readings are when sensor is in the air.
eFuse Two Point: NOT supported
eFuse Vref: Supported
Characterized using eFuse Vref
Raw: 0 Voltage: 75mV
Raw: 0 Voltage: 75mV
Raw: 420 Voltage: 172mV
Raw: 4072 Voltage: 1015mV
Raw: 1219 Voltage: 356mV
Raw: 0 Voltage: 75mV
Raw: 3768 Voltage: 945mV
Raw: 1646 Voltage: 455mV
Raw: 3 Voltage: 76mV
Raw: 4082 Voltage: 1017mV
Raw: 0 Voltage: 75mV
Raw: 1667 Voltage: 460mV
Raw: 1620 Voltage: 449mV
Raw: 150 Voltage: 110mV
Raw: 2850 Voltage: 733mV
Raw: 0 Voltage: 75mV
Raw: 3744 Voltage: 939mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 3343 Voltage: 847mV
Raw: 256 Voltage: 134mV
Raw: 2029 Voltage: 543mV
Raw: 932 Voltage: 290mV
Raw: 1153 Voltage: 341mV
Raw: 1490 Voltage: 419mV
Raw: 514 Voltage: 194mV
Raw: 2028 Voltage: 543mV
Raw: 139 Voltage: 107mV
Raw: 2544 Voltage: 662mV
Raw: 15 Voltage: 78mV
Raw: 2984 Voltage: 764mV
Raw: 0 Voltage: 75mV
Raw: 3425 Voltage: 866mV
Raw: 0 Voltage: 75mV
Raw: 3975 Voltage: 993mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 3739 Voltage: 938mV
Raw: 30 Voltage: 82mV
Raw: 3005 Voltage: 769mV
Raw: 277 Voltage: 139mV
Raw: 2379 Voltage: 624mV
Raw: 557 Voltage: 204mV
Raw: 1988 Voltage: 534mV
Raw: 755 Voltage: 249mV
Raw: 1727 Voltage: 474mV
Raw: 966 Voltage: 298mV
Raw: 1469 Voltage: 414mV
Raw: 1122 Voltage: 334mV
Raw: 1271 Voltage: 368mV
Raw: 1255 Voltage: 365mV
Raw: 1145 Voltage: 339mV
Raw: 1344 Voltage: 385mV
.
.
.
.
.
.
.
.
.
I am using Esp32 devkit v1 and my moisture sensor is identical to this https://www.aliexpress.com/item/Free-Sh ... st=ae803_4
The output is very anticlimax.
Question is what can I do to get consistent readings?
Below readings are when sensor is in the air.
eFuse Two Point: NOT supported
eFuse Vref: Supported
Characterized using eFuse Vref
Raw: 0 Voltage: 75mV
Raw: 0 Voltage: 75mV
Raw: 420 Voltage: 172mV
Raw: 4072 Voltage: 1015mV
Raw: 1219 Voltage: 356mV
Raw: 0 Voltage: 75mV
Raw: 3768 Voltage: 945mV
Raw: 1646 Voltage: 455mV
Raw: 3 Voltage: 76mV
Raw: 4082 Voltage: 1017mV
Raw: 0 Voltage: 75mV
Raw: 1667 Voltage: 460mV
Raw: 1620 Voltage: 449mV
Raw: 150 Voltage: 110mV
Raw: 2850 Voltage: 733mV
Raw: 0 Voltage: 75mV
Raw: 3744 Voltage: 939mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 3343 Voltage: 847mV
Raw: 256 Voltage: 134mV
Raw: 2029 Voltage: 543mV
Raw: 932 Voltage: 290mV
Raw: 1153 Voltage: 341mV
Raw: 1490 Voltage: 419mV
Raw: 514 Voltage: 194mV
Raw: 2028 Voltage: 543mV
Raw: 139 Voltage: 107mV
Raw: 2544 Voltage: 662mV
Raw: 15 Voltage: 78mV
Raw: 2984 Voltage: 764mV
Raw: 0 Voltage: 75mV
Raw: 3425 Voltage: 866mV
Raw: 0 Voltage: 75mV
Raw: 3975 Voltage: 993mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 4095 Voltage: 1020mV
Raw: 0 Voltage: 75mV
Raw: 3739 Voltage: 938mV
Raw: 30 Voltage: 82mV
Raw: 3005 Voltage: 769mV
Raw: 277 Voltage: 139mV
Raw: 2379 Voltage: 624mV
Raw: 557 Voltage: 204mV
Raw: 1988 Voltage: 534mV
Raw: 755 Voltage: 249mV
Raw: 1727 Voltage: 474mV
Raw: 966 Voltage: 298mV
Raw: 1469 Voltage: 414mV
Raw: 1122 Voltage: 334mV
Raw: 1271 Voltage: 368mV
Raw: 1255 Voltage: 365mV
Raw: 1145 Voltage: 339mV
Raw: 1344 Voltage: 385mV
.
.
.
.
.
.
.
.
.