Hi there, I am trying to measure tank levels with a pressure sensor and have wired in a Voltage Divider to ADC on a ESP WT32-ETH1. I believe this is a WT32-S1 chip.
Is there any way I can clean up the noise on the ADC?
Thanks
The ADC seems really unstable and fluctuates a lot.
21:42:32][D][sensor:094]: 'Water Tank Level': Sending state 0.22436 % with 0 decimals of accuracy
[21:42:33][D][sensor:094]: 'Water Tank Level': Sending state 0.39606 % with 0 decimals of accuracy
[21:42:34][D][sensor:094]: 'Water Tank Level': Sending state 0.23657 % with 0 decimals of accuracy
[21:42:35][D][sensor:094]: 'Water Tank Level': Sending state 0.40323 % with 0 decimals of accuracy
[21:42:36][D][sensor:094]: 'Water Tank Level': Sending state 0.13882 % with 0 decimals of accuracy
[21:42:37][D][sensor:094]: 'Water Tank Level': Sending state 0.34237 % with 0 decimals of accuracy
[21:42:38][D][sensor:094]: 'Water Tank Level': Sending state 0.07500 % with 0 decimals of accuracy
sensor:
- platform: adc
pin: GPIO34
name: "Water Tank Level"
update_interval: 1s
attenuation: auto
unit_of_measurement: "%"
accuracy_decimals: 0
filters:
- median:
window_size: 15
send_every: 4
- delta: 0.1
- calibrate_linear:
datapoints:
# Map 0.0 (from sensor) to 0.0 (true value)
- 0.00 -> 0
- 0.95 -> 15
- 3.30 -> 100