• 1
    Step 1. Part list

    1. Node MCU Ver 0.9

    2. Solenoid lock

    3. H-bridge

  • 2
    Step 2. Code work

    Code for download
    https://bit.ly/3ylwNE9

  • 3
    Step 3. Test run

    After compile and download the code, ESP8266 will be a Wifi station (Access Point).

    Now you can use smart phone to connect to wifi station named Engineer2you-Home with password is "123456789" (Of-course you can edit the name and password in Arduino code)

    After connection successful, go to web browser on phone and type address 72.72.72.72 (again, you can also edit this address in Arduino code). The web screen of lock status will appeared!

    Press "door button" |]||[ : if lock is opened, it will close the lock (without password)

    Input password to open the lock: password is "123456", ofcourse you can change this password in Arduino code. If wrong password, you can not open the lock.