The Heat Flame Sensor is an electronic device designed to detect the presence of a flame or fire and convert this detection into an electrical signal. Manufactured by Robocraze, this sensor is commonly used in safety systems for gas appliances, fire detection systems, and in robotics for flame sensing capabilities.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V DC) |
2 | GND | Ground |
3 | DO | Digital output; connects to a digital pin |
4 | AO | Analog output; connects to an analog pin |
// Define the digital pin connected to the sensor's DO pin
const int flameSensorPin = 2;
void setup() {
pinMode(flameSensorPin, INPUT); // Set the flame sensor pin as an input
Serial.begin(9600); // Start serial communication at 9600 baud
}
void loop() {
int flameDetected = digitalRead(flameSensorPin); // Read the digital signal
if (flameDetected == LOW) { // Check if a flame is detected
Serial.println("Flame detected!");
} else {
Serial.println("No flame detected.");
}
delay(1000); // Wait for 1 second before the next read
}
Q: Can the sensor detect different types of flames? A: Yes, the sensor can detect various types of flames, but its sensitivity may vary depending on the flame's characteristics.
Q: Is it possible to adjust the sensitivity of the sensor? A: Some models come with a potentiometer for sensitivity adjustment. Refer to the specific model's datasheet for details.
Q: How far can the sensor detect a flame? A: The standard detection range is up to 1 meter for a typical flame, but this can vary based on the size and intensity of the flame.
Q: Can the sensor be used outdoors? A: While the sensor can be used outdoors, it should be protected from the elements and extreme temperatures to ensure accurate operation.
Q: What is the difference between the AO and DO pins? A: The AO pin provides an analog output that varies with the intensity of the flame, while the DO pin provides a digital output that indicates the presence or absence of a flame.
For further assistance or technical support, please contact Robocraze customer service with the part ID olwe54jugd5r
.