Flame Sensor Module (KY-026) [S038]



https://www.youtube.com/watch?v=nNfSdjruTpc


* Specs

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.


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



* Contents

- Connect

A0 ----- A0

G ----- GND

+ ----- 5V

D0 ----- X


- Key Code

sensor = analogRead(A0);

Posted by RDIoT
|

GP2Y1010AU0F Compact Optical Dust Sensor + Adapter  (GP2Y1010AU0F,DFR0280) [S065]



https://www.youtube.com/watch?v=539hINFrDHM


*GitHub : https://github.com/rdiot/rdiot-s065.git


* Specs

GP2Y1010AU0F is a dust sensor by optical sensing system An infrared emitting diode (IRED) and an phototransistor are diagonally arranged into this device It detects the reflected light of dust in air. Especially, it is effective to detect very fine particle like the cigarette smoke In addition it can distinguish smoke from house dust by pulse pattern of output voltage Compact, thin package (46.0 × 30.0 × 17.6 mm) Low consumption current (Icc: MAX. 20 mA) The presence of dust can be detected by the photometry of only one pulse Enable to distinguish smoke from house dust Lead-free and RoHS directive compliant Compliant with RoHS directive (2002/95/EC)


* Contents

- Refer Source : ttps://github.com/Trefex/arduino-airquality/blob/master/Module_Dust-Sensor/dustSensor/dustSensor.ino


- Connect

:Adapter

A ----- A0

VCC ----- V5

GND ----- GND

 

D ----- D2

VCC ----- X (One of Two)

GND ----- X (One of Two)


: Dust Sensor

1 (V-LED) ---(P150)--- 5V 

2 (LED_GND) --(220uF 1 Number)--- GND 

3 (LED) ----- D12

4 (S-GND) ----- GND

5 (V0) ----- A0

6 (Vcc) ----- 5V 



- Key Code

int measurePin = A0;

int ledPower = 2;

 

int samplingTime = 280;

int deltaTime = 40;

int sleepTime = 9680;

 

float voMeasured = 0;

float calcVoltage = 0;

float dustDensity = 0;

 

int B = 9; // OUTPUT PIN blue

int R = 11; // OUTPUT PIN red

int G = 10; // OUTPUT PIN green

 


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

  pinMode(ledPower,OUTPUT);

  pinMode(R, OUTPUT);

  pinMode(G, OUTPUT);

  pinMode(B, OUTPUT);

 

  delay(1000);

  lcd.clear();

}


void loop()

{

  lcd.setCursor(0,0);

  lcd.print("S065:Dust GP2Y1010AU0F");

 

  digitalWrite(ledPower,LOW); // power on the LED

  delayMicroseconds(samplingTime);

 

  voMeasured = analogRead(measurePin); // read the dust value

  

  delayMicroseconds(deltaTime);

  digitalWrite(ledPower,HIGH); // turn the LED off

  delayMicroseconds(sleepTime);

 

  // 0 - 5.0V mapped to 0 - 1023 integer values 

  calcVoltage = voMeasured * (5.0 / 1024); 

  

  dustDensity = (0.17 * calcVoltage - 0.1)*1000; 

  

  lcd.setCursor(0,1);

  lcd.print("Signal=" + (String)voMeasured + " ");

  

  lcd.setCursor(0,2);

  lcd.print("Voltage=" + (String)calcVoltage + " ");

  

  lcd.setCursor(0,3);

  lcd.print("Density=" + (String)dustDensity + "ug/m3 ");

  

  if(dustDensity <= 40)

  {

   // GREEN

   digitalWrite(R, HIGH);

   digitalWrite(G, LOW);

   

  }

  else if(dustDensity <= 80)

  {

   // BLUE

   digitalWrite(G, HIGH);

   digitalWrite(B, LOW);

 

  }

  else if(dustDensity <= 120)

  {

    // RED + GREEN = YELLOW

    digitalWrite(B, HIGH);

    digitalWrite(R, LOW);

    digitalWrite(G, LOW);

  }

  else

  {

    // RED

    digitalWrite(R, LOW);

    digitalWrite(G, HIGH);

    digitalWrite(B, HIGH);   

  }

 

  delay(1000);

 

  // all off

  digitalWrite(B, HIGH);

  digitalWrite(R, HIGH);

  digitalWrite(G, HIGH);

}

Posted by RDIoT
|

MQ-2 Sensitive for Methane, Butane, LPG, Smoke (MQ-2) [S100]



https://www.youtube.com/watch?v=PHpsr3MPV28


*GitHubhttps://github.com/rdiot/rdiot-s100.git


* Specs

Sensitive for Methane, Butane, LPG, smoke.

This sensor is sensitive for flamable and combustible gasses.

The heater uses 5V.


Sensitive material of MQ-2 gas sensor is SnO2, which with lower conductivity in clean air. When the

target combustible gas exist, The sensor’s conductivity is more higher along with the gas concentration

rising. Please use simple electrocircuit, Convert change of conductivity to correspond output signal of

gas concentration.

MQ-2 gas sensor has high sensitity to LPG, Propane and Hydrogen, also could be used to Methane

and other combustible steam, it is with low cost and suitable for different application. 



* Contents

- The MQ-2 at seeed: http://www.seeedstudio.com/wiki/Grove_-_Gas_Sensor%28MQ2%29


- DataSheet : https://www.pololu.com/file/0J309/MQ2.pdf


- Key Code

const int gasPin = A0;

  

void setup()

{

    Serial.begin(9600);

}

 

void loop()

{

    Serial.println(analogRead(gasPin));

    

    if (analogRead(gasPin) > 400)  

    {                                     

        tone(12,2000,1000); 

    }  

    delay(1000);

}

'2) Sensor > Gas' 카테고리의 다른 글

TPM-300 Air Quality Module (TPM-300) [S092]  (0) 2016.09.11
Air Quality Sensor (MQ135) [S037]  (0) 2016.09.11
Posted by RDIoT
|