Introduction
Flame Sensor module can be used to detect fire source or other light sources of the wave length in the range of 760nm - 1100 nm. It is based on the YG1006 sensor which is a high speed and high sensitive NPN silicon phototransistor. Due to its black epoxy, the sensor is sensitive to infrared radiation. It can be used as a robot’s eyes to find the fire source. When detected the flame, LED will light and D0 output low voltage level.
Tip: light it with lamp won’t have any react unless you show him the flame, his name is flame sensor module.
Technical data
Working voltage: 3.3v-5v
Typical voltage: 5.0V
Typical current: 20mA
Response time: 15μs
Operating temperature: -25 to 85℃
Detect range: 60 degrees
Features
High Photo Sensitivity
Fast Response Time
Sensitivity adjustable
Convenient
Digital/Analog output
On-board LM393 chip
Usage
The module is mainly used to detect the infrared light. It outputs digital signal 0 or 1 through a Comparator output. The output value will be 0 when infrared light is detected. And the sensitivity is adjustable by the precision potentiometer.
1. Connect the module to the Arduino/Catduino.
2.Connect Arduino or Catduino to PC by using a USB cable.
3.Copy and paste code below to a new Arduino sketch, upload.
[code]
/*
flame sensor connects to the analog pin 5 of Catuino.
led connect to pin 2 of Catduino.
*/
int sensor=A5; //Define the analog pin 5 as flame sensor.
int led=2; //Define the pin 2 as led.
void setup() {
pinMode(sensor, INPUT); //Flame sensor is input.
pinMode(led, OUTPUT); //Led is output.
Serial.begin(9600); //Initial serial baud rate of 9600.
}
void loop() {
int sensor_value=analogRead(sensor);
int lightIntensity=map(sensor_value, 0, 1023, 0, 255);
analogWrite(led,lightIntensity);
Serial.print("sensor_value=");
Serial.println(sensor_value);
Serial.print("lightIntensity=");
Serial.println(lightIntensity);
delay(500); //Delay half of a second.
}
[/code]
The LED will light up when there is infrared light who's wave length is in the range of 760- 1100mm.
Resource