Note: This project, by its nature, needs to connect to the mains supply. It shouldn’t be left unattended and should only be constructed and used by engineers. The information is for educational purposes only, and there is no guarantee that it will be…