اطلاعیه

Collapse
No announcement yet.

سنسور گاز کربن منوکسید mq-7

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    سنسور گاز کربن منوکسید mq-7

    سنسور گاز کربن مونوکسید MQ-7
    سنسورهای گاز سری MQ از هیتر داخلی کوچک به همراه سنسور الکتروشیمیایی بهره می گیرند.داین سنسورها نسبت به طیف گسترده ای از گازها حساس اند. سنسور MQ-7 برای تشخیص گاز CO بکار می رود. این سنسور توانایی تشخیص غلظت CO موجو در هوا را دارد.محدوده غلظت قابل سنجش این سنسور بین 20ppm تا 2000ppm می باشد. حساسیت بالا ، پاسخ گویی در کمترین زمان ممکن و خروجی آنالوگ از خصوصیات این سنسور می باشد. راه اندازی این سنسور آسان است و شما به راحتی می توانید با اتصال خروجی آنالوگ سنسور به ADC آردوینو ،آن را راه اندازی کنید.

    کاربردها
    تشخیص گاز CO در محیط های صنعتی و خانگی
    ساخت تشخیص دهنده گاز قابل حمل

    مثال
    در این مثال تشخیص گاز CO توسط سنسور MQ-7 متصل به آردوینو منجر به روشن شدن LED پین 13 می شود.
    کد:
    [CPP]
    // These constants won't change.  They're used to give names
    // to the pins used:
    const int analogInPin = A0;  // Analog input pin that the potentiometer is attached to
    const int ledPin = 13;                 // LED connected to digital pin 13
    
    int sensorValue = 0;        // value read from the sensor
    
    
    
    
    void setup() {
      // initialize serial communications at 9600 bps:
      Serial.begin(9600); 
      pinMode(ledPin, OUTPUT);      // sets the digital pin as output
    }
    
    void loop() {
      // read the analog in value:
      sensorValue = analogRead(analogInPin);            
      // determine alarm status
      if (sensorValue >= 750)
      {
        digitalWrite(ledPin, HIGH);   // sets the LED on
      }
      else
      {
      digitalWrite(ledPin, LOW);    // sets the LED off
      }
    
      // print the results to the serial monitor:
      Serial.print("sensor = " );                       
      Serial.println(sensorValue);     
    
      // wait 10 milliseconds before the next loop
      // for the analog-to-digital converter to settle
      // after the last reading:
      delay(10);                     
    }
    
    
    [/CPP]
    لینک دانلود پروژه
    جدیدترین ویرایش توسط ali_ezzati; ۱۰:۲۳ ۱۳۹۵/۰۷/۱۹.
لطفا صبر کنید...
X