Ks0116 keyestudio EASY plug Flame Sensor Module

From Keyestudio Wiki
Jump to navigation Jump to search

EASY plug Flame Sensor Module


thumb

Introduction

This flame sensor can be used to detect fire or other lights whose wavelength stands at 760 nm ~ 1100 nm. In the fire-fighting robot game, the flame plays an important role in the probe, which can be used as the robot's eyes to find fire source.
Note: this module needs to be used together with EASY plug control board.

Specification

  • Interface: Easy plug
  • Supply Voltage: 3.3V to 5V
  • Detection range: 500px (4.8V) ~ 2500px (1V)
  • Rang of Spectral Bandwidth: 760nm to 1100nm
  • Operating temperature: -25℃to 85℃
  • Sensor type: digital
  • Size: 49*16.7mm
  • Weight: 6g

Connection Diagram


thumb


Sample Code

const int flamePin = 12;     // the number of the flame pin
const int ledPin =  13;      // the number of the LED pin
// variables will change:
int State = 0;         // variable for reading status
void setup() {
 // initialize the LED pin as an output:
 pinMode(ledPin, OUTPUT);      
 // initialize the pushbutton pin as an input:
 pinMode(flamePin, INPUT);    
}
void loop(){
 // read the state of the value:
State = digitalRead(flamePin);
 if (State == HIGH) {    
   // turn LED on:    
   digitalWrite(ledPin, HIGH);  
 }
 else {
   // turn LED off:
   digitalWrite(ledPin, LOW);
 }
}

Resources

PDF

https://drive.google.com/open?id=1aGobmBGdVwTBZ99YIRtuCf7Kg8FZYUTN

Buy from

Official Website

http://www.keyestudio.com/keyestudio-easy-plug-flame-sensor-module-for-arduino.html