Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
B16M 4-20ma pressure sensor input
#1
I'm trying to install a Wika A-10 Pressure Sensor/Transmitter 8-30VDC 4-20mA P# 13361091. This is the first time I've used a 4-20ma sensor. I've used other 0-5V and 0-10V sensors before with voltage dividers and have been successful.

Can you help me understand how the A1 and A2 Analog Inputs on the B16M work to convert the 4-20ma signal into a voltage and what I should use for the gain? ChatGPT is trying to explain it to me but it describes using a 250ohm shunt resistor. How do I know what internal shunt resistor(s) have been used to convert the signal to be readable by the internal ads1115 chip?

I will be using 12VDC to excite the pressure sensor which is rated for 8-30VDC. The Wika test report shows that the sensor should produce 4ma at 0 bar and 20ma at 2.5 bar (36.2595 PSI). Here is a snapshot of my YAML code for esphome so far:

########################################################
# ADC
########################################################  
ads1115:
 - address: 0x48
########################################################
# SENSORS
########################################################
sensor:
  - platform: ads1115
    id: "filter_pressure_voltage"
    name: "Filter Pressure Voltage"
    web_server:
      sorting_group_id: sortgroup_hidden_sensors
    device_class: voltage
    multiplexer: "A0_GND"
    gain: 6.144
    resolution: 16_BITS
    unit_of_measurement: "V"
    icon: mdi:lightning-bolt-circle
    internal: false
    update_interval: 5s
  - platform: template
    id: "filter_pressure_gauge"
    name: "Filter Pressure Gauge"
    web_server:
        sorting_group_id: sortgroup_sensors
    device_class: pressure
    lambda: |-
      // Pressure Sensor Model: Wika A-10 Pressure Transmitter 8-30VDC 4-20mA P# 13361091
      // Convert the voltage (1V to 5V) to PSI (0 to 36.2595 PSI)
      return (id(filter_pressure_voltage).state / 5.0) * 36.2595;
    unit_of_measurement: "PSI"
    accuracy_decimals: 2
    icon: mdi:gauge
    internal: false
    update_interval: 5s
Reply
#2
i think you can download KCS v3 firmware, it will auto discovery by home assistant using MQTT.
KCS webpage will show the RAW value on webpage, then you can click "gear" button to set the "unit" and range. it will be easy to use.
if you want config by esphome, you can use our yaml file by this link: https://www.kincony.com/forum/showthread.php?tid=6923
Reply
#3
(02-27-2025, 12:12 AM)admin Wrote: i think you can download KCS v3 firmware, it will auto discovery by home assistant using MQTT.
KCS webpage will show the RAW value on webpage, then you can click "gear" button to set the "unit" and range. it will be easy to use.
if you want config by esphome, you can use our yaml file by this link: https://www.kincony.com/forum/showthread.php?tid=6923

Thanks, I am already using esphome as this is part of a pool/spa controller project and I only pasted a small portion of my fully working esphome config. I used the YAML config provided as a starting point and it was very easy. My main concern was how to wire the 4-20ma signal and to set the gain properly. I understand the software side, but not so much the hardware side with what resistors are on board the PCB.
Reply
#4
(02-27-2025, 07:57 AM)mattorola7 Wrote:
(02-27-2025, 12:12 AM)admin Wrote: i think you can download KCS v3 firmware, it will auto discovery by home assistant using MQTT.
KCS webpage will show the RAW value on webpage, then you can click "gear" button to set the "unit" and range. it will be easy to use.
if you want config by esphome, you can use our yaml file by this link: https://www.kincony.com/forum/showthread.php?tid=6923

Thanks, I am already using esphome as this is part of a pool/spa controller project and I only pasted a small portion of my fully working esphome config. I used the YAML config provided as a starting point and it was very easy. My main concern was how to wire the 4-20ma signal and to set the gain properly. I understand the software side, but not so much the hardware side with what resistors are on board the PCB.

I have. the mqtt.Ha on auto discover in `kcs v3 browser but home assistance. is no seeing  it
Reply
#5
(02-27-2025, 07:57 AM)mattorola7 Wrote:
(02-27-2025, 12:12 AM)admin Wrote: i think you can download KCS v3 firmware, it will auto discovery by home assistant using MQTT.
KCS webpage will show the RAW value on webpage, then you can click "gear" button to set the "unit" and range. it will be easy to use.
if you want config by esphome, you can use our yaml file by this link: https://www.kincony.com/forum/showthread.php?tid=6923

Thanks, I am already using esphome as this is part of a pool/spa controller project and I only pasted a small portion of my fully working esphome config. I used the YAML config provided as a starting point and it was very easy. My main concern was how to wire the 4-20ma signal and to set the gain properly. I understand the software side, but not so much the hardware side with what resistors are on board the PCB.

B16M A1,A2 use for 0-5v analog signal. you can use A3,A4 port, that use for 4-20mA signal.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)