16x Relais with ESP32-32E N4 + sn74hc595

Hallo, i will use this Board for shutters. For a first test i take a easy configuration with only the switches. it works!
Then i add the wifi to the configuration. Now the devise runs in a endless loop.

runnig code:

esphome:
  name: relay-x16

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    
sn74hc595:
  - id: sn74hc595_hub
    data_pin: GPIO14
    clock_pin: GPIO13
    latch_pin: GPIO12
    oe_pin: GPIO05
    sr_count: 2

switch:
  - platform: gpio
    name: Relay01
    id: relay01
    pin:
      sn74hc595: sn74hc595_hub
      number: 0

endless loop:

esphome:
  name: relay-x16

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    
sn74hc595:
  - id: sn74hc595_hub
    data_pin: GPIO14
    clock_pin: GPIO13
    latch_pin: GPIO12
    oe_pin: GPIO05
    sr_count: 2

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true

switch:
  - platform: gpio
    name: Relay01
    id: relay01
    pin:
      sn74hc595: sn74hc595_hub
      number: 0

Log with wifi:

[19:24:46]ets Jul 29 2019 12:21:46
[19:24:46]
[19:24:46]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]ets Jul 29 2019 12:21:46
[19:24:46]
[19:24:46]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]ets Jul 29 2019 12:21:46
[19:24:46]
[19:24:46]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]ets Jul 29 2019 12:21:46
[19:24:46]
[19:24:46]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]invalid header: 0x00000000
[19:24:46]ets Jul 29 2019 12:21:46
[19:24:46]
[19:24:46]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Welcome to forum. Please edit your code using code tags and post a link to your board.

Thanks for the tip. It’s a bit difficult to implement the formatting with the foreign language instructions and without practice.

Good job with code tags.
You didn’t post a link to your board.

Sn74hc595 pin definitions give strong idea of Esp8266 config instead of esp32.

16 Relay Board with esp32

There is possible an error in the documentation
for esp32 the ports may be 25, 26, 27?
but what pin is for OE, is it optional?

sn74hc595:
  - id: 'sn74hc595_hub'
    data_pin: GPIOXX
    clock_pin: GPIOXX
    latch_pin: GPIOXX
    oe_pin: GPIOXX
    sr_count: 2

In an other post i read the same error log.
Answer was possible not enough power.

i have not used the power supply.
Maybe that is the problem.
I will try it.

It was the Power.
Shame on me

Don’t be shamed. It’s on the table here on this forum almost every day.

Interesting is the connection between Esp32 and sn74hc595. They clearly swapped esp8266 to esp32 and kept the same pins even if gpio12 is strapping pin (not preventing it to work though).