IOT Door Lock

Team

  • Alex Ritchie
  • Bao Bui
  • Erik Lomas
  • Trung Nguyen

Overview

This is an IOT Door Lock for mbed. We allow for multiple ways to lock and unlock the door utilizing Wi-Fi, Bluetooth, IMU, and Fingerprint functionality. Additionally, our project allows for dynamically adding fingerprints for access, and custom knock sequences.

Each mBed LPC1768 has 3 UART serial communication channels, while this project requires a serial communication channel for each of the four necessary peripherals. In order to overcome this, we employ two mBed modules and have them communicate via DigitalOut/DigitalIn mBed APIs.

The first mBed (mBed 1) communicates with the wiFly module and the TTL GT-511C3 to hand the websocket and fingerprint scanner functionality. The code for this mBed is contained in the project IOTLOCK. The second mBed (mBed 2) communicates with the Bluefruit module and the IMU to handle the bluetooth and secret knock functionality. The code for this mBed is contained in the project IOTLOCK2.

Features

  • Lock/Unlock via Bluetooth Phone Application
  • Lock/Unlock via Websocket
  • Lock/Unlock via Fingerprint Scanner
  • Lock/Unlock via Secret Knock Password
  • Add new fingerprints for unlocking
  • Change the lock password

Components

Wiring

mBed 1

mbed 1WiFlyTTL GT-511C3SPDT switchmbed 2
gndgnd
Vout(3.3V)VDD_3V3
p9UART_RX
p10UART_TX
p26GPIO6
p19reset
Vout(3.3V)VCC
gndgnd
p28RX
p27TX
p22pole
Vout (3V)throw1
gndthrow2
p21p8

mBed 2

mBed 2BluefruitIMUServomBed 1
gndgnd
Vu (5V)Vin
p14 (Serial RX)TXO
p13 (Serial TX)RXI
gndCTS
gndgnd
Vout (3.3V)VDD
p9SDA
p10SCL
p21control
p8p21

/media/uploads/aritchie9590/screen_shot_2016-11-29_at_3.41.21_pm.png

Code

Import programIOTLOCK

IOT LOCK 1

Import programIOTLock2

IOT LOCK 2

/media/uploads/aritchie9590/img_4975.jpg


1 comment on IOT Door Lock:

06 Jan 2023 This post is awaiting moderation

hi can u show us the coding?

Please log in to post comments.