[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Introduction” tab_id=”1393827659-1-50″][vc_column_text]![]()
The flame sensor receives the infrared by infrared receiver and transfer it to electric signal. We convert electric signal to a corresponding value by Arduino ADC. The sensor has 3 pins,
“+”→ Arduino’s 5V
“-“→ Arduino’s GND
“s”→ Arduino’s A0
As shown below:
[/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1393827659-2-99″][vc_column_text]
int sensorPin = A0;
int ledPin = 13;
int sensorValue = 0;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(115200);
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.println(1024 - sensorValue);
//Serial.write(sensorValue);
digitalWrite(ledPin, HIGH);
delay(100);
digitalWrite(ledPin, LOW);
delay(100);
}
[/vc_column_text][/vc_tab][vc_tab title=”Test Result ” tab_id=”1393830203095-2-9″][vc_column_text]Since the environment has pyroelectric infrared background, so there is no flame still have value, as shown:
When you touching the sensor, the infrared released by human body make larger value, as shown:
Since the body also release infrared, so the object of the experiment did not use a flame, but with the same effect of the flame.[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Leave a Reply
You must be logged in to post a comment.