Skip to content

Internet controlled lock example using NodeMCU and MQTT protocol

License

Notifications You must be signed in to change notification settings

aharshac/smart-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Lock

Collaborizm

Internet controlled lock example using NodeMCU and MQTT protocol.

Demo control panel is hosted on Firebase at https://smart-lock-hca.firebaseapp.com

 

MQTT Broker

We're using CloudMQTT, but feel free to choose your provider.
Then update auth details in nodemcu_lock/nodemcu_lock.ino and web-panel/src/script.js

 

NodeMCU

  1. Install NodeMCU board in Arduino IDE.
    https://www.marginallyclever.com/2017/02/setup-nodemcu-drivers-arduino-ide/

  2. Open nodemcu_lock/nodemcu_lock.ino in Arduino IDE.

  3. Install the following libraries.
    Sketch -> Include library -> Manage libraries.

  4. Choose NodeMCU (probably 1.0 ESP-12E Module) in Tools -> Board

  5. Compile and upload.

 

Web Control Panel

For testing, Node.js and NPM are required.
Files are statically served using the serve package.

Installation

cd web-panel
npm install

Start test server

npm test

 

Acknowledgement

Claran Martis -- idea and inspiration

About

Internet controlled lock example using NodeMCU and MQTT protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published