IoT Touchpad Lock
Group Members
Christian Harris
Ernest Williams
Project Description
The purpose of this project was to create a system that would allow users to monitor a locked device using a Bluetooth device. This Bluetooth device will show the last user that unlocked the device, and also allows the user to unlock the device using the Bluetooth device. This device can be physically unlocked using a capacitive touch keypad sensor.
To allow this, the following devices were used:
- Adafruit Bluefruit LE UART Friend
- MPR121 I2C Capacitive Touch Sensor
- Shiftbrite V2.0
- mbed LPC1768
Wiring Guides
The devices were wired according to the tables below:
Adafruit Bluefruit LE UART Friend
mbed | Adafruit Bluefruit | External 5V DC Supplly >= 500 MA | |
Gnd | Gnd | ||
p10 | TXO | ||
p9 | RXI | ||
VIN | 5V DC | ||
nc | RTS | ||
Gnd | CTS |
MPR121 I2C Capacitive Touch Sensor
mbed | MPR121 | Pullup Resistors |
Gnd | Gnd | |
p28 | SDA | 4.7K |
p27 | SCL | 4.7K |
p26 | IRQ | |
Vout(3.3V) | VCC |
Shiftbrite V2.0
mbed | Shiftbrite | External 5V DC Power Supply >= 500 MA |
Gnd | Gnd | |
p11 | DI | |
p15 | LI | |
p16 | EI | |
p13 | CI | |
V+ | 5V DC |
Code Description
The code below begins by sending text via Bluetooth to a UART device connected to the Adafruit Bluefruit that allows the lock to be monitored and unlocked via bluetooth. After this is completed, The touchpad can be used to initiate interrupt routines that save four key presses. These key presses represent the code being entered. Once four keys are pressed. The code is checked against the saved code values. If the code matches, the Shiftbrite becomes green, and information of who unlocked the device is printed to the Bluetooth terminal. If the code is incorrect, the Shiftbrite becomes red. To enter a code via Bluetooth, the user must send the letter 'a'. Once this is sent they are prompted to enter their code. They can enter '1111' at once, or one value at a time.
Import programBluetooth
The purpose of this project was to create a system that would allow users to monitor a locked device using a Bluetooth device. This Bluetooth device will show the last user that unlocked the device, and also allows the user to unlock the device using the Bluetooth device. This device can be physically unlocked using a capacitive touch keypad sensor.
Video Demonstration
Please log in to post comments.