Difference between revisions of "S17: Logan"

From Embedded Systems Learning Academy
Jump to: navigation, search
(PIR Motion Sensor)
(PIR Motion Sensor)
Line 220: Line 220:
 
=== PIR Motion Sensor ===  
 
=== PIR Motion Sensor ===  
  
[[File:CMPE244 S17_Logan_PIR_Motion_Sensor_Front.png|left|300px|thumb|PIR Motion Sensor Front]]
+
[[File:CMPE244 S17_Logan_PIR_Motion_Sensor_Front.png|left|350px|thumb|PIR Motion Sensor Front]]
[[File:CMPE244 S17_Logan_PIR_Motion_Sensor_Back.png|center|300px|thumb|PIR Motion Sensor Back]]
+
[[File:CMPE244 S17_Logan_PIR_Motion_Sensor_Back.png|center|350px|thumb|PIR Motion Sensor Back]]
 +
 
  
 
==== Hardware Design ====
 
==== Hardware Design ====

Revision as of 00:12, 20 May 2017

Grading Criteria

  • How well is Software & Hardware Design described?
  • How well can this report be used to reproduce this project?
  • Code Quality
  • Overall Report Quality:
    • Software Block Diagrams
    • Hardware Block Diagrams
      Schematic Quality
    • Quality of technical challenges and solutions adopted.

Project Title

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

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 LCD From Digikey 1 $80
7 [PCB] From PCBWay 5 $13
8 PIR Motion Sensor From Amazon 1 $9.95
9 Relays(4 Channel DC 5v relay) From Amazon 3 $21
10 Text-to-Speech From Amazon 1 $69.45
11 [ Wires] From Amazon 1 $3.95

Design & Implementation

System Block Diagram

System Block Diagram

Printed Circuit Board

Design

Eagle PCB Design Tool

Connector List

PIR Motion Sensor

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

Hardware Design

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

Software Design

LCD

Hardware Design

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

Software Design

Mobile App

Hardware Design

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

Software Design

Nordic Wireless

Hardware Design

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

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


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 have used 12V battery and relays to give sufficient current in order 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