Hardware and software requirements
For this project, you will of course need an ESP8266 chip. As for most of this book, I used the Adafruit Huzzah ESP8266 module, but any ESP8266 module will work fine here.
For the lock, I used a 12V DC solenoid-based door lock. You can, of course, use any other equivalent lock on the market. You will need a few components to use the lock: an NPN transistor, a protection diode, and a 1K Ohm resistor. I included the reference for all those components in this section. You will also need a 12V DC power supply that you can connect to a breadboard.
This is a picture of the lock that I will be using for this project:
You will also need a 3.3V/5V FTDI USB module to program the ESP8266 chip.
Finally, you will also need some jumper wires and a breadboard.
This is a list of all the components that will be used in this chapter:
Adafruit ES8266 module (https://www.adafruit.com/products/2471)
FTDI USB module (https://www.adafruit.com/products/284)
Lock Style Solenoid (https...