[vc_row][vc_column width=”1/1″][vc_column_text]LinkSprite Flame sensor is only sensitive to the light in the frequency band of infrared and ultrviolet.
This breakout board has 3 pins: sensor output signal, power, and ground. The sensor output signal is an analog signal. In an indoor enviroment, the signal output is around 0V. When there is flame or other infrared source, the voltage of output signal will increase. When the intensity of light is high, it can output as large as 3V.
[/vc_column_text][vc_tour][vc_tab title=”Parts List” tab_id=”1389202907-1-94″][vc_column_text]
1 x LinkSprite Flame Sensor
1 x pcDuino v2
Several Jump Wires
[/vc_column_text][/vc_tab][vc_tab title=”Wire Diagram” tab_id=”1389202907-2-4″][vc_column_text]
+ of flame sensor -> 5V of pcDuino
– of flame sensor -> GND of pcDuino
S of flame sensor -> A0 of pcDuino
[/vc_column_text][/vc_tab][vc_tab title=”Sample Code” tab_id=”1389203256275-2-9″][vc_column_text]We use the included Arduino IDE in pcDuino:
Code:
#include <core.h>
const int analogInPin =0;
int sensorValue = 0; // value read from the pot
int count1;
void setup() {
}
void loop() {
count1++;
// read the analog in value:
sensorValue = analogRead(analogInPin);
if(count1==3000)
{
count1=0;
printf(“sensor=%d\n”, sensorValue);
}
}
[/vc_column_text][/vc_tab][vc_tab title=”Results” tab_id=”1389203459276-3-1″][vc_column_text]Click the left-point arrow to run the code on pcDuino, when it is indoor, the reading will be around 11, and can increase when there is sunshine or flame.
Leave a Reply
You must be logged in to post a comment.