ESP32 - 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||×||ESP-WROOM-32 Dev Module|
|1||×||Micro USB Cable|
|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.
※ NOTE THAT:
Note that this tutorial is incomplete. We will post on our Facebook Page when the tutorial is complete. Like it to get updated.