Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
B16M ESP32-S3 IO pins define
#1
IIC Bus:

SDA:GPIO38
SCL:GPIO39

PCF8575:U57 (relay1-16): i2c address:0x25
PCF8575:U58 (input1-16): i2c address:0x24

DS3231 RTC i2c address: 0x68
SSD1306 display: i2c address:0x3c
ADS1115 (4CH ADC): i2c address:0x48
-----------------

1-wire (pull-up resistance on PCB):
1-wire1:GPIO40
1-wire2:GPIO15
1-wire3:GPIO48
1-wire4:GPIO47

free GPIOs (without pull-up resistance on PCB):
free gpio-1:GPIO13
free gpio-2:GPIO14
free gpio-3:GPIO21
-----------------

Ethernet (W5500) I/O define:

clk_pin: GPIO42
mosi_pin: GPIO43
miso_pin: GPIO44
cs_pin: GPIO41

interrupt_pin: GPIO2
reset_pin: GPIO1

--------------------
RS485:
RXD:GPIO8
TXD:GPIO18

Tuya module:
RXD:GPIO17
TXD:GPIO16

Tuya network button: Tuya module's P28
Tuya network LED: Tuya module's P16
--------------------
SD Card:
SPI-MOSI:GPIO10
SPI-SCK:GPIO11
SPI-MISO:GPIO12
SPI-CS:GPIO9
Reply
#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
#3
if usb can't work.
1. power off B16M
2. hold on DW (download) button, don't move your finger.
3. power on of B16M
4. release your finger.
5. Then B16M enter bootloader mode. download firmware again.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)