The Flame Sensor, manufactured by Arduino (Part ID: ARDUINO), is a device designed to detect the presence of a flame or fire. It is commonly used in safety applications to ensure that a flame is present in heating systems, thereby preventing gas leaks and potential explosions. This sensor is highly sensitive to flame and infrared light, making it an essential component in various safety and automation systems.
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Current Consumption | 20mA |
Detection Range | Up to 100 cm |
Detection Angle | 60 degrees |
Output Type | Digital and Analog |
Operating Temperature | -25°C to 85°C |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground |
3 | A0 | Analog output (provides a variable voltage based on flame intensity) |
4 | D0 | Digital output (high when flame is detected) |
// Flame Sensor Example Code
// Connect the VCC to 5V, GND to ground, A0 to A0, and D0 to D2 on Arduino UNO
const int flameAnalogPin = A0; // Analog pin connected to A0
const int flameDigitalPin = 2; // Digital pin connected to D0
const int ledPin = 13; // LED pin for indication
void setup() {
pinMode(flameDigitalPin, INPUT); // Set digital pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int flameAnalogValue = analogRead(flameAnalogPin); // Read analog value
int flameDigitalValue = digitalRead(flameDigitalPin); // Read digital value
Serial.print("Analog Value: ");
Serial.println(flameAnalogValue); // Print analog value to serial monitor
if (flameDigitalValue == HIGH) { // If flame is detected
digitalWrite(ledPin, HIGH); // Turn on LED
Serial.println("Flame Detected!");
} else {
digitalWrite(ledPin, LOW); // Turn off LED
Serial.println("No Flame Detected.");
}
delay(500); // Wait for 500 milliseconds
}
False Positives:
No Detection:
Inconsistent Readings:
By following this documentation, users can effectively integrate the Flame Sensor into their projects, ensuring reliable flame detection and enhancing safety in various applications.