Correct resistor values for voltage divider
Posted: Sat Aug 20, 2016 4:35 am
Hi all, I am building an hygrometer with an ESP8266-12, connected to a soil moisture sensor like this one: http://www.banggood.com/Soil-Hygrometer-Humidity-Detection-Module-Moisture-Sensor-For-Arduino-p-79227.html
The sensor outputs 3.3V when totally dry, and 0V when totally humid.
I have connected it to the ADC pin of the ESP-12, clearly using a voltage divider to bring the voltage between 0V and 1V. So I tried to use a 2R+1R scheme, with 20K and 10K, 330K and 660K, and 2K and 1K. However, what I see is that the difference between the totally dry and totally humid ranges for the different resistor schemes between 0.13V and 0.28V, which thus is not very accurate. I do not mind to get super accurate measurements, but something in the range 0.10V-0.90V would be better.
Testing the sensor without voltage divider with a multimeter reports a value between 1.48V-VCC(3.15V). I guess that the best I can do would be to get a value between 1.48/3.15 and 3.15/3.15, so 0.46 and 1V, but of course I can also accept less difference between the two measurements. In fact, what I really care about is not when the soil is humid, but have accurate measurements with the soil dry, therefore for high voltages.
Any idea why this is not working? I have checked the connections multiple times, and they are ok. I am wondering whether to use different resistor values, but cannot figure out what they could be.
The sensor outputs 3.3V when totally dry, and 0V when totally humid.
I have connected it to the ADC pin of the ESP-12, clearly using a voltage divider to bring the voltage between 0V and 1V. So I tried to use a 2R+1R scheme, with 20K and 10K, 330K and 660K, and 2K and 1K. However, what I see is that the difference between the totally dry and totally humid ranges for the different resistor schemes between 0.13V and 0.28V, which thus is not very accurate. I do not mind to get super accurate measurements, but something in the range 0.10V-0.90V would be better.
Testing the sensor without voltage divider with a multimeter reports a value between 1.48V-VCC(3.15V). I guess that the best I can do would be to get a value between 1.48/3.15 and 3.15/3.15, so 0.46 and 1V, but of course I can also accept less difference between the two measurements. In fact, what I really care about is not when the soil is humid, but have accurate measurements with the soil dry, therefore for high voltages.
Any idea why this is not working? I have checked the connections multiple times, and they are ok. I am wondering whether to use different resistor values, but cannot figure out what they could be.