working perfect
Hey guys,
I want to try to make my osmosis water system smart.
I bought this sensor to read water consumption, TDS and temperature data.
As regards data consumption, I managed to configure the sensor.
Now I was trying to configure the temperature sensor which I then need to measure the TDS but I can’t get correct data.
I’m using an AZ-Delivery D1 Mini NodeMcu with ESP8266-12F CH340G Lua WLAN module
This is the tested configuration but the data is completely wrong
- platform: ntc
sensor: resistance_sensor
name: NTC Temperature B Constant
calibration:
b_constant: 3950
reference_temperature: 25°C
reference_resistance: 50kOhm
- platform: resistance
id: resistance_sensor
sensor: source_sensor
configuration: DOWNSTREAM
resistor: 50kOhm
name: Resistance Sensor
- platform: adc
id: source_sensor
name: ADC Value
filters:
- multiply: 3.3
pin: A0
update_interval: 5s
Thanks for the support
I’m headed down the NTC thermistor path myself with a 10kOhm sensor. I finally got reasonable baseline values out of the sensor using the YAML below (the attenuation
helped quite a bit), but the resistance goes down when the sensor gets colder and up when it gets warmer, which is the opposite of what it should be reading. Do I need some sort of filter/offset to flip the readings in the right direction?
sensor:
- platform: ntc
sensor: resistance_sensor
calibration:
b_constant: 3950
reference_temperature: 25°C
reference_resistance: 10kOhm
name: NTC Temperature
- platform: resistance
id: resistance_sensor
sensor: source_sensor
configuration: DOWNSTREAM
reference_voltage: 3.3V
resistor: 10kOhm
name: Resistance Sensor
- platform: adc
id: source_sensor
pin: GPIO36
attenuation: 6db
update_interval: 5s
samples: 10