The DF Robot Flame Sensor is a highly sensitive device designed to detect the presence of flame or fire. It is commonly used in fire detection systems and can provide an output signal to trigger alarms or other safety measures. This sensor is an essential component in safety and security applications, offering a reliable means to detect fire and prevent potential hazards.
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Detection Range | Up to 100 cm (depending on flame size) |
Detection Angle | 60 degrees |
Output Type | Digital and Analog |
Response Time | < 15 ms |
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) |
// DF Robot Flame Sensor Example Code for Arduino UNO
const int flameSensorDigitalPin = 2; // Digital pin connected to D0
const int flameSensorAnalogPin = A0; // Analog pin connected to A0
const int ledPin = 13; // LED pin for indication
void setup() {
pinMode(flameSensorDigitalPin, INPUT); // Set digital pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int flameDigital = digitalRead(flameSensorDigitalPin); // Read digital output
int flameAnalog = analogRead(flameSensorAnalogPin); // Read analog output
// Print analog value to serial monitor
Serial.print("Analog Value: ");
Serial.println(flameAnalog);
// If flame is detected, turn on LED
if (flameDigital == HIGH) {
digitalWrite(ledPin, HIGH);
Serial.println("Flame detected!");
} else {
digitalWrite(ledPin, LOW);
Serial.println("No flame detected.");
}
delay(100); // Small delay for stability
}
By following this documentation, users can effectively integrate the DF Robot Flame Sensor into their projects, ensuring reliable flame detection and enhancing safety measures.