Ks0116 keyestudio EASY plug Flame Sensor Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
==EASY plug Flame Sensor Module==
[[image:ks0116图.jpg|thumb|600px|right|EASY plug Flame Sensor Module]]
<br>[[File:ks0116-1.png|500px|frameless|thumb]]<br>


==Introduction==
==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.<br>
The flame sensor can be used to detect fire or other wavelength at 760nm ~1100nm light. <br>
Note: this module needs to be used together with EASY plug control board.<br>
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.<br>
The potentiometer on the flame sensor can be used to adjust the sensitivity.<br>
This module should be used together with EASY plug control board.<br>
 
<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>
<br>


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


==Connection Diagram ==
<br>
<br>[[File:ks0116-2.png|500px|frameless|thumb]]<br>
==Technical Details==
* Dimensions: 48mm*17mm*18mm
* Weight: 4.6g


<br>
==Connect It Up==
Connect the EASY Plug Flame Sensor and LED module to control board using RJ11 cables. Then connect the control board to your PC with a USB cable.
<br>[[File:火焰灯.jpg|500px|frameless|thumb]]<br>


==Sample Code==
<br>
<pre>
==Upload the Code==
const int flamePin = 12;    // the number of the flame pin
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
const int ledPin =  13;      // the number of the LED pin
<br>[[File:ks0398 8.1.png|500px|frameless|thumb]]<br>
// variables will change:
 
int State = 0;        // variable for reading status
<br>
void setup() {
==What You Should See==
// initialize the LED pin as an output:
Done uploading the code, put a lighter close to the flame sensor. Once the sensor detects the flame, the led lights up. <br>
  pinMode(ledPin, OUTPUT);     
If isn’t, you are able to adjust the sensitivity by a potentiometer.
// initialize the pushbutton pin as an input:
<br>[[File:ks0398 8-1.png|500px|frameless|thumb]]<br>
pinMode(flamePin, INPUT);   
 
}
<br>
void loop(){
<span style="color: red">''' Little Knowledge:'''</span> <br>
// read the state of the value:
* You are able to adjust the sensitivity by a blue potentiometer on the sensor.
State = digitalRead(flamePin);
[[image:ks0116图.jpg|thumb|600px|right|EASY plug Flame Sensor Module]]  
if (State == HIGH) {   
<br>
  // turn LED on:  
 
  digitalWrite(ledPin, HIGH); 
==Simulating Fire Extinguisher ==
}
<br>
else {
Let’s go into an interesting project. When detecting the flame by flame sensor, the fan motor will rotate to blow out the fire.
  // turn LED off:
<br>
  digitalWrite(ledPin, LOW);
'''Hookup Guide'''<br>
}
<br>[[File:火焰电机.jpg|600px|frameless|thumb]]<br>
}
 
</pre>
<br>
'''Test Code'''<br>
<br>[[File:ks0398 8.2.png|600px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
Done uploading the code, put a lighter close to the flame sensor. Once the sensor detects the flame, you should see the fan motor rotate.
<br>[[File:ks0398 8-2.png|600px|frameless|thumb]]<br>
 
<br>
 
<br>


==Resources ==
==Resources ==


'''Datasheet'''
https://fs.keyestudio.com/KS0116


http://www.keyestudio.com/files/index/download/id/1464153030/
<br>


==Buy from ==
==Buy from ==
'''Official Website'''
*[https://www.keyestudio.com/new-keyestudio-rj11-easy-plug-flame-sensor-module-for-arduino-steam-p0090-p0090.html  '''Official Website''' ]
 
*[https://www.aliexpress.com/store/product/New-Keyestudio-EASY-plug-Flame-Sensor-module-for-Arduino/1452162_32643691546.html?spm=2114.12010612.8148356.58.2dc64ba7CLVAOv    Shop on aliexpress ]


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


[[category:Module]]
[[category:EASY Plug]]

Latest revision as of 16:17, 7 January 2021

EASY plug Flame Sensor Module

Introduction

The flame sensor can be used to detect fire or other wavelength at 760nm ~1100nm light.
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.
The potentiometer on the flame sensor can be used to adjust the sensitivity.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Specification

  • Connector: Easy plug
  • Supply Voltage: 3.3V to 5V
  • Detection range: 500px (4.8V) ~ 2500px (1V)
  • Spectral Bandwidth Range: 760nm ~ 1100nm
  • Operating temperature: -25℃ to 85℃
  • Sensor type: digital


Technical Details

  • Dimensions: 48mm*17mm*18mm
  • Weight: 4.6g


Connect It Up

Connect the EASY Plug Flame Sensor and LED module to control board using RJ11 cables. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See

Done uploading the code, put a lighter close to the flame sensor. Once the sensor detects the flame, the led lights up.
If isn’t, you are able to adjust the sensitivity by a potentiometer.
thumb


Little Knowledge:

  • You are able to adjust the sensitivity by a blue potentiometer on the sensor.
EASY plug Flame Sensor Module


Simulating Fire Extinguisher


Let’s go into an interesting project. When detecting the flame by flame sensor, the fan motor will rotate to blow out the fire.
Hookup Guide

thumb


Test Code

thumb


What You Should See
Done uploading the code, put a lighter close to the flame sensor. Once the sensor detects the flame, you should see the fan motor rotate.
thumb



Resources

https://fs.keyestudio.com/KS0116


Buy from