{{ 'fb_in_app_browser_popup.desc' | translate }} {{ 'fb_in_app_browser_popup.copy_link' | translate }}
{{ 'in_app_browser_popup.desc' | translate }}
{{word('consent_desc')}} {{word('read_more')}}
{{setting.description}}
{{ childProduct.title_translations | translateModel }}
{{ getChildVariationShorthand(childProduct.child_variation) }}
{{ getSelectedItemDetail(selectedChildProduct, item).childProductName }} x {{ selectedChildProduct.quantity || 1 }}
{{ getSelectedItemDetail(selectedChildProduct, item).childVariationName }}
MQ-135 harmful gas sensing module for ammonia, sulfides, benzene vapor and smoke
DC 5V | 10-1000ppm | analog + TTL dual output (TTL active low) | 32.4 x 20.4mm
Plug-in sensing probe can be replaced, mounting holes included
滿千免運優惠(限郵寄和超商純取貨) on order
本賣場無實體店面,無提供自取服務,敬請見諒。 on order
Not enough stock.
Your item was not added to your cart.
Not enough stock.
Please adjust your quantity.
{{'products.quick_cart.out_of_number_hint'| translate}}
{{'product.preorder_limit.hint'| translate}}
Limit {{ product.max_order_quantity }} per order.
Only {{ quantityOfStock }} item(s) left.
MQ-135 空氣品質檢測模組可用於偵測多種有害氣體,包括氨氣、硫化物、苯系蒸氣與煙霧等,能在 10~1000 ppm 濃度範圍內提供穩定量測結果。模組具備訊號輸出指示燈與雙路輸出(類比電壓與 TTL 電位訊號),其中 TTL 為低電位有效,適合直接連接單晶片 I/O 腳位。類比輸出會隨氣體濃度上升而增加,方便即時監測環境變化。感測器採可插拔式設計,具備快速反應與高穩定特性,安裝孔位設計便於固定於實驗或產品中,適合家庭空氣偵測、工業污染監控與環境品質研究應用。
商品特徵:
應用範圍:
功能介紹:

實現功能:當偵測到的氣體濃度大於設定值時,單晶片 I/O 腳位輸出低電位
/********************************************************************
功能說明:此版本配套測試程式
使用晶片:AT89S52
時脈晶振:11.0592 MHz
傳輸鮑率:9600
編譯環境:Keil
【聲明】此程式僅供學習與參考使用
********************************************************************/
/********************************************************************
說明:1. 當偵測濃度大於設定值時,單晶片 I/O 腳位輸出低電位。
********************************************************************/
#include <reg52.h> // 函式庫檔
#define uchar unsigned char // 巨集定義:無號字元型
#define uint unsigned int // 巨集定義:無號整數型
/********************************************************************
I/O 定義
********************************************************************/
sbit LED = P1^0; // 定義單晶片 P1 埠的第 0 位(P1.0)為指示燈輸出端
sbit DOUT = P2^0; // 定義單晶片 P2 埠的第 0 位(P2.0)為感測器輸入端
/********************************************************************
延遲函式
********************************************************************/
void delay() // 延遲副程式
{
uchar m, n, s;
for(m = 20; m > 0; m--)
for(n = 20; n > 0; n--)
for(s = 248; s > 0; s--);
}
/********************************************************************
主程式
********************************************************************/
void main()
{
while(1) // 無限迴圈
{
LED = 1; // 熄滅 P1.0 腳位的指示燈
if(DOUT == 0) // 當氣體濃度高於設定值時,執行條件判斷
{
delay(); // 延遲以避免干擾
if(DOUT == 0) // 再次確認濃度仍高於設定值
{
LED = 0; // 點亮 P1.0 腳位指示燈
}
}
}
}
/********************************************************************
程式結束
********************************************************************/