Arduino - Button Control Electromagnetic Lock
In this tutorial, we are going to learn how to use Arduino and button to control the electromagnetic lock. When the button is pressed, Arduino deactivates the electromagnetic lock to unlock the door for a certain time (e.g. 10 seconds). After that, it Arduino activates the electromagnetic lock to lock the door.
We will learn by two steps from easy to difficult:
- The electromagnetic lock is controlled by Arduino and a button without debouncing (easy).
- The electromagnetic lock is controlled by Arduino and a button with debouncing (difficult).
Or you can buy the following sensor kit:
|1||×||DIYables Sensor Kit 30 types, 69 units|
This image is created 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.