Fire is a problem that can occur at any time. Delayed intervention in house fires can result in loss of life or material. If fire is not fought seriously, incidents such as house fires can occur and lead to greater losses. This is particularly the case with the increasing number of housing developments in the form of cramped houses, which are more difficult to manage in the event of a fire.
The aim of this project is to develop a prototype that will help homeowners and firefighters quickly detect fires using Hexabitz modules. This fire detection system measures the room temperature and color in a room and then triggers the alarm.
This fire detection system combines a temperature sensor and a color sensor of the Hexabitz module (H0AR9) with an audio speaker of the Hexabitz module (H07R3),and (H01R0) which serve as an alarm transmitters.
1. FTDI USB to UART Serial Cable
2. Temperature, Humidity, Light, Color, Sound and Motion Sensor Hub (H0AR9x):
H0AR9x is sensor hub module with STM32F0 MCU and a variety of sensors:
- Weather: TI HDC1080DMBT digital temperature and relative humidity sensor.
- Light: Broadcom (Avago) APDS-9950 proximity, ambient light and RGB color sensor.
- Sound: Knowles Acoustics SPM1423HM4H-B MEMS microphone.
- Motion: Panasonic EKMC1601111 proximity infrared motion detector (PIR).
Use this module as an indoors weather station, room monitoring node or put on board aerial or ground robotics platform to gather surrounding data. Connect with other Hexabitz modules to log sensor measurements, stream data wirelessly or control external devices based on sensor readings.
3. Audio Amplifier and Speaker Module (H07R3x):
H07R3x is an audio amplifier and speaker module based on ST TS4990 1.2W audio amplifier and STM32F0 MCU. This module features an on-board 8-ohm rectangular CUI speaker and a headphone output jack. Use this module to play sounds and tunes stored in the MCU embedded Flash or streamed from an external hardware/another module via array ports.
4. smart RGB LED module (H01R0x):
H01R0x is a smart RGB LED module based on Cree CLVBA-FKA RGB LED and STM32F0 MCU.
Steps to implement the project
1) Planning the array and assembling the hardware:
First, we prepare the project parts and plan our array design by aligning the two modules side by side. Then we solder the modules together using Hexabitz Fixture.
The topology array is written to the topology.h file, which is located in the user folder. It is the same for the three modules and looks like this:
To begin, we specify the number of modules and then write the topology array.
For more information on how to create a prebuilt array topology file, see the helpful wiki section of the Hexabitz platform.
Then we specify which ports to swap in each module:
2) Writing codes using the STM32CubeIDE software:
After creating the topology for the two modules and setting their configurations, we insert the topology for each module. Then we start writing the main.c program for the Sensor Hub (H0AR9x) module. First, we define the temperature value and color (orange) to be alerted on the audio amplifier and speaker module (H07R3x).
We define "temperaturee" as a float variable and Redd, Greenn, Bluee as uint16_t variables, as follows:
We obtain the temperature sample (in degrees) and the red, green and blue color degree sample with the following API:
Then we check if the color is orange and the temperature exceeds the safe limit. Then we send a message to the audio module to warn the user as follows:
Comments
Please log in or sign up to comment.