A flame sensor is a device used to detect the presence of a flame or fire. It is commonly used in safety applications to ensure that a flame is present in a burner or to detect fire in a given area. Flame sensors are crucial in various applications, including industrial safety systems, fire alarm systems, and home automation for fire detection.
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Current Consumption | 20mA (typical) |
Detection Range | Up to 100 cm |
Detection Angle | 60 degrees |
Output Type | Digital and Analog |
Response Time | 15 milliseconds |
Operating Temperature | -25°C to 85°C |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground |
3 | D0 | Digital output (HIGH when flame is detected) |
4 | A0 | Analog output (proportional to flame intensity) |
/*
Flame Sensor Example with Arduino UNO
This example reads the digital and analog outputs of the flame sensor
and prints the values to the Serial Monitor.
*/
const int flameDigitalPin = 2; // Digital pin connected to D0
const int flameAnalogPin = A0; // Analog pin connected to A0
void setup() {
pinMode(flameDigitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int flameDigital = digitalRead(flameDigitalPin); // Read digital output
int flameAnalog = analogRead(flameAnalogPin); // Read analog output
Serial.print("Digital Output: ");
Serial.println(flameDigital); // Print digital output
Serial.print("Analog Output: ");
Serial.println(flameAnalog); // Print analog output
delay(500); // Wait for 500 milliseconds
}
False Positives: The sensor detects a flame when there is none.
No Detection: The sensor does not detect a flame.
Fluctuating Readings: The sensor output is unstable.
Q1: Can the flame sensor detect any type of flame?
Q2: How do I adjust the sensitivity of the flame sensor?
Q3: Can I use the flame sensor outdoors?
Q4: What is the difference between the digital and analog outputs?
By following this documentation, users can effectively integrate and utilize the flame sensor in their projects, ensuring reliable flame detection and enhancing safety measures.