Arduino Nano - Button Control Electromagnetic Lock
The tutorial instructs you how to use Arduino Nano and button to control the door lock by using an electromagnetic lock. When the button is pressed, the door will be unlocked for a specific time (e.g. 10 seconds). After that, it will be locked again.
We will progress by two steps from easy to difficult:
- Arduino Nano controls the electromagnetic lock by a button without debouncing (easy).
- Arduino Nano controls the electromagnetic lock by a button with debouncing (difficult).
Or you can buy the following sensor kit:
|DIYables Sensor Kit 30 types, 69 units
This image is created using Fritzing. Click to enlarge image