I'm using this diagram:
which looks like this:
Because we're feeding it 3.3V and have a resistor in the middle I know that my expected voltages would be above 1.65v so I set attenuation to 6db to be able to read those voltages.
With this however I'm having a hard time getting the proper calibrated reading with a B constant of 3950. I think I may need to set my reference voltage but I'm not really sure what to use for that, i tried 1.65v but that does not work whatsoever.
Any help is appreciated. I am using ESPHOME for this project and this is currently my code:
Code: Select all
sensor:
- platform: ntc
sensor: resistance_sensor
calibration:
b_constant: 3950
reference_temperature: 25°C
reference_resistance: 10kOhm
name: NTC Temperature B Constant
- platform: resistance
id: resistance_sensor
sensor: source_sensor
configuration: DOWNSTREAM
resistor: 10kOhm
reference_voltage: 3.3v
name: Resistance Sensor
- platform: adc
id: source_sensor
pin: 36
attenuation: 6db
update_interval: 5s