Close

Software And UI

A project log for Smart Lock

Keyless entry system compatible with European door locks

yiit-topcuYiğit Topcu 05/29/2016 at 22:270 Comments

After I've destroyed the most expensive part of my project, which was the servo, I've decided not to run any tests before I finish building the software. I use Visual Micro on Visual Studio as the development environment with Arduino IDE on ESP8266. You can find all the code in my GitHub repository.

Double Current Threshold Algorithm

When I was testing the current sensor, I've realized that there were two different thresholds. When the lock cylinder reaches at the end of mechanism, servo forces to stop and draws much more current compared to the current drawn during locking or unlocking the door. I found out that I can use the second high threshold value to determine the locks last state. And also lock will fix it's last state automatically.


User Interface

I've built a responsive HTML page as the user interface of the device. Browser connects to the web socket service which is hosted on the ESP8266. Than I've built a small hosted web app for my android device.

And also, I have added a pattern lock for providing built-in security. Pattern generates a password and app uses this password to authenticate with the web socket service.

Discussions