config analog input for 4-20mA device in 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: config analog input for 4-20mA device in ESPHome (/showthread.php?tid=2068) |
config analog input for 4-20mA device in ESPHome - admin - 07-28-2022 actually esp32 will convert current signal to voltage from sensor. we have tested KC868-A4 board with current source, here are some photos from board and esphome log output: here is ESPHome config file for KC868-A4 analog input: esphome: name: a4 esp32: board: esp32dev framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: ota: password: "cde668a4953338ac5140f1585c9d5150" wifi: ssid: "KinCony" password: "123456" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "A4 Fallback Hotspot" password: "ZvKhDPUYilHj" captive_portal: sensor: - platform: adc pin: 34 name: "ADC-IN" update_interval: 5s |