Ramesh
Published © GPL3+

Arduino Based Fire alarm using dot matrix display

In this article we interface Flame Sensor with Arduino and learn all the steps to build Fire Alarm System by using Arduino, flame sensor and

IntermediateFull instructions provided3 hours461
Arduino Based Fire alarm using dot matrix display

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LED Dot Matrix Display, Red
LED Dot Matrix Display, Red
×1
Gravity: Analog Flame Sensor For Arduino
DFRobot Gravity: Analog Flame Sensor For Arduino
×1

Hand tools and fabrication machines

10 Pc. Jumper Wire Kit, 5 cm Long
10 Pc. Jumper Wire Kit, 5 cm Long
Breadboard, 170 Pin
Breadboard, 170 Pin

Story

Read more

Schematics

Arduino Based Fire alarm using dot matrix display

Circuit diagram

Code

Untitled file

Arduino
#include <LedControl.h>   


const int numDevices = 1;      // number of MAX7219s used in this case 2

const long scrollDelay = 120;   // adjust scrolling speed

unsigned long bufferLong [14] = {0};  

LedControl lc=LedControl(12,11,10,numDevices);//DATA | CLK | CS/LOAD | number of matrices

const unsigned char scrollText[] PROGMEM ={"NO FIRE"};


const int buzzerPin = 8;

const int flamePin = 9;

int Flame = HIGH;



int theHeightTarget[8];

int theHeightCurrent[8];


int fireHeight = 0;

int sparkX = 0;

Credits

Ramesh
15 projects • 19 followers

Comments