09-02-2023, 10:29 AM
Hello,
please help me to configure a 4..20mA sensor
I connected a passive 4-20mA sensor
24VDC power supply (external power source) -> sensor -> current signal from the sensor to A1 KC868-A4
AGND KC868-A4 -> GND power suppy
configuration in esphome is as in the following link
https://www.kincony.com/forum/showthread...8&pid=4140
sensor:
- platform: adc
pin: 34
name: "ADC-IN"
update_interval: 5s
The sensor configuration in the example above refers to: pin: 34
following page
https://devices.esphome.io/devices/KinCony-KC868-A4
says
GPIO32 analog input1
what should be the correct configuration of the 4-20mA sensor in the esphome environment ?
I get readings similar to the screen below, when I warm up the temperature sensor the voltage does not change , so this is not a scaling problem just a misreading
when I measure the current flowing between the sensor and the A1 input, its value is 16mA - the temperature range on the sensor is -50..50C - so the value of 17mA corresponds approximately to 25C
binary sensors and binary outputs work correctly under esphome (home assistant)
Where could be the problem , what should I recheck , or maybe change the configuration ?
please help me to configure a 4..20mA sensor
I connected a passive 4-20mA sensor
24VDC power supply (external power source) -> sensor -> current signal from the sensor to A1 KC868-A4
AGND KC868-A4 -> GND power suppy
configuration in esphome is as in the following link
https://www.kincony.com/forum/showthread...8&pid=4140
sensor:
- platform: adc
pin: 34
name: "ADC-IN"
update_interval: 5s
The sensor configuration in the example above refers to: pin: 34
following page
https://devices.esphome.io/devices/KinCony-KC868-A4
says
GPIO32 analog input1
what should be the correct configuration of the 4-20mA sensor in the esphome environment ?
I get readings similar to the screen below, when I warm up the temperature sensor the voltage does not change , so this is not a scaling problem just a misreading
when I measure the current flowing between the sensor and the A1 input, its value is 16mA - the temperature range on the sensor is -50..50C - so the value of 17mA corresponds approximately to 25C
binary sensors and binary outputs work correctly under esphome (home assistant)
Where could be the problem , what should I recheck , or maybe change the configuration ?