Home

Home Security System

Wade Cole, Ricky Cotton, JT Gabriel, Rob Mastronicola, Kyle Siefring

This page gives a brief overview of a ECE 387 project completed in the Spring 2010 at Miami University.  For more details, click the links on the page or contact us for information.

Overview

          Using the Altera DE2 board we implemented and created a home security system.   Our system has sound and motion detection, 3 different modes, and also is password activated using a keyboard.  The soft processor, NIOS II, made the system possible on the DE2 board.

          The finished product is much different than the one originally proposed.  We cut out the RFID card system, camera, and Ethernet capabilities mostly due to time constraints and limited resources.  We tried to make the project with resources we had access to and not spend much, if any money.  Here is a todo list that we had once we decided that video would not included.  In the end, we did not spend any of our own money but were able to use things we already had access to.  But we did have some cost. Here our some pictures of the different elements of the project.

How it is Works

          The system is simple. When loaded, the LCD screen on the DE2 will display "Welcome! Enter Password:" at this time, using the keyboard attached to the PS/2 port on the DE2 board you can enter a password.  Only the numbers 0-9 on the actual keyboard can be used, not the keypad on the side or any other key can be used. The current password is "1307".  This can be changed in the C code for the password check.  If the password is wrong, the system will continue to look for the correct password.  Each button must be pressed slowly because of the C code.

          Once the correct password is entered, the LCD screen will display "Enter Mode:" there are four different modes you can enter:

 

0.      Alarm Mode – sets off Alarm

1.      Full Mode - both sound and motion detection

2.      Mic Mode - just sound detection

3.      PIR Mode - just motion detection

 

Once a mode is selected, the clock on the system will be implemented to 0 and you will have 15 seconds to leave the area before the alarm is set off.  Once the alarm is set off and it detects a sound and/or motion using the microphone and/or the PIR sensor, an alarm sound will be played over the speakers.  The user has 30 seconds to enter a correct password (1307).  After 30 seconds, the LCD screen will display "CALLING POLICE" and will not exit unless it has a hard reset which can be done by pressing Key[0] on the DE2 board.  If a correct password was entered then the system starts all over. This is how the system flows.

How Everything is Implemented

          The system is implemented on the DE2 board using the soft process NIOS II.  We used the NIOS II/f which is the fastest and maximum performance that can be implemented with the NIOS II.  We did this using the SOPC builder on Quartus 9.1

          The audio codec, LCD screen, and timer were implemented using the Altera University Cores (see below).  The keyboard and PIR sensor are handled in verilog code and using the PIO pins on the DE2 board were implemented using the NIOS processor.  More details about all of this can be found by clicking the links.

How Much It Cost

          We tried to keep the project at a very minimum cost.  We did not want to spend any of our own money.  We used resources available to us.  We received our PIR sensor from Mr. Jeff Peterson of the ECE department.  Ricky provided the speakers.  Wade provided the microphone.  The keyboard was a resource provided in the lab as was the DE2 Board.  For more details on the actual cost of all of these items, click here.

Altera University Cores

          We were able to us Altera's University Cores for this project.  These cores allowed for us to be able to implement the audio codec, LCD screen, and the timer. The cores have documentation and they are implemented into the NIOS II using the SOPC builder. Each core comes with its very own unique problems that we had to sort out.

Problems

          During the project, we ran into many problems.  We had problems with the audio codec and the keyboard and the PIR sensor and final implementation.  Each problem took some time to fix but we overcame most of them.  A few of the problems set us back enough to cut things from the final project.

Timeline

          We worked on the project from late January 2010 to late April 2010. We had a deadline of April 27, 2010. A timeline can be found here.

Finished Product

          Click here for a picture of the finished product.

References