1. Circuit diagram

2. Parts we need in the project

3. Screenshot of some steps

4. Finished and test

Product list:

ATmega328   https://www.utsource.net/itm/p/6464451.html

Bluetooth module hc-05   https://www.utsource.net/itm/p/8028175.html

Relay SRD-05VDC   https://www.utsource.net/itm/p/8404773.html

16.000MHz 16M Quartz Crystal  https://www.utsource.net/itm/p/6492587.html

More details, plc check here on Youtube: