Fire Detection Using Raspberry Pi and Hexabitz Modules

by Aula Jazmati in Circuits > Raspberry Pi

530 Views, 3 Favorites, 0 Comments

Fire Detection Using Raspberry Pi and Hexabitz Modules

tfghdfr.png

Hello!! In this project, I will be teaching you how to make a fire alarm using a Raspberry Pi and Hexabitz module.
This fire alarm will sense and notify you if there is a fire with warning messages and I will developing it to be an IoT system.

Supplies

Hardware Design and Implementation

tfghdfr.png
h01r00-photo-top.jpg
h07r30_ruler.jpg
Keyes-Flame-Sensor-Module.jpg
03-vb22 ‫‬p1-How to Connect to a Raspberry Pi.png
04-vb22 ‫‬p1.png
16-vb22 ‫‬p1 ‫‬.png
17-vb22 ‫‬p1 ‫‬.png
06-vb22 ‫‬p2.png
18-vb22 ‫‬p1 ‫‬.png
19-vb22 ‫‬p1 ‫‬.png
20-vb22 ‫‬p1 ‫‬.png

RGB LED (H01R0x)
H01R0x is a smart RGB LED module based on Cree CLVBA-FKA RGB LED and STM32F0 MCU.

Audio Speaker and Headphone Jack (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.

Flame Sensor:

The flame sensor is very sensitive to IR wavelength at 760 nm ~ 1100 nm light.

Analog output (A0): Real-time output voltage signal on the thermal resistance.

Digital output (D0): When the temperature reaches a certain threshold, the output high and low signal threshold adjustable via potentiometer.

Pins:

VCC...... Positive voltage

input: 5v for analog 3.3v for Digital.

A0.......... Analog output

D0......... Digital output

GND..... Ground

Raspberry Pi Interface (HF1R0x)

HF1R0x is Hexabitz Raspberry Pi interface module. It interfaces seamlessly to Raspberry Pi 3B/4B single-board computers and enables you to connect and control your favorite Hexabitz modules from the Raspberry Pi operating system and build your own Raspberry Pi Hat.

This is the world’s first build-your-own-Pi-Hat system!

Use C++ Hexabitz Interface library on Raspbian, Ubuntu or other compatible Linux distributions from within your C++ or Python applications.

Software Design

02-vb22 ‫‬p2.png
05-vb22 ‫‬p2.png
07-vb22 ‫‬p2.png
08-vb22 ‫‬p2-How to Connect to a Raspberry Pi.png
09-vb22 ‫‬p2-How to Connect to a Raspberry Pi.png
10-vb22 ‫‬p2-How to Connect to a Raspberry Pi.png
06-vb22 p3.png
07-vb22 p3.png
08-vb22 p3.png
09-vb22 p3.png
2021-02-28-223627_576x416_scrot.png
2021-02-28-223638_576x416_scrot.png
2021-02-28-223644_576x416_scrot.png
2021-02-28-223656_576x416_scrot.png
2021-02-28-223712_576x416_scrot.png
2021-02-28-224153_576x416_scrot.png

The Raspberry Pi Interface (HF1R0x) can be automatically identified and setup when the Linux system boots up.

Take your Hexabitz array and HF1R0 module then solder them together.

You have Jumper JP1 and JP2 at position 1 & 2 when your Hexabitz array is soldered at the right-side of HF1R0

You have Jumper JP1 and JP2 at position 2 & 3 when your Hexabitz array is soldered at the left-side of HF1R0 as shown in the pictures.

  • Github firmware repositories can be accessed from HF1R0 page >> Resources tab.
  • Your application code should be mainly written in Demo folder for easy portability to future revisions.

You can modify this cpp file or create new one for your own code custom needs and requirements.

Notes:

Be sure to download the firmware on each module before soldering.

https://hexabitz.com/docs/how-to/update-module-fir...

Installing operating system -Raspbian Buster with desktop and recommended software-image and Writing an image to the SD card

https://www.raspberrypi.org/documentation/installa...

You can use a Geany to modify the codes. Geany is a powerful, stable and lightweight programmer's text editor that provides tons of useful features.

Add your one-time initialization code before the main.

Add your Messages inside the main and Initialize the input(flame sensor)

WiringPi is developed directly on a Raspberry Pi running 32-bit Raspbian.

http://wiringpi.com

How to setup Hexabitz Raspberry Pi 3 Interface Module Firmware for the first time?

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install build-essential

sudo apt-get install cmake

cd ~

git clone https://github.com/HexabitzPlatform/HF1R0x-Firmwa...

cd HF1R0x-Firmware

git checkout master

rm -rf build

mkdir build

cd build

cmake ..

How to compile the repository

make

How to run the executable

./hexabitz-demo

This project is under development


Test the System

Fire Detection Using Raspberry Pi
IMG_20210124_002658.jpg
IMG_20210124_002416.jpg
IMG_20210124_002855.jpg
IMG_20210124_002418.jpg

Test the system 🔥 🚒🧯