The scenario
A maker builds a Wi-Fi controlled 8-relay board using an ESP8266, driving relay coils through NPN transistors and flyback diodes from an external 5V supply with an LDO for 3.3V logic.
What is in this drawing
Read the decisions behind it.
01
Use NPN transistor drivers to sink relay coil current from 5V
02
Add flyback diodes across relay coils
03
Derive 3.3V logic supply from 5V using LDO
Use for any ESP8266/ESP32 relay controller project with separate logic and relay supplies.
More like this