SMART Fire Alarm System
August 2024
About this project
This project was made for my Introduction to Engineering Design course. We designed an IoT device focused on accessibility and more functionality than a standard smoke detector. This included putting multiple different types of sensors in the main unit to raise the accuracy of fire detection, as well as an integrated mobile app to interface with the alarm. I was responsible for developing the system to process and communicate data between the main unit and the Cloud.

The Raspberry Pi 3B+ was used as the main processing unit for all the communication on the actual device. Not only would the Raspberry Pi receive data and send it to the Cloud but was also responsible for communicating with a remote vibrational alarm. This alarm would be placed near a user's bed to wake them up in case they were deaf and could not hear the main device's speaker. It was connected to an ESP32 development board in order to communicate with the Raspberry Pi over WiFi.
The ESP32 communicated with the Raspberry Pi using MQTT. The broker would run on the Raspberry Pi, and the ESP32 would then connect to the broker upon start up. Then, when the Raspberry Pi publishes the ON message to the broker, the ESP32 will then run for a few seconds.



On the left is the terminal output of the Raspberry Pi. Upon detection of a fire, all alarms will turn on, and the three sensor data values will be sent to the Cloud, as well as turning on the vibrational alarm. On the right is the terminal output of the ESP32. When WiFi is connected, it will constantly attempt to connect to the IP Address of the Raspberry Pi. Once connected, it will run once receiving the ON message.