Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
B16M ESP32-S3 IO pins define
#2
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. 

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: true

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.  

Code:
# uart:
#  - id: uart_1
#    baud_rate: 9600
#    debug:
#      direction: BOTH
#      dummy_receiver: true
#      after:
#        timeout: 10ms
#    tx_pin: 18
#    rx_pin: 8
Reply


Messages In This Thread
B16M ESP32-S3 IO pins define - by admin - 09-27-2024, 02:13 AM
RE: B16M ESP32-S3 IO pins define - by uslackr - 07-03-2025, 07:34 PM
RE: B16M ESP32-S3 IO pins define - by admin - 07-04-2025, 12:50 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)