The DF Robot Flame Sensor is a specialized sensor designed to detect the presence of a flame or light source within the wavelength range of 760nm to 1100nm. This sensor is commonly used in fire detection systems, safety applications, and various projects requiring flame detection. Its ability to detect infrared light makes it an essential component in environments where fire safety is a priority.
Specification | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Operating Current | 20mA |
Detection Range | 0 to 1 meter |
Detection Angle | 60 degrees |
Wavelength Range | 760nm to 1100nm |
Output Type | Digital and Analog |
Dimensions | 30mm x 16mm x 10mm |
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 (Voltage proportional to IR light) |
// DF Robot Flame Sensor Example Code
// This code 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 flameDigitalValue = digitalRead(flameDigitalPin); // Read digital value
int flameAnalogValue = analogRead(flameAnalogPin); // Read analog value
// Print the digital and analog values to the Serial Monitor
Serial.print("Digital Value: ");
Serial.print(flameDigitalValue);
Serial.print(" | Analog Value: ");
Serial.println(flameAnalogValue);
delay(500); // Wait for 500 milliseconds before next reading
}
No Detection: The sensor does not detect any flame.
False Positives: The sensor detects a flame when there is none.
Inconsistent Readings: The analog output values fluctuate significantly.
By following this documentation, users can effectively integrate the DF Robot Flame Sensor into their projects, ensuring reliable flame detection and enhancing safety measures.