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


Messages In This Thread
B16M 4-20ma pressure sensor input - by mattorola7 - 02-26-2025, 10:05 PM
RE: B16M 4-20ma pressure sensor input - by admin - 02-27-2025, 12:12 AM
RE: B16M 4-20ma pressure sensor input - by admin - 03-02-2025, 01:06 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)