최원일gledel신민섭primiddle윤호이
Published © GPL3+

Automatic Ventilation with Flame Detector

A Bongilcheon High School FabLab Academy final project: this is a project that allows the ventilation shaft to be activated automatically.

IntermediateShowcase (no instructions)16 hours1,561
Automatic Ventilation with Flame Detector

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
flame detector
×1
motor driver
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Laser cutter (generic)
Laser cutter (generic)

Story

Read more

Schematics

fritizing file

project_fritzing_file_bb_7jCn3QTHZ9.jpg

_SlZhdTrLmG.PNG

_bgPjGGJWVc.PNG

2_S9BfSAHSqs.PNG

Code

Untitled file

Arduino
#define AIA 9

#define AIB 10

int flame_sensor_pin = 2 ;// initializing pin 7 as the sensor output pin

int flame_pin = HIGH ; // state of sensor

int MTspeed = 50;


void setup ( )  {

 

  pinMode(AIA, OUTPUT);

  pinMode(AIB, OUTPUT);

  pinMode ( flame_sensor_pin , INPUT ); // declaring sensor pin as input pin for Arduino

  Serial.begin ( 9600 );// setting baud rate at 9600

}

 

void loop ( ) {

   flame_pin = digitalRead ( flame_sensor_pin ) ;  // reading from the sensor

  if (flame_pin == LOW )  // applying condition

  {

    Serial.println ( " FLAME , FLAME , FLAME " ) ;

    moving();

  }

  

  else

  {

    Serial.println ( " no flame " ) ;

    stop_moving();

  } 

 

}

void moving() {

  digitalWrite(AIB,HIGH);

  analogWrite(AIA,MTspeed);

}

void stop_moving() {

  analogWrite(AIB,LOW);

  analogWrite(AIA,LOW);

  

} 

Credits

최원일
3 projects • 0 followers
Contact
gledel
100 projects • 116 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
Contact
신민섭
5 projects • 3 followers
My name is minseop ,i`m a student at Bongilcheon High School. And I`m interested in math and science.
Contact
primiddle
6 projects • 0 followers
I'm bongilcheon high school student. And I want to doing arduino, 3D modeling well.
Contact
윤호이
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.