S17: Logan

From Embedded Systems Learning Academy
Revision as of 02:23, 22 May 2017 by Proj user3 (talk | contribs)

Jump to: navigation, search

Logan The Smart Lock

Abstract

A staggering 1.4 billion smartphones were sold in 2015. An average consumer checks his or her smartphone 46 times a day, and in the US, people do this a collective 8 billion times every 24 hours. Most people at some point lose or forget to bring their key. Our Smart Home Lock system provides an alternate convenient way of access control on a user's smart phone. Smart Home Lock can simplify life and increase home security. Smart Home Lock provides a mechanism to lock and unlock your door with your Smart Phone, using Bluetooth communication with password protection. The door locks/unlocks automatically when the correct password is entered on the Mobile App and the motion sensor senses the motion when a person approaching from the inside towards the exit in order to lock the door to provide security. We are using Nordic Wireless communication to access multiple locks in this project. Another additional feature in the project is interfacing the Text-to-Speech in order to inform/guide the users at every step.

Objectives & Introduction

  • Locking/Unlocking of the Electric Door Strike using a Mobile App over Bluetooth
  • Design of Printed Circuit Board (PCB) to simplify the hardware system design
  • Combination of PIR Motion sensor and Mobile App to increase security
  • Accessing the doors using the Nordic Wireless
  • Text-to-Speech to guide the User at every step

Team Members

Roles & Responsibilities

  • Harsha Gorantla
    • Text-to-Speech Module, PCB Design and Complete System Algorithm
  • Krishank Mehta
    • Hardware Design and assembling, Software Flow, PCB design, PIR sensor and Door Strike
  • Prashant Aithal
    • Mobile App, PCB Deisgn and Nordic Wireless Communication
  • Shruthi Narayan
    • LCD, PCB design, Bluetooth and Testing

Schedule

Show a simple table or figures that show your scheduled as planned before you started working on the project. Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals. The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.

Sl. No Start Date End Date Task Status Actual Completion Date
1 03/21/2017 03/28/2017 Project proposal submitted Completed 03/21/2017
2 03/28/2017 04/04/2017 Research on the whole system flow and deciding on components
Assign individual task
Order the components
Completed 04/04/2017
3 04/04/2017 04/11/2017 Implementation of the PIR sensor with the SJ one board
Initial circuit design of PCB
Completed 04/11/2017
4 04/11/2017 04/18/2017 Integration and testing of Electric Door strike functionality
Design of PCB for bluetooth, PIR sensor, LCD, SJOne, door-strike related pins on the PCB
Completed 04/18/2017
5 04/18/2017 04/25/2017 Integration of door strike with PIR sensor
Interface Bluetooth module with SJOne board
Design of the Android Mobile app.
Completed 04/25/2017
6 04/25/2017 05/02/2017 Verify communication between Bluetooth module and Android app
Extending the functionality to multiple locks using Nordic Wireless.
Completed 05/02/2017
7 05/02/2017 05/07/2017 Integration of Text-to-Speech module
Individual system testing.
Completed 05/07/2017
8 05/07/2017 05/14/2017 Integration of the whole system
Debugging and testing of the whole system.
Completed 05/14/2017
9 05/14/2017 05/21/2017 Final testing and fine tuning
Report preparation.
In Progress 05/21/2017

Parts List & Cost

Item# Part Description Vendor Qty Cost
1 SJ One Board (LPC 1758) From Preet 3 $240
2 Battery From Amazon 1 $31.57
3 Battery Charger From Amazon 1 $17.50
4 Bluetooth Module From Sparkfun 1 $24.95
5 Electric Door Strike From Amazon 3 $72
6 [PCB] From PCBWay 5 $13
7 PIR Motion Sensor From Amazon 1 $9.95
8 Relays(1 Channel DC 5v relay) From Amazon 5 $16.50
9 Text-to-Speech From Amazon 1 $69.45
10 [ Wires] From Amazon 1 $3.95

Design & Implementation

System Block Diagram

System Block Diagram

Printed Circuit Board

Design

We have designed a 3.56 X 3.16 Inch Printed Circuit Board (PCB) to interface our Text-to-Speech, PIR Sensor and Electric Door Strike. It is worth designing the PCB as it reduced the hardware complexity and saved lot of wires.


PCB Design

Eagle PCB Design Tool

PCB Schematic


We have ordered the PCB boards from PCBWay. It took 2 weeks to receive the boards. The actual PCB Boards snapshots are given below:


PCB Front
PCB Back


Connector List

PIR Motion Sensor

PIR (Passive Infrared )Motion sensor is an inexpensive, small sensor used to detect the human motion. The sensitivity or the range of the PIR sensor is 6 meters(or 20 feet) and works on a 5v input power supply.


PIR Motion Sensor Front
PIR Motion Sensor Back



Hardware Design

Discuss your hardware design here. Show detailed schematics, and the interface here.

Software Design

Electric Door Strike

We have used a 1-Channel relay to control the Electric Door Strike from GPIO.

Hardware Design

Electric Door Strike


Software Design

Mobile App

Hardware Design

Discuss your hardware design here. Show detailed schematics, and the interface here.

Software Design

Nordic Wireless

We have used Nordic Wireless communication to unlock/lock the Door 1 and Door 2 from the Main Door.

Hardware Design

Nordic Wireless

Software Design

Text-to-Speech

Emic 2 Text-to-Speech module converts the digital text to natural sounding speech. It uses UART to communication with the SJOne board. The Text-to-Speech (TTS) module is connected to the UART2 on the SJOne board. We can pick any voice from the 9 different voices and the volume can also be changed using the various commands. The in-built 3.5mm jack is used to connect the TTS to any speaker/earphones.

The key features are mentioned below:

  • High-quality speech synthesis for English and Spanish languages
  • Nine pre-defined voice styles comprising male, female, and child
  • Dynamic control of speech and voice characteristics, including pitch, speaking rate, and word emphasis
  • Industry-standard DECtalk text-to-speech synthesizer engine (5.0.E1)

Hardware Design

Text to speech Front
Text to speech Circuit
Text to speech Back


Text to speech schematic

Software Design

Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedo-code and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.

Testing & Technical Challenges

Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.

Include sub-sections that list out a problem and solution, such as:

Issue #1

The current was not enough from the SJOne board to unlock the Electric Door Strike. We initially decided to use a N-MOSFET as a switch to control the Electric Door Strike from GPIO pin but the N-MPSFET can only be switched on with 4V where the output from SJOne board is 3.3V. So, We have used 1-Chanel relay to enable the circuit.

Issue #2

Bluetooth Issue


Conclusion

This project was so much fun to work on. The project has increased our knowledge in both hardware and software know-how. We have interfaced PIR sensor, Text-to-Speech module and designed a mobile application to communicate over bluetooth. We got hands-on experience with the UART and Wireless communication. This project has provided an opportunity to delegate and work in a team. We defined our own objectives, overcame the challenges and successfully completed the project.

Project Video

Upload a video of your project and post the link here.

Project Source Code

References

Acknowledgement

We would like to thank Preet for the guidance and the support. The learnings in the class has helped us in the successful implementation of this project.

References Used