I am working on refining a water tank level sensor that I have made using an ESP-Wroom-32, QDY30A 0-10v and a 0-25v Voltage sensor with ESPHome.
I went down this path for reasons, (initially purchased a Shelly Plus Uni, but it was faulty) so I went with what I already had in my drawer.
I have not seen anyone else post a build of the QDY30A using the 0-25v sensor, instead people seem to use the ADS1115 and I cannot see why.
Would I see more reliability\accuracy if I changed to the ADS1115?
Currently I have fluctuations in readings that seem to match temperature changes. So I am keen to understand if I can rule out the basic voltage sensor I have used and move on to seeing if I need vent holes in the box or need to adjust according to ambient temp.
Thanks for reading and taking the time! I am keen to learn.
EDIT : I fixed my issue, was not relating to the voltage sensor, but needing to ventilate the electronics box so the tank probe can sense the outside air pressure, which seems like a silly mistake now that I know!
Not just it has higher resolution, but it’s superior to ESP32 ADC in every sense, especially in case of low voltage readings (esp32 ADC can’t really go below 100mV).
That totally depends. For example if a sensor only has a 8-bit resolution
The mentioned sensor is available in various ranges - including one with a range from 0.1-5V. In any way I would totally avoid analog out-/in-puts and rather choose (any) other available method like rs485 (offered in the linked product)
Built-in adc in esp32 isn’t exaclty high-quality one, if i’ve read correctly. Supposedly it’s not very linear with noticeably “glitch” at 2.5V and just under max.
It has quite some noise - you can find (overexaggerated) info that it’s in fact 9 bit data and 3 bit of noise
Then - depending where you read - some say it can’t go below 100mV, while you can find information about not going even as high as below 0.2V… So, choosing ads1115 is clearly a better.
But, at the end i totally agree with orange-assistant: I’d choose any digital solution. In this case RS485.
Thank you! I think because I am still learning about these things the resolution specs didn’t sink in for me to understand that. But makes a lot of sense now.
While I think Esp32 ADC is … not the best possible, I think it’s capable to detect your 0-10V sensor without problems for your use case. I could immagine that 5% tank level resolution is enough for normal use.
So far so good I think, thanks for the reply. At least the readings are close enough to my multi-meter for me to be happy. A long way off where I started!!
I will have a play with the ADS1115 when my new batch of ESP32’s arrive as I have a second water tank to monitor so I am working on getting this first one as close to right before I look at building a second one. That and I will be looking to increase the sensitivity if possible.
I would like to get as much detail as possible, but smooth out the fluctuations as well. So a bit of research on the sensor\maths side in HA to get it better.