newproyecto
Published © GPL3+

Say no to fire with arduino

An alarm in case of fire

BeginnerFull instructions provided261
Say no to fire with arduino

Things used in this project

Hardware components

LED (generic)
LED (generic)
red
×1
Resistor 221 ohm
Resistor 221 ohm
×1
Buzzer
Buzzer
active
×1
resistor 300 kilo ohm
and
×1
Resistor 100k ohm
Resistor 100k ohm
or
×2
Resistor 100k ohm
Resistor 100k ohm
×5
Breadboard (generic)
Breadboard (generic)
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE
or
Arduino Web Editor
Arduino Web Editor

Story

Read more

Schematics

sensor_flame_sketch_bb_WOC2V4AoWo.png

untitled_sketch_esquema_YNWBISfuKW.jpg

Code

Untitled file

Arduino
void setup()
   {
       pinMode(9, OUTPUT);
       pinMode(13, OUTPUT);
   }

void loop()
   {
       int v = analogRead(A0) ;
       if ( v > 10)
       analogWrite(9, 255);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 127);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 255);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 127);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 255);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 127);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 255);
       digitalWrite(13,HIGH);
            delay(1000) ;
       analogWrite(9, 127);
       digitalWrite(13,HIGH);
            delay(1000) ;      
   }

Credits

newproyecto
3 projects • 4 followers
Hello everyone, my name is Antonio and I love programming and doing projects with Arduino and I hope these projects will help you.
Contact

Comments

Please log in or sign up to comment.