This wiki has been archived and made read-only.
For up-to-date information about TkkrLab and it's projects please visit our main website at tkkrlab.nl.

Arduino KY-026 Flame sensor module

From

Jump to: navigation, search

Arduino KY-026 Flame sensor module Sku 135038 2.jpg

Buy sensor or kit.


KEYES ARDUINO flame module

Flame module Interface module and number 13 comes with LED build a simple circuit to produce flame warning lamp 13 comes with digital interfaces of the LED, the flame sensor connected digital three interfaces, when the flame sensor senses There are key signal detected, LED lights, otherwise off.


Sensor for flame wavelengths between 760 nm to 1100 nm infrared is most sensitive 60 degree detection sensor Two outputs mode: AO: analog output- real-time output voltage signal on the thermal resistance DO: when the temperature reaches a certain threshold- the output high and low signal threshold adjustable via potentiometer


Schematic

  • Arduino GND --> Module G
  • Arduino +5V --> Module +
  • Arduino digital 4 --> Module D0
  • Arduino A3 --> Module A0




Example Code

//Example for KY-026
//TkkrLab
int Led = 13 ;// define LED Interface
int buttonpin = 3; // define the flame sensor interface
int analoog = A3; // define the flame sensor interface
 
int val ;// define numeric variables val
float sensor; //read analoog value
 
void setup ()
{
  pinMode (Led, OUTPUT) ;// define LED as output interface
  pinMode (buttonpin, INPUT) ;// output interface defines the flame sensor
  pinMode (analoog, INPUT) ;// output interface defines the flame sensor
  Serial.begin(9600);
}
 
void loop ()
{
  sensor = analogRead(analoog);
  Serial.println(sensor);  // display tempature
 
  val = digitalRead (buttonpin) ;// digital interface will be assigned a value of 3 to read val
    if (val == HIGH) // When the flame sensor detects a signal, LED flashes
  {
    digitalWrite (Led, HIGH);
  }
  else
  {
    digitalWrite (Led, LOW);
  }
  delay(1000);
}