Hi!
I am trying to create a node to measure the mains of the house. I use an ESP 32 with an ADS1115. I am not getting a good readings. I think I getting few samples to get a decent value. The valuse are countiously changing. I tried to increase the sample duration to 1000ms from 200 ms, but not helped.
Any suggestion?
Log:
[D][ct_clamp:038]: 'A0 - Raw' - Raw AC Value: nanA after 7 different samples (7 SPS)
[D][sensor:127]: 'A0 - Raw': Sending state nan A with 5 decimals of accuracy
[D][ct_clamp:038]: 'A0 - Raw' - Raw AC Value: 0.000A after 7 different samples (7 SPS)
[D][sensor:127]: 'A0 - Raw': Sending state 0.00032 A with 5 decimals of accuracy
[D][ct_clamp:038]: 'A0 - Raw' - Raw AC Value: 0.001A after 5 different samples (5 SPS)
[D][sensor:127]: 'A0 - Raw': Sending state 0.00054 A with 5 decimals of accuracy
Settings:
i2c:
sda: GPIO21
scl: GPIO22
scan: true
setup_priority: -100.0
ads1115:
address: 0x48
# Needed for CT clamp
continuous_mode: on
id: ads0
# Example configuration entry
sensor:
- platform: ads1115
multiplexer: 'A0_GND'
gain: 6.144
name: "A0 - Voltage"
accuracy_decimals: 5
# internal: True
id: ads_a0
ads1115_id: ads0
- platform: ct_clamp
# 1V/30A clamp
sensor: ads_a0
id: raw0
name: "A0 - Raw"
sample_duration: 1000ms
update_interval: 2000ms
accuracy_decimals: 5
# calibrate with a multimeter
filters:
# RAW A -> Calibrated A
- calibrate_linear:
- 0 -> 0
- 1 -> 1