Infineon PROFET Smart High-Side Switch

Hi. My name is Sasha, and this is my first post here. I am in the planing fase for the truck to camper conversion. I would like to monitor and automate all sorts of things in the camper. Sensors are there, relays are out of the quesion, and I havent found MOSFET board that I like. What caught my attention is Infineons PROFET Smart High-Side Switch series. It is actually very robust logic-level MOSFET IC with all sorts of protections and diagnostics. One of it`s features I found very interesting is a current sense feedback. There are varous evaluation boards available, but most of them are arduino form factor. I got myself a Microelectronica PROFET CLICK - 15A to play with: PROFET Click - 15A After some playing with it, I liked it, so I have designed a custom DIN rail ready PCB containing 4 PROFETs. It looks like this…

i2c:
  id: bus_a
  sda: GPIO21
  scl: GPIO22
  scan: True

ads1115:

 - address: 0x48
   continuous_mode : on
   id: ads1115_48

sensor:
# ads1115-48
  - name: "OUTPUT 01"
    id: ads1115_48_a0
    ads1115_id: ads1115_48
    multiplexer: 'A0_GND'
    gain: 6.144
    platform: ads1115
    update_interval: 1s
    unit_of_measurement: "A"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.000 -> 0.000
         - 0.386 -> 6.20

  - name: "OUTPUT 02"
    id: ads1115_48_a1
    ads1115_id: ads1115_48
    multiplexer: 'A1_GND'
    gain: 6.144
    platform: ads1115
    update_interval: 10s
    unit_of_measurement: "A"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.295 -> 3.3
    
  - name: "OUTPUT 03"
    id: ads1115_48_a2
    ads1115_id: ads1115_48
    multiplexer: 'A2_GND'
    gain: 6.144
    platform: ads1115
    update_interval: 10s
    unit_of_measurement: "A"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.129 -> 0.000
         - 3.295 -> 3.3
     
  - name: "OUTPUT 04"
    id: ads1115_48_a3
    ads1115_id: ads1115_48
    multiplexer: 'A3_GND'
    gain: 6.144
    platform: ads1115
    update_interval: 10s
    unit_of_measurement: "A"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.295 -> 3.3

switch:
  - platform: gpio
    name: "OUTPUT 01"
    id: profet1
    pin: GPIO26
    inverted: False

  - platform: gpio
    name: "OUTPUT 2"
    id: profet2
    pin: GPIO25
    inverted: False

  - platform: gpio
    name: "OUTPUT 3"
    id: profet3
    pin: GPIO33
    inverted: False

  - platform: gpio
    name: "OUTPUT 4"
    id: profet4
    pin: GPIO32
    inverted: False

binary_sensor:
  - platform: gpio
    id: in1
    pin:
      number: GPIO16
      mode: INPUT_PULLUP
      inverted: true
    filters:
      - delayed_on: 3ms
      - delayed_off: 3ms
    on_click:
      then:
        - switch.toggle: profet1
 
  - platform: gpio
    id: in2
    pin:
      number: GPIO17
      mode: INPUT_PULLUP
      inverted: true
    filters:
      - delayed_on: 3ms
      - delayed_off: 3ms
    on_click:
      then:
        - switch.toggle: profet2
  
  - platform: gpio
    id: in3
    pin:
      number: GPIO18
      mode: INPUT_PULLUP
      inverted: true
    filters:
      - delayed_on: 3ms
      - delayed_off: 3ms
    on_click:
      then:
        - switch.toggle: profet3
  
  - platform: gpio
    id: in4
    pin:
      number: GPIO19
      mode: INPUT_PULLUP
      inverted: true
    filters:
      - delayed_on: 3ms
      - delayed_off: 3ms
    on_click:
      then:
        - switch.toggle: profet4

I am not a coder and I am not using full diagnostics even the Infineon has provided a library. I am using ESPhome, and For now, I can just switch it on/off and measure the current with ADS1115. It would be amazing to have full diagnostics and some ESPHome template that can be adjusted to act as an electronic fuse. I will provide more details about the PCB when I get back home. Please comment and advise.

Smart High-Side Switch Arduino Library:

Stumbled upon those IC’s yesterday, also planning making decentral boards for my coming campervanbuild and thinking of such kind of boards. Still in doubt if I’m gonna use ESPHome or Canbus…