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 can detect it from a distance, 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 an analog signal) |
4 | D0 | Digital output (provides a digital signal) |
// 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
int flameDigitalValue = 0; // Variable to store the digital value
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(digitalPin, INPUT); // Set digital pin as input
}
void loop() {
// Read the analog value from the flame sensor
flameAnalogValue = analogRead(flameSensorPin);
// Read the digital value from the flame sensor
flameDigitalValue = digitalRead(digitalPin);
// Print the analog value to the Serial Monitor
Serial.print("Analog Value: ");
Serial.println(flameAnalogValue);
// Print the digital value to the Serial Monitor
Serial.print("Digital Value: ");
Serial.println(flameDigitalValue);
// Check if a flame is detected
if (flameDigitalValue == HIGH) {
Serial.println("Flame Detected!");
} else {
Serial.println("No Flame Detected.");
}
delay(1000); // Wait for 1 second before the next reading
}
False Positives:
No Detection:
Inconsistent Readings:
By following this documentation, users can effectively integrate and utilize the Flame Sensor in their projects, ensuring safety and reliability in various applications.