-55%

HX1838 紅外線接收遙控模組 紅外接收模組

NT$85 NT$38 未稅

HX1838遙控模組 紅外接收模組

  1. 感測器採用HX1838,靈敏度高
  2. 工作電壓5V
  3. 輸出形式:數位量輸出
  4. 設有固定螺栓孔,方便安裝
  5. 小板PCB尺寸:1.9cm * 1.4cm
  6. 電源指示燈(紅色)

尚有庫存

貨號: 72547632(A5-1) 分類: 標籤: , ,
  • 商品說明

商品說明

HX1838 紅外線接收遙控模組 紅外接收模組

  1. 感測器採用HX1838,靈敏度高
  2. 工作電壓5V
  3. 輸出形式:數位量輸出
  4. 設有固定螺栓孔,方便安裝
  5. 小板PCB尺寸:1.9cm * 1.4cm
  6. 電源指示燈(紅色)

二 小板介面說明(3線制)

  1. VCC  外接5V
  2. GND  外接GND
  3. DO   小板數位量輸出介面
#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}