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.
Supplieshttps://hexabitz.com/product/raspberry-pi-interfac...
https://hexabitz.com/product/rgb-led-h01r0x/
https://hexabitz.com/product/audio-speaker-and-hea...
https://hexabitz.com/product-category/accy/
https://www.adafruit.com/product/3775
https://www.4atoms.com/product/keyes-flame-sensor-...
Step 1: Hardware Design and ImplementationRGB 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.
Step 2: Software DesignThe 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.
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
Step 3: Test the SystemTest the system π₯ ππ§―
Comments