Flame sensor
Contents
Introduction
If you are into fire fighting robot games, or building a fire detecting robot, flame plays an important role. You would need a robot's eye or a sensor which detects flame and act accordingly. A fire detector or a flame sensor is a sensor designed to detect and respond to the presence of a flame or fire. The flame sensor operates between 0 degrees Celsius to 85 degrees Celsius. Just make sure the flame is not too near to the sensor to avoid damage to the sensor. Flame Sensor can be used to detect fire source of the wavelength in the range of 760nm - 1100 nm.
Flame sensor works by detecting infrared radiation emitted from fire. The detector detects this radiation and converts it into analog and digital signals for the microcontroller to process.
'Note: Since flame sensor works on the principle of infrared detection, any other infrared source like your remote control, or any other source can trigger the sensor.'
Features
- Outputs both analog and digital values
- Onboard LED indicates if the module is connected properly
- Another onboard LED indicates when threshold values are touched (turns on)
- Great for DIY projects and Arduino beginners
- M3 Mounting hole to mount the module on your desk or project
Specifications
| Model | Flame / Fire Sensor |
|---|---|
| Number of Pins | 4 (AO, DO, VCC, GND) |
| Output Type | Analog and/or Digital Output |
| Operating Voltage | 4.5V to 6V |
| Lead Pitch | 0.1th inch (2.54 mm) Breadboard compatible |
| Dimension | 0.6" x 1.3" x 0.5" inch (15.25 mm x 33mm x 12.7 mm) |
| Operating Temperature | 0C to 60C (± 10%) |
| Range | 10cm to ~80cm |
| Angle of Detection | 60 degrees |
| LED Indicator | SIG (Orange or Red), PWR (Green) |
| Weight | 20 Grms |
Interface
Pin Definition
- AO : This is the analog output pin from the sensor and should be connected to Analog input pin of microcontroller. If you are using an Arduino, this can be connected to any of the analog pins A0 through A5 (on UNO for example). On a Draco board, this can be connected to any of the pins PC0 through PC5. If you are using LCD, then the module can be connected to PC4 or PC5 and sensor values can be displayed on LCD. Analog output from flame scale sensor can be used to identify existence of flame and also distance if the flame intensity is the same across. The output can be fed into microcontroller to act accordingly
- DO : This is the digital output pin from the sensor. The pin is connected to a pull-up resistor and will read high. You can adjust the pot to set a threshold value. A comparator continuously checks if the analog pin has hit the threshold value. When it crosses the threshold, the pin goes low and signal LED turns on. This setup is very useful when you need to trigger an action when certain threshold is reached. For example, when the distance to the fire (or intensity of fire) crosses a threshold, you can turn on or off a relay. When the distance to the fire reaches a threshold, you can signal your robot to blow air, sprinkle water, hit an opponent robot with fire source, or reverse and change direction.
- VCC : Positive power pin and this should be connected to VCC (or +5V) of your microcontroller.
- GND: Ground pin and this should be connected to GND(or 0V) of your microcontroller.
Usage
Code for Arduino
/*
* Product: Flame / Fire Detector
* SKU : VEE00055
* Description: The example demonstrates usage of connecting a flame sensor
* to an Arduino board. AO (Analog Output) from Sensor is connected to
* A0 (Analog 0) pin of Arduino. When flame sensor detects existence of fire, analog values
* are sent to Arduino's serial port and displayed on your serial monitor
*/
void setup()
{
Serial.begin(9600); // initiate serial port
}
void loop()
{
int flameSensorValue;
flameSensorValue=analogRead(0); //connect grayscale sensor to Analog 0
Serial.println(flameSensorValue,DEC);// display analog values on serial port
delay(100);
}
Application Ideas
This sensor is used for following purposes:
- Fire Detection
- Infrared Detection
Resources
- Schematic - Coming soon...
Support
If you have any questions or queries, contact us