Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
input A1 4-20mA ESPHome
#1
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

[Image: attachment.php?aid=1180]

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 ?
Reply
#2
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.
Reply
#3
(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/Czu...de=22UT-14

is a standard sensor used in industrial automation
Sensor requires 24V DC power supply and returns 4-20mA signal
Reply
#4
- 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.

   
   
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)