Information
Item weight
Barcode
Created time
Last updated on
Item description
รายละเอียดสินค้า

โมดูลส่งค่าแบบ IR หรืออินฟาเรดที่ความถี่ 38kHz ทำงานเหมือนตัวส่งสัญญาณจากรีโมต
 

คุณสมบัติอุปกรณ์

โมดูลสงค่าแบบ IR KY-005 ประกอบด้วย LED IR ขนาด 5mm สามารถใช้งานได้กับ โมดูลรับค่าแบบ IR KY-022 ใช้งานได้กับบอร์ดยอดนิยมทุกประเภท เช่น Arduino, Teensy, Raspberry Pi, ESP8266 และ ESP32
 
Operating Voltage 5V
Forward Current 30 ~ 60 mA
Power Consumption 90mW
Operating Temperature -25°C to 80°C [-13°F to 176°F]
Dimensions 18.5mm x 15mm [0.728in x 0.591in]
 
 

ตัวอย่างโค้ด บน Arduino


  #include <IRremote.h>
  IRsend irsend;
   
  void setup()
  {
  Serial.begin(9600);
  }
   
  void loop()
  {
  for (int i = 0; i < 50; i++) {
  irsend.sendSony(0xa90, 12); // Sony TV power code
  delay(40);
  }
  }


ตัวอย่างโค้ด บน ESP8266

ให้ดาวน์โหลด Library ชื่อ IRRemoteESP8266 จากใน Tools->Library manager 



ตัวอย่าง Code IRRemote esp8266


  /* IRremoteESP8266: IRsendDemo - demonstrates sending IR codes with IRsend.
  *
  * Version 1.1 January, 2019
  * Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009,
  * Copyright 2009 Ken Shirriff, http://arcfn.com
  *
  * An IR LED circuit *MUST* be connected to the ESP8266 on a pin
  * as specified by kIrLed below.
  *
  * TL;DR: The IR LED needs to be driven by a transistor for a good result.
  *
  * Suggested circuit:
  * https://github.com/crankyoldgit/IRremoteESP8266/wiki#ir-sending
  *
  * Common mistakes & tips:
  * * Don't just connect the IR LED directly to the pin, it won't
  * have enough current to drive the IR LED effectively.
  * * Make sure you have the IR LED polarity correct.
  * See: https://learn.sparkfun.com/tutorials/polarity/diode-and-led-polarity
  * * Typical digital camera/phones can be used to see if the IR LED is flashed.
  * Replace the IR LED with a normal LED if you don't have a digital camera
  * when debugging.
  * * Avoid using the following pins unless you really know what you are doing:
  * * Pin 0/D3: Can interfere with the boot/program mode & support circuits.
  * * Pin 1/TX/TXD0: Any serial transmissions from the ESP8266 will interfere.
  * * Pin 3/RX/RXD0: Any serial transmissions to the ESP8266 will interfere.
  * * ESP-01 modules are tricky. We suggest you use a module with more GPIOs
  * for your first time. e.g. ESP-12 etc.
  */
   
  #include <Arduino.h>
  #include <IRremoteESP8266.h>
  #include <IRsend.h>
   
  const uint16_t kIrLed = 4; // ESP8266 GPIO pin to use. Recommended: 4 (D2).
   
  IRsend irsend(kIrLed); // Set the GPIO to be used to sending the message.
   
  // Example of data captured by IRrecvDumpV2.ino
  uint16_t rawData[67] = {9000, 4500, 650, 550, 650, 1650, 600, 550, 650, 550,
  600, 1650, 650, 550, 600, 1650, 650, 1650, 650, 1650,
  600, 550, 650, 1650, 650, 1650, 650, 550, 600, 1650,
  650, 1650, 650, 550, 650, 550, 650, 1650, 650, 550,
  650, 550, 650, 550, 600, 550, 650, 550, 650, 550,
  650, 1650, 600, 550, 650, 1650, 650, 1650, 650, 1650,
  650, 1650, 650, 1650, 650, 1650, 600};
   
  void setup() {
  irsend.begin();
  #if ESP8266
  Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
  #else // ESP8266
  Serial.begin(115200, SERIAL_8N1);
  #endif // ESP8266
  }
   
  void loop() {
  Serial.println("a rawData capture from IRrecvDumpV2");
  irsend.sendRaw(rawData, 67, 38); // Send a raw data capture at 38kHz.
  delay(2000);
  }
Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,072,402 view(s)
Visitors1,333,128 time(s)
Last updatedSep 6, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me