IOT Mailbox

Group Members

Christian Harris
Ernest Williams /media/uploads/ewilliams61/20160430_161840.jpg

Project Description

The purpose of this project was to create a system that would allow a user to monitor his mailbox remotely using a webserver created on the device. This website will inform the user when mail has been inserted into the mailbox. Once this happens, the user can have his mail dispensed by entering an unlock code either via bluetooth, or using the touchpad input.

To allow this, the following devices were used:

  • 1 - Adafruit Bluefruit LE UART Friend
  • 1 - MPR121 I2C Capacitive Touch Sensor
  • 1 - mbed LPC1768
  • 1 - Huzzah ESP8266
  • 2 - DAGU Robot Mini DC Gearbox
  • 1 - RC Servo
  • 1 - Pololu TB6612FNG Dual Motor Driver Carrier
  • 1 - Sharp IR Distance Sensor

Wiring Guides

The devices were wired according to the tables below:

Adafruit Bluefruit LE UART Friend

mbedAdafruit BluefruitExternal 5V DC Supplly >= 500 MA
GndGndGnd
p14TXO
p13RXI
VIN5V DC
ncRTS
GndCTS

MPR121 I2C Capacitive Touch Sensor

mbedMPR121Pullup Resistors
GndGnd
p28SDA4.7K
p27SCL4.7K
p26IRQ
Vout(3.3V)VCC

Huzzah ESP8266

mbedHuzzahExternal 5V DC Power Supply >= 500 MA
GndGndGnd
GndGndGnd
V+5V DC
p9RX
p10TX

RC Servo

mbedServoExternal 5V DC Power Supply >= 500 MA
GndBlackGnd
Red5V DC
p24Yellow

Pololu TB6612FNG Dual Motor Driver Carrier

mbedTB6612FNGExternal 5V DC Power Supply >= 500 MADAGU Motor 1DAGU Motor 2
p22PWMA
p6AIN2
p5AIN1
STBY5V DC
p12BIN2
p11BIN1
p21PWMB
GNDGNDGND
VCC5V DC
AO1Red
A02Black
BO2Black
BO1Red
GNDGNDGND
GNDGNDGND

Sharp IR Distance Sensor

mbedSharp IR Distance Sensor
GndBlack
VoutRed
p16White

Code Description

The code below begins by creating a webserver on the Huzzah ESP8266 that allows the mailbox to be monitored in a web browser. The code also sends text via Bluetooth to a UART device connected to the Adafruit Bluefruit that allows the lock to be monitored and unlocked via bluetooth. An IR sensor is mounted above the mail slot to determine when mail has ben placed in the box. Once mail is slid in, the IR sensor's value changes, to show that mail is presented. The webserver is then updated if this is true. 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 servo is turned to unlock the mail door. Following this, the door is opened using a pulley connected to a stepper motor. Finally, the mail is fed out to the user using the mail feed stepper motor. To lock the mailbox, the user pulls the door closed, then enters an incorrect code. 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.