Grove Flame Sensor User Manual
Grove Flame Sensor User Manual
Grove Flame Sensor User Manual
Version: 1.0
Wiki: http://wiki.seeedstudio.com/Grove-Flame_Sensor/
Bazaar: https://www.seeedstudio.com/Grove-Flame-Sensor-p-1450.html
1
Document Revision History
2
Contents
Document Revision History ···································································································2
1. Introduction ···················································································································2
2. Feature ···························································································································3
3. Specification ···················································································································4
4. Usage ······························································································································5
5. Reference ·······················································································································7
6. Resource·························································································································8
7. Support···························································································································9
3
Disclaimer
For physical injuries and possessions loss caused by those reasons which are not related to product quality,
such as operating without following manual guide, natural disasters or force majeure, we take no
responsibility for that.
Under the supervision of Seeed Technology Inc., this manual has been compiled and published which
covered the latest product description and specification. The content of this manual is subject to change
without notice.
Copyright
The design of this product (including software) and its accessories is under tutelage of laws. Any action to
violate relevant right of our product will be penalized through law. Please consciously observe relevant local
laws in the use of this product.
1
1. Introduction
The Grove - Flame Sensor can be used to detect fire source or other light sources of the
wavelength 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. In firefighting robot game, the sensor plays a very important role, it can be
used as a robot eyes to find the fire source.
2
2. Feature
Grove Interface
Easy to use
3
3. Specification
Current / 20 / mA
Detection range 0 ~ 1 m
Response Time 15 μS
4
4. Usage
The module is mainly used to detect the infrared light. It outputs digital signal 0 and 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.
Let's use it to control. When the output value is 0, the led will light up.
1. Connect the module to the D3 of Grove - Base Shield using the 4-pin grove cable.
4. Copy and paste code below to a new Arduino sketch. Please click here if you do not know how
to upload.
/************************************************************************
******/
void setup()
{
pinsInit();
}
void loop()
{
if(isFlameDetected())
turnOnLED();
else turnOffLED();
}
/********************************/
void pinsInit()
{
pinMode(FLAME_SENSOR, INPUT);
pinMode(LED,OUTPUT);
digitalWrite(LED,LOW);
}
void turnOnLED()
{
digitalWrite(LED,HIGH);
}
void turnOffLED()
{
5
digitalWrite(LED,LOW);
}
boolean isFlameDetected()
{
if(digitalRead(FLAME_SENSOR))
return false;
else return true;
}
5. The LED will light up when there is infrared light. Please use it to design your products.
6
5. Reference
The sensor can detect the light source whose wavelength is in the range of 760nm - 1100 nm. The
below picture shows the spectral sensitivity.
7
6. Resource
LM293D datasheet
8
7. Support
If you have questions or other better design ideas, you can go to our forum to discuss.
9
Mouser Electronics
Authorized Distributor
Seeed Studio:
101020049