Flame Sensor Description: A flame sensor or a flame sensor
module is a device that detects flame or fire around it. Fire alarm or fire
detection is very important to deal with fire, so in this experiment, we
will see how to interface/ connect a 2 pin flame sensor with the Arduino
board mainly with Arduino UNO.
Material Required: One flame sensor (2 pins), one 330 k ohm resistor, one breadboard, several connecting wires, an active buzzer (you can take any speaker).
Flame Sensor Working:
1. Connect the flame sensor to the breadboard.2. Connect one end of the resistor (330 k ohm) to the negative end of the flame sensor (the leg which is smaller in the length of the flame sensor is the negative one) and another end of the resistor to 5V of the Arduino.
3. Connect the positive terminal of the flame sensor (the leg which is bigger in size) to the GND (ground) pin of the Arduino Uno (see the black wire).
4. Again connect the negative terminal of the flame sensor to the Analog pin (A0) of the Arduino board (see the orange wire).
5. Now connect the other end of the resistor to the 5V pin of the Arduino Pin (see the white wire).
6. Let us now connect the Active buzzer, connect the positive end of the buzzer to digital pin 8 (see the blue wire), and the negative terminal of the buzzer to the GND (see the yellow wire).
You may also like:
- Interfacing IC 74HC595 Shift Register with Arduino Uno
- 4 pin DHT 11 temperature and humidity sensor interfacing with Arduino Uno
- Interfacing 4 pin RGB module with Arduino Uno
- How to use Breadboard Power Supply
- Interfacing 4 pin HC-SR04 Ultrasonic distance sensor with Arduino Uno
- Micro Servo Motor SG90 interfacing with Arduino Uno
- Interfacing 28BY-48 Stepper Motor with Arduino Uno
- How to control LED with Potentiometer(variable resistor)
- How to use Piezo buzzer (Active and Passive) with Arduino Uno
- What is Pulse Width Modulation (PWM) in Arduino?
- Interfacing IC 74HC595 Shift Register with Arduino Uno
- 4 pin DHT 11 temperature and humidity sensor interfacing with Arduino Uno
- Interfacing 4 pin RGB module with Arduino Uno
- How to use Breadboard Power Supply
- Interfacing 4 pin HC-SR04 Ultrasonic distance sensor with Arduino Uno
- Micro Servo Motor SG90 interfacing with Arduino Uno
- Interfacing 28BY-48 Stepper Motor with Arduino Uno
- How to control LED with Potentiometer(variable resistor)
- How to use Piezo buzzer (Active and Passive) with Arduino Uno
- What is Pulse Width Modulation (PWM) in Arduino?
Arduino Sketch:
int flameSensorPin = 0; // a0
int flameSensorReading;
int buzzerPin=8;
void setup(void)
{
Serial.begin(9600);
pinMode(buzzerPin,OUTPUT);
}
void loop(void)
{
flameSensorReading = analogRead(flameSensorPin);
if(flameSensorReading<1023)
{
digitalWrite(buzzerPin,HIGH);
}
else
{
digitalWrite(buzzerPin,LOW);
}
Serial.print("Analog reading = ");
Serial.println(flameSensorReading); // the raw analog reading
delay(1000);
delay(500);
}
Thank you!
1 Comments
thank You!
ReplyDelete