esp8266 - Powering up an ESP32 with IO extender (MCP23017) and two of 8 channel relays from an external 5 V, 10 A power supply - Electrical Engineering Stack Exchange
Safely connecting a relay board to external power supply - Project Guidance - Arduino Forum