Home Alarm Project

A RPi Home Alarm
Written in C
Team of 2
Source on GitHub

Description and Responsibility

This project's goal was to create a home alarm system using a Raspberry Pi and our own custom circuit. The project called for reading data from a few analog sensors (thermistor and light dependent resister) and activating a buzzer when specific cutoff values were exceeded. Responsibility was not split and all development was done as a pair.

Design Process

To begin the project, we worked to read values directly from the ADC. Since the ADC used the SPI protocol, we first did some research into how to utilize it. Once we understood the protocol, we wrote a test program to read data from the ADC which was reading data from a potentiometer.

Once we verified that the interface between the ADC and the RPi was good, we moved to expand the code to support one sensor. We initially hard coded the cut-off value for the sensor to ease development. Once we confirmed that the first sensor was working, we added functionality for the system to automatically detect a cutoff depending on the current temperature it senses at start up.

After this initial system was working, we added in the second sensor and the buzzer to complete the full alarm.