Smart Home Fire Detector Iot Project

About the project

This is a Smart Home Fire Detector IoT project that sends temperature and air quality index to AWS IoT Core every 60 seconds. The IoT Core writes this data to Amazon Timestream. If the temperature is above 35 degrees and AQI is more than 200, it triggers the alarm.

Project info

Items used in this project

Hardware components

Power transformer, chassis mount, 24VA, 24V @ 1A or 12V @ 2A Power transformer, chassis mount, 24VA, 24V @ 1A or 12V @ 2A x 1
12V 1A Fixed Voltage Regulator 12V 1A Fixed Voltage Regulator x 1
5V 1A Fixed Voltage Regulator 5V 1A Fixed Voltage Regulator x 1
3,3V 500mA Fixed Voltage Regulator 3,3V 500mA Fixed Voltage Regulator x 1
1N4007 Diodes 1N4007 Diodes x 13
1n4148 Signal Diode 1n4148 Signal Diode x 1
2N2222A NPN Transistor 2N2222A NPN Transistor x 1
5mm Red LED 5mm Red LED x 2
100uf 16v Electrolytic Capacitors 100uf 16v Electrolytic Capacitors x 4
680uf 35 Electrolytic Capacitor 680uf 35 Electrolytic Capacitor x 1
Resistor 1k Ohm 1/4 Watt Resistor 1k Ohm 1/4 Watt x 2
100 Ohm Resistor 1/4 Watt 100 Ohm Resistor 1/4 Watt x 1
2 Way Terminal Block 2 Way Terminal Block x 1
4 Way Header Male 4 Way Header Male x 1
USB Female Type B Connector USB Female Type B Connector x 1
3-pin Plug 3-pin Plug x 1
100mA Fast Blow Fuse 100mA Fast Blow Fuse x 1
12V 20W Siren Horn 12V 20W Siren Horn x 1
4cm x 5cm Strip Board 4cm x 5cm Strip Board x 1
4.5 Hex 5.0mm Spacers 4.5 Hex 5.0mm Spacers x 6
Sensor Tool W nRF52840 & nRF9160 Sensor Tool W nRF52840 & nRF9160 x 1
Pos Adj Reg; 3-Term Dual Gauge Heat Sink Pos Adj Reg; 3-Term Dual Gauge Heat Sink x 3
USB Cable A/MicroB - 3ft USB Cable A/MicroB - 3ft x 1
DC12V 10A/125VAC,28VDC Relay DC12V 10A/125VAC,28VDC Relay x 1

View all

Software apps and online services

SEGGER Embedded Studio SEGGER Embedded Studio
Zephyr RTOS Zephyr RTOS
Amazon Web Services (AWS) Amazon Web Services (AWS)

Hand tools and fabrication machines

230VAC 30W Soldering Iron 230VAC 30W Soldering Iron x 1
Long Nose Long Nose x 1
Side Cutter Side Cutter x 1
8 Core Wire x 30cm 8 Core Wire x 30cm x 1
Star Screw Driver Star Screw Driver x 1
60mm x 50mm Plastic Base 60mm x 50mm Plastic Base x 1
Battery Powered Drill Battery Powered Drill x 1

Story

Even though the number of deaths due to house fires has decreased drastically worldwide, damage to property is of concern. A Smart Home Fire Detector IoT project is an IoT device that sends telemetry data to Amazon Web Services (AWS) IoT Core service. It sends temperature and air quality index every 60 seconds. The AWS IoT Core service writes this data to Amazon Timestream Database Table. If the temperature rises above 35 degrees Celsius and the air quality index is more than 200, the Nordic Thingy:91 triggers the alarm and AWS IoT Core service sends a message to AWS Simple Notification Service (SNS) topic. The AWS SNS then sends an SMS and email to the homeowners informing them of the situation in their homes. The collected data is analyzed and visualized using AWS QuickInsights. 



How it works

Hardware Components

The heart of this IoT project is the NordicThingy:91 Cellular IoT Prototyping Plartform. It has the following four main hardware components:

Nordic Thingy:91


Zephyr RTOS is the Real-Time Operating System that runs on the nRF9160 (System in Package). This is an Open Source Linux RTOS that is specifically aimed at memory-constrained IoT devices. 

Power Supply + Siren Controller


12V 1A Transformer


12V 20W Siren Horn


It uses this siren to alert the people in the house that the environmental condition is unhealthy and hazardous and that they attend to the house and see what's wrong.

Software and online services

The nRF Connect SDK comes bundled with apps that are used to write, build and flash the Thingy:91. In my case, I used SEGGER Embedded Studio to write and compile the application code. I used the nRF Connect Programmer app to flash the board and the nRF Connect LTE Link Monitor as a Console Logs.

nRF Connect Desktop


SEGGER Embedded Studio app


Programmer app


LTE Link Monitor app


AWS IoT Core


The Smart Home Fire Detector IoT project sends temperature and air quality index to this AWS service.

Amazon Timestream


The AWS IoT Core writes telemetry data to this Amazo Timestream Database every 60 seconds.




Schematics, diagrams and documents

Code

main.c

Credits

Leave your feedback...