input A1 4-20mA ESPHome - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A4 (https://www.kincony.com/forum/forumdisplay.php?fid=21) +--- Thread: input A1 4-20mA ESPHome (/showthread.php?tid=3226) |
input A1 4-20mA ESPHome - kgrzesiek - 09-02-2023 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.php?tid=2068&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 ? RE: input A1 4-20mA ESPHome - admin - 09-03-2023 which sensor model you are using? if you have link, you can post at here, i can buy one sensor as same as yours, then for a testing with esphome. RE: input A1 4-20mA ESPHome - kgrzesiek - 09-03-2023 (09-03-2023, 01:40 AM)admin Wrote: which sensor model you are using? if you have link, you can post at here, i can buy one sensor as same as yours, then for a testing with esphome. Sensor: Belimo 22UT-14 https://www.belimo.com/pl/shop/en_GB/Czujniki/Czujniki-zewn%C4%99trzne-(powietrze)/22UT-14/p?code=22UT-14 is a standard sensor used in industrial automation Sensor requires 24V DC power supply and returns 4-20mA signal RE: input A1 4-20mA ESPHome - admin - 10-26-2023 - platform: adc pin: 35 name: "A8S A3 Current" update_interval: 5s unit_of_measurement: mA attenuation: 11db filters: - multiply: 6.66666666 - platform: adc pin: 39 name: "A8S A4 Current" update_interval: 5s unit_of_measurement: mA attenuation: 11db filters: - multiply: 6.66666666 this is demo code for KC868-A8S, you can replace your board's pin number. make sure it's 4-20mA input port. |