Arduino - Button Toggle Relay
In a previous tutorial, We have learned how to turn on the relay if the button is pressed, and turn off relay if the button is released. In this tutorial, We are going to learn how to toggle relay each time button is pressed.
By connecting relay to light bulb, led strip, motor or actuator... We can use the button to toggle light bulb, led strip, motor or actuator...
The tutorial includes two main parts:
- Button toggles relay without debouncing.
- Button toggles relay with debouncing.
|1||×||Arduino UNO or Genuino UNO|
|1||×||USB 2.0 cable type A/B|
|1||×||Warning Light Bright Waterproof|
|1||×||12V Power Adapter|
Image is developed using Fritzing. Click to enlarge image
We are considering to make the video tutorials. If you think the video tutorials are essential, please subscribe to our YouTube channel to give us motivation for making the videos.