AR-20ArduinoAdvancedPremium

Lighting 220V Bulb with Button (On-Off)

4.5(33)
44 completed
Lighting 220V Bulb with Button (On-Off)
Want to switch a real household bulb on and off with a tiny button? Each time you press the button, the Arduino flips a relay and the bulb lights up; press again and it goes off. The relay is a go-between that lets the board's weak signal safely switch mains power; always get help from an adult when working with 220 volts.

Source Code

This project also comes with blocks. Like the code, they unlock with Premium. What is block coding?

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions