Components used
- ESP32 Module (https://amzn.to/3f32jjl)
- 5 Volts Relay x 4 (https://amzn.to/3x3z0TO)
- Hi-Link 5 volts Power Supply (https://amzn.to/3f3sGpi)
- AMS1117 3.3V regulator IC (https://amzn.to/3l5yGBM)
- Couple of resistors – 10kohms & 330 ohms
- Two pin terminal connectors
- BC547 transistor (https://amzn.to/3ybrpEb)
- 1N4007 diodes x 4 (https://amzn.to/3l4USfm)
- Push button
- On Off button
Schematic
Connection Diagram
Programming Connections
Code
The code used in this project is uploaded on my GitHub account which you can download it from here.