Are the LEDs hardwired to the mosfet output or are they addressable? I loaded an ESP32 config and turned on one of the outputs but no led turned.on.
This is my yaml.
Solved - I applied 5vdc to ground and the Digital Output DC connector and now the led lights up and I can measure 5v on the output when turned on.
One issue I ran into is that with the uart config from your sample esphome config, once I flash it, I can no longer flash it again over USB. The USB connections keeps going up and down. I had to reflash using the KCS flash tool and the v3.4 firmware and start over with ESPHome.
This is my yaml.
Code:
i2c:
- id: bus_a
sda: 38
scl: 39
scan: true
frequency: 400kHz
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-16
i2c_id: bus_a
address: 0x25
pcf8575: true
switch:
# - platform: uart
# uart_id: uart_1
# name: "RS485 Button"
# data: [0x11, 0x22, 0x33, 0x44, 0x55]
- platform: gpio
name: "b16m-valve-F01"
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "b16m-valve-F02"
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "b16m-valve-F03"
pin:
pcf8574: pcf8574_hub_out_1
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "b16m-b16m-valve-F04"
pin:
pcf8574: pcf8574_hub_out_1
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "b16m-valve-B01"
pin:
pcf8574: pcf8574_hub_out_1
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "b16m-valve-B02"
pin:
pcf8574: pcf8574_hub_out_1
number: 5
mode: OUTPUT
inverted: trueSolved - I applied 5vdc to ground and the Digital Output DC connector and now the led lights up and I can measure 5v on the output when turned on.
One issue I ran into is that with the uart config from your sample esphome config, once I flash it, I can no longer flash it again over USB. The USB connections keeps going up and down. I had to reflash using the KCS flash tool and the v3.4 firmware and start over with ESPHome.
Code:
# uart:
# - id: uart_1
# baud_rate: 9600
# debug:
# direction: BOTH
# dummy_receiver: true
# after:
# timeout: 10ms
# tx_pin: 18
# rx_pin: 8
