รหัสสินค้า | M1549_flame |
หมวดหมู่ | ความชื้น และอุณหภูมิ ความดันบรรยากาศ |
ราคา | 30.00 บาท |
น้ำหนัก | 10 กรัม |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 11 พ.ย. 2560 |
อัพเดทล่าสุด | 15 ธ.ค. 2567 |
จำนวน | Unit |
Flame Detection Sensor Module for Arduino DIY project ( Red and Blue Color )
Flame Detection Sensor Module :
1. Brand new flame detection sensor module
2. Sensor for flame wavelengths between 760 nm to 1100 nm infrared is most sensitive
3. Two outputs: 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
4. 60 degree detection sensor
5. Suitable for Arduino DIY project
Flame Detection Sensor Module Specifications:
1. Voltage: DC 3~5.5V
2. Material: PCB
3. Color: Blue + Red + Silver Grey
Flame Detection Sensor Module Package Including:
1 pcs x Flame Detection Sensor Module
ตัวอย่างการต่อใช้งาน
โคดตัวอย่าง Arduino KY-026
//Example for KY-026 mcucity.com #define LED 13 // define LED Interface #define PIN_DQ 3 // define the flame sensor interface #define PIN_AQ A0 // define the flame sensor interface #define FLAME_COUNTER 40 #define BUZZER 8 uint8_t val ;// define numeric variables val uint16_t sensor; //read analoog value int Flame = 0; int Flame_flag = 0; int state; unsigned long interval = 1000; // the time we need to wait unsigned long previousMillis = 0; // millis() returns an unsigned long. unsigned long currentMillis; // grab current time void setup () { Serial.begin(9600); pinMode (LED, OUTPUT) ; // define LED as output interface pinMode (BUZZER ,OUTPUT) ; // BUZZER pinMode (PIN_DQ , INPUT) ; // output interface defines the flame sensor pinMode (PIN_AQ, INPUT) ; // output interface defines the flame sensor Serial.print("Flame Detection Sensor\n\n"); // (ตรวจจับเปลวไฟ) } void loop () { sensor = analogRead(PIN_AQ); Serial.print("Flame :"); Serial.println(analogRead(PIN_AQ)); // display tempature val = digitalRead (PIN_DQ) ;// digital interface will be assigned a value of 3 to read val if(val == HIGH) { Flame++; if(Flame > FLAME_COUNTER) { Flame_flag = 1;} delay(10); } else { Flame = 0; } //-------------------------------------- if(Flame_flag == 1) { digitalWrite(LED, HIGH); // digitalWrite(LED, state); digitalWrite(BUZZER, state); currentMillis = millis(); if ( (currentMillis - previousMillis) > 500) { previousMillis = millis(); state = ~state; } } }
หน้าที่เข้าชม | 5,167,807 ครั้ง |
ผู้ชมทั้งหมด | 1,567,147 ครั้ง |
ร้านค้าอัพเดท | 7 ก.ย. 2568 |