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 |
Operating Current | 20mA |
Detection Range | 760 nm to 1100 nm (IR light) |
Detection Angle | 60 degrees |
Output Type | Digital and Analog |
Response Time | 15 microseconds |
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 (proportional to flame intensity) |
4 | D0 | Digital output (HIGH when flame is detected) |
// Flame Sensor Example Code for Arduino UNO
const int flameSensorPin = A0; // Analog pin connected to A0 of the sensor
const int digitalPin = 2; // Digital pin connected to D0 of the sensor
int flameAnalogValue = 0; // Variable to store the analog value
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
flameAnalogValue = analogRead(flameSensorPin); // Read analog value
int flameDigitalValue = digitalRead(digitalPin); // Read digital value
// Print the analog value to the Serial Monitor
Serial.print("Analog Value: ");
Serial.println(flameAnalogValue);
// Check if flame is detected
if (flameDigitalValue == HIGH) {
Serial.println("Flame detected!");
} else {
Serial.println("No flame detected.");
}
delay(500); // Wait for 500 milliseconds before next reading
}
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 measures.