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


Forum Jump:


Users browsing this thread:
1 Guest(s)