Image is for reference only , details as Specifications

MQ-2 MQ-3 MQ-4 MQ-5 MQ-6 MQ-7 MQ-8 MQ-9 MQ-135 Detection Smoke methane liquefied Gas Sensor Module for Arduino Starter DIY Kit

メーカー: Lanka Micro
対象品目: Modules
データシート: MQ-2 MQ-3 MQ-4 MQ-5 MQ-6 MQ-7 MQ-8 MQ-9 MQ-135 Detection Smoke methane liquefied Gas Sensor Module for Arduino Starter DIY Kit
説明: lanka Module
rohs地位: rohs化
Module Application:
Can be used for home and factory gas leak monitoring device, suitable for liquefied gas, butane, propane, methane, smoke and other detection;
Module Features:
1, the use of high-quality double-panel design, with power indicator and TTL signal output instructions;
2, with DO switch signal (TTL) output and AO analog signal output;
3, TTL output valid signal is low. (When the output low signal lights, can be directly connected to the microcontroller or relay module)
4, the analog output voltage with the higher the higher the voltage the higher the voltage.
5, the liquefied petroleum gas, natural gas, city gas, smoke has a better sensitivity.
6, there are four screw holes to facilitate positioning;
7, product dimensions: 32 (L) * 20 (W) * 22 (H)
8, with long service life and reliable stability
9, fast response to recovery features
 
Electrical performance:
Input voltage: DC5V Power consumption (current): 150mA
DO output: TTL digital 0 and 1 (0.1 and 5V)
AO output: 0.1-0.3V (relatively no pollution), the maximum concentration of about 4V voltage
Special reminder: the sensor power, the need to preheat 20S or so, the measured data was stable, the sensor fever is a normal phenomenon, because the internal electric wire, if the hot is not normal.
 
Wiring:
1, VCC: then the power supply positive (5V)
2, GND: Connect the power supply negative
3, DO: TTL switch signal output
4, AO: analog signal output
 
test program:
 
Implementation of the function: This version of supporting test procedures
Use the chip: AT89S52
Crystal: 11.0592MHZ
Baud rate: 9600
Compiler environment: Keil
Statement This procedure is only used for learning and reference, please specify the copyright and author information!
************************************************** ******************* /
/ ************************************************* *******************
Description: 1, when the measured concentration is greater than the set concentration, the microcontroller IO output low
************************************************** ******************* /
# Include // library file
#define uchar unsigned char // macro defines unsigned character
#define uint unsigned int // macro defines unsigned integer
 
/ ************************************************* *******************
I / O definition
************************************************** ******************* /
Sbit LED = P1 ^ 0; / / define the first bit of P1 port P1 (P1.0) as the indicator
Sbit DOUT = P2 ^ 0; / / define the first bit of the microcontroller P2 port (ie P2.0) for the sensor input
/ ************************************************* *******************
Delay function
************************************************** ******************* /
Void delay () // delay program
{
Uchar m, n, s;
For (m = 20; m> 0; m--)
For (n = 20; n> 0; n--)
For (s = 248; s> 0; s--);
}
/ ************************************************* *******************
Main function
************************************************** ******************* /
Void main ()
{
While (1) // infinite loop
{
LED = 1; // off P1.0 port light
If (DOUT == 0) // When the concentration is higher than the set value, execute the condition function
{
Delay (); / / delay anti-interference
If (DOUT == 0) // When the concentration is higher than the set value, execute the condition function
{
LED = 0; // light P1.0 port light

 

 

 

 

 

在庫が 853 pcs

いや「参考価格 ($) 1 pcs 100 pcs 500 pcs
$0.85 $0.83 $0.82
最小: 1

要求引用

下の書類に記入して、できるだけ早くご連絡します

Bargain Finds