First showing how it works and latter i will share my code.
Esp8266 door lock.
This is the video that demonstrate how we made an iot based rfid smart door lock system using nodemcu esp8266 board.
Then you should set usb to ttl converter as uploader hardware.
This video shows esp8266 door lock this time i have used arduino environment which is much better to my opinion than lua.
Iot door lock using esp8266 2 5 2018 by viktor silivanov controls a servo to press intercom button when specific url is accessed on a local network.
Modify network credential variable with your own.
It s ready to upload.
Conclusion finally we have successfully made an iot based rfid smart door lock system using nodemcu esp8266 rfid mf rc522 servo motor a buzzer and two leds.
Select generic esp8266 module and copy the code in a new sketch.
Wemos d1 mini v2 has an esp8266 wireless chip built in or just an esp8266 chip should do i do not recommend the esp 01 version for this project as the gpio 0 pin needs to be held high on power up in order for it to boot from flash however doing this will cause the door lock to trigger when the esp8266 powers up potentially unlocking your.
Just plug the converter in and set the right port in tools port.