IoT PinPad Mini-Project
Description
This project is a demonstration using the touch-pad and wifi-chip to simulate a pin-pad being used to unlock an IoT device. For the purposes of this demonstration, the touch-pad will mimic a 10-digit pin-pad, as you would see at a security gate, to unlock an IoT device, which will be simulated by turning on an LED. You will have 10 seconds to enter in the correct 4-digit password (correct password is 4180). If you type in the correct 4-digit pin on the pin-pad, when the time is up, the webpage will confirm that you entered the correct code and "unlock" the LED, by turning it on, as well as displayed "unlocked" on the screen. If an incorrect pin is entered, the webpage will tell you that you were incorrect, and the LED will remain off.
Hook-up Guide
For this demonstration, the Adafruit ESP8266 (wifi chip) and the MPR121 (touch-pad) will be used, as well as one of the built-in LEDs on the mbed. Hook up the parts as follows:
| ESP8266 (wifi chip) | mbed | External 5V DC supply (>= 500mA) |
|---|---|---|
| gnd | gnd | gnd |
| TX | RX - p27 | |
| RX | TX - p28 | |
| V+ | 5VDC |
| mbed | MPR121 (touchpad) | Pullups |
|---|---|---|
| Gnd | Gnd | |
| p9 | SDA | 4.7K |
| p10 | SCL | 4.7K |
| p26 | IRQ | |
| Vout(3.3V) | Vc |
Images
The image below demonstrates the wiring described in the tables above. The orange wires are for the touchpad, the yellow are for the wifi chip, and the green are for the external power source. The 4.7k pull-ups can also be seen between the SDA and SCL pins and Vcc (3.3V).
Video(10%)
In the video below, the serial com port presents a message that reads "Enter your passcode in the next 10 seconds!" Afterwards, I enter a correct passcode on the touchpad (correct passcode is 4180). Afterwards, the LED1 on the mbed is turned on, and when the webpage is refreshed, it displays an "unlocked" message, which confirms that the correct passcode was entered.
In the video below, the serial com port presents a message that reads "Enter your passcode in the next 10 seconds!" Afterwards, I enter an incorrect passcode on the touchpad . Afterwards, the LED1 on the mbed remains off, and when the webpage is refreshed, it displays a "rejected" message, which confirms that the correct passcode was NOT entered.
Code/Libraries (15%)
Import programIoT_PinPad_MiniProject
Use the touchpad to enter a passcode, which is either confirmed or rejected, and is displayed on a webpage.
Authors
Cole Bevis & Brandon Danzig ECE 4180 - Lab 5 - Spring 2016
Please log in to post comments.
