Skip to content

Knoz9/IoT-pincode-doorlock

Repository files navigation


Pincode Door Lock

Members: Kenan Maslan, Nour Mazoukh, Ludvig Svensson, Moayad Saleh
Program: Computer Science
Course: Introducing project (1DT308)
Date of submission:

Abstract

This project aimed to create a code lock that can be controlled online through mqtt / wifi. The code lock has a 4 segment display that shows - - - - when entering numbers, it shows *ERROR* when you enter the wrong code, it shows *WELL* (for welcome) when entering the correct code. It also shows *ERR* If something goes wrong (that the lock, for example, crashes) so that you can get the lock fixed. Key is ALWAYS an option. Because we did not have time to design a lock, we demonstrate the prototype by showing that it works when it shows *WELL* / *ERR*

We have changed our mind and opted for LCD display, because its bigger, and uses less pins..

Each Error Code and the correct code must be published on a mqtt server. The purpose of this is that we will have an app called mqtt client for android / iphone, which can communicate with the lock.

We will also implement a http version of this. Both versions will be available, since we cant decide which one is better..

A temporary code can be given via the app that is either onetime use, or a code that expires after a certain time. The purpose of this is to be able to give guests the "key" but not give them the master code, because the master code is the one the owner remembers and that works forever.

Through mqtt you are able to (Private Use):

See all attempts
Enter a guest code
Change the Master Code (in case you forget it).

Through http you are able to (Business Use):

See all attempts
Create unique users that have their own password for login
Master code, along with other codes, are instead changed on an hourly basis automatically, this is a solution that makes the lock way more secure, which is the aim for most business applications.

Background and idea

Kenan had the idea to create a passcode lock, and the reason to choose this was to introduce a fun and challenging project, since it revolves around hardware, software but also servers and connections. One important focus we had is security, since the lock needs to securely lock a door. It also needs to be convenient to use, so to find the balance between security and confort. Our hopes is to have a lock that works well, is practical, but also secure.

Method

Hardware

Requirements

Server

Setup

Timelog

Test

Results

Finished product inside of its box (Online mode, no offline displayed):


Example of device displaying cooldown (Due to too many attempts):


Example of device displaying OFFLINE mode:


Successful Passcode Input:


Connection Screen (To Wifi):


Screen with some digits inputted (Also, in offline state):


Example of editing device on website (pinlock.nor.nu):


The logic flow:


About

Pincode doorlock using LoPy4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published