Disclaimer
ElectroDai tutorials are educational. Check the circuit diagram, component ratings and your wiring before applying power. For beginner projects, work only with low-voltage circuits powered by an isolated, current-limited supply or suitable batteries. Disconnect power before changing wiring.
Mains voltage can cause fatal electric shock or fire. Leave mains wiring, mains-powered equipment repairs and other hazardous electrical work to qualified people. Stop and seek qualified help if you are unsure whether a circuit is safe.