410 likes | 882 Vues
Raspberry Pi Home Security System. UNIVERSITY OF ALASKA ANCHORAGE COMPUTER SCIENCE AND ENGINEERING. Prepared By: Gabriel Antonio Pérez Cortés 15 April 2015 Supervisor: Dr. Kirk Scott. Introduction.
E N D
Raspberry Pi Home Security System UNIVERSITY OF ALASKA ANCHORAGE COMPUTER SCIENCE AND ENGINEERING Prepared By: Gabriel Antonio Pérez Cortés 15 April 2015 Supervisor: Dr. Kirk Scott
Introduction This Capstone Project is based on making a Raspberry Pi (Version 2Model B) function as a typical home security system with the use of simple radio frequency transmitters along with a touchscreen displaying the graphical interface for the needed interactions.
Motivation Home break-ins are typical back home To applycomputerscienceskillslearned in and outside UAA Expandmyknowledge of theRaspberry Pi and external hardware A neatproject
Required Raspberry Pi 2 433 MHz receiver and transmitters PiTFT 3.5” touchscreen *nixknowledge Patience Attention to detail
Overview Boot Raspbian Program autostarts in an armed state Graphical User Interface waits for input Scan Radio Frequency (RF) Transmitter IDs Trip the alarm on RF Transmitter ID time threshold violation
Project Development Agile Methodology Use of design patterns (thanks Dr. Scott) Development with Qt4 toolkit and Qt Creator Use of Cascading Style Sheets (CSS) for GUI Dropbox for temporary backups Github for commits
Choices C++ and not Python due to some libraries written in C Qt4 vs Qt5 and GTK+ mainly due to preference Discarded the idea of using an Arduino Mini
Bumps Problems with a certain version of Arduino IDE ATtiny85 oscillator speeds Time to learn some particularities of C++ Brush up on electronics Some hardware out of stock
Setup Short Story Program an Arduino as programmer Program an ATtiny85 (or many with distinct IDs) with the Arduino Image Raspbian to an SD card Get the tools needed to compile and run the program Compile the program Get a cup of tea or coffee Setup an autostart script Plug in hardware Program the Linux kernel to support the touchscreen Profit
Moments of Success Raspberry Pi 2 released early in the semester System working at the end of spring break Now
Future Additions Logging Zone Identification Settings Panel
Learning Experience Arduinos and Microcontrollers Hardware with Raspberry Pi More C/C++ Qt4 Toolkit Some WebSocket stuff
Conclusion This was a fun project to create which took plenty of time and effort. Even though it is still basic, it is yet rewarding to have up and running as it required many skills that I learned at during my time as a Computer Science major among others that I had to learn on the way to be applied due to all the different components this system required.