ESP8266 - Button Control Electromagnetic Lock
The tutorial instructs you how to use an ESP8266 and a button to control an electromagnetic lock. When the button is pressed, ESP8266 unlock the door for a period of time (e.g. 10 seconds). After that, the door will be locked again.
We will go from easy to difficult by two steps:
- ESP8266 controls the electromagnetic lock by a button without debouncing (easy).
- ESP8266 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
See more in ESP8266's pinout and how to supply power to the ESP8266 and other components.