- ESP8266 Compatible board
- Recommended LoLin NodeMCU
- Servo Mortor
- Recommended SG-90/SG-92R
- LED
- Node.js
- Maybe worked on > v11 (developed by v12.14.1)
- Open Port TCP/UDP 9100, 9101
- Joint parts to
Servo - Door Lock
- Use 3D Printer is best.
- Finally, no problem if Servo Mortor can turn to the lock
- Some Parts to Secure Servo Mortor to door
- same too
.
├── arduino : arduino source code
│ ├── example : demo source code
│ └── smartlock : product code
└── server : device management, web api server
- Clone this git repository.
- Open your terminal and cd server folder
- Run
npm i
- Run
npm start
- Open arduino/smartlock/smartlock.ino
- Write following property
line6: ssid
: Your Wifi SSID(2.4Ghz only)line7: password
: Your Wifi passwordline8: mqtt_server
: Your server IP address fromSetup: 2. server
- and if you required, You can change property
line11: SERVO_PIN
: GPIO PIN Number of connected Servo Mortorline12: LED_PIN
: GPIO PIN Number of connected LED
- Write sketch to your ESP8266.
- Secure Hadware assembly to door