5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



ARDUBLOCK Project 17: Flame Alarm Module

Posted by Fiona Su on

Introduction:
Infrared ray is very sensitive to flame, which is the feature of flame sensor. It utilizes specific infrared receive tube to detect flame, and then converts the brightness into changed level signal.
In this project, we use graphical programming and flame sensor to control the ringing and stop of a buzzer.
Materials Required:

  • 1. KEYESTUDIO UNO Control Board *1
  • 2. V5 Sensor Shield*1
  • 3. Flame Sensor*1
  • 4. Active Buzzer*1
  • 5. Female to Female Dupont Line*3

Connection Diagram:

thumb

 

thumb

After wiring, we can start programming.

thumb

Click “download to Arduino” to see the following codes in IDE interface:
Sample Code:

*****************************************************************************
int _ABVAR_1_val = 0 ;

void setup()
{
  Serial.begin(9600);
  pinMode( 10 , OUTPUT);
}

void loop()
{
  _ABVAR_1_val = analogRead(0) ;
  Serial.print("val:");
  Serial.print(_ABVAR_1_val);
  Serial.println();
  if (( ( _ABVAR_1_val ) < ( 600 ) ))
  {
    digitalWrite( 10 , HIGH );
  }
  else
  {
    digitalWrite( 10 , LOW );
  }
}
*******************************************************************************

Result:
After the program is downloaded, we can use flame sensor to check whether there is flame around.

All Projects

Buy it >> ARDUBLOCK Graphical Programming Starter Kit for Arduino

 

0 comments

Leave a comment

Please note, comments must be approved before they are published