The IR FLAME sensor by Oky is an electronic device designed to detect the presence of a flame or fire by sensing the infrared (IR) radiation emitted by the combustion process. This sensor is commonly used in safety systems for fire alarms, flame monitoring in industrial environments, and robotics applications where fire detection is crucial.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground |
3 | DOUT | Digital output; HIGH when flame is detected |
4 | AOUT | Analog output; voltage proportional to flame intensity |
5 | NC | Not connected (reserved for manufacturer use) |
// Define the digital and analog pins connected to the sensor
const int flameSensorDigitalPin = 2; // DOUT connected to digital pin 2
const int flameSensorAnalogPin = A0; // AOUT connected to analog pin A0
void setup() {
pinMode(flameSensorDigitalPin, INPUT);
Serial.begin(9600);
}
void loop() {
int flameDetected = digitalRead(flameSensorDigitalPin);
int flameIntensity = analogRead(flameSensorAnalogPin);
if (flameDetected == HIGH) {
Serial.println("Flame detected!");
} else {
Serial.println("No flame detected.");
}
// Print the analog value which represents the flame intensity
Serial.print("Flame intensity: ");
Serial.println(flameIntensity);
delay(500); // Wait for half a second before reading again
}
Q: Can the IR FLAME sensor detect flames through glass? A: No, the sensor cannot detect flames through glass as it blocks IR radiation.
Q: What is the maximum distance the sensor can detect a flame? A: The sensor can detect flames up to 1 meter away, but this can vary based on the flame's size and intensity.
Q: Is the sensor waterproof? A: No, the IR FLAME sensor is not waterproof. Protect it from moisture to prevent damage.
Q: Can the sensor differentiate between different types of flames? A: The sensor cannot differentiate between types of flames; it only detects the presence of IR radiation consistent with a flame.
For further assistance, please contact Oky technical support.