1lot Mô Đun Hồng Ngoại Tự Lắp Ráp Không Dây Hx1838 Cho Arduino Raspberry Pi


₫ 28.585

Sản phẩm 1lot Mô Đun Hồng Ngoại Tự Lắp Ráp Không Dây Hx1838 Cho Arduino Raspberry Pi đang được mở bán với mức giá siêu tốt khi mua online, giao hàng online trên toàn quốc với chi phí tiết kiệm nhất,0 đã được bán ra kể từ lúc chào bán lần cuối cùng.Trên đây là số liệu về sản phẩm chúng tôi thống kê và gửi đến bạn, hi vọng với những gợi ý ở trên giúp bạn mua sắm tốt hơn tại Pricespy Việt Nam

Features:

Latest infrared wireless remote control kit consists Mini Slim 38KHz IR remote control and infrared receiver modules, Mini Slim infrared remote control with 17 function keys, firing distances of up to 8 meters, ideal for a variety of devices in the control room. IR receiver module can receive standard 38KHz modulation remote control signal, through programming, you can achieve remote control signal decoding operation, which can produce a variety of remote control robots and interactive works.

Ultra-thin infrared remote control product parameters:
1 Transmission Distance: 8m above (specific and surroundings, the receiver sensitivity and other factors)
2 Effective angle: 60 degrees
3 Sticking Material: 0.125mmPET, the effective life of 20,000 times.
4. Stable quality, cost-effective
5 quiescent current 3-5uA, dynamic current 3-5mA.




#include

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
1. ou will need one Arduino for this. I used a UNO, but just about any Arduino should work. First wire up the infrared receiver that came with your kit. There are 3 wires, PWR, GND, and SIG, I used port 11 for SIG. Note! some readers have reported that their sensor has different wiring, double check it yourself.
2.In order to reverse engineer the remote and obtain the codes for each button we are going to need to download and install the following library.

https://github.com/shirriff/Arduino-IRremote 

Extract the file in your libraries directory. e.g.  ( C:\electronics\arduino-1.0.5\libraries )
note: I had to rename the library because the name was too long, I just renamed it to IR.
 3.With the IR folder ( or whatever you named it) now in your libraries directory, we can import it into a new sketch.

Start a new sketch and the Click  

        Sketch->Import Library->IR.
4.Paste the following code into the new sketch. Then verify it compiles.

#include

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
5.Connect the Arduino to your computer using the usb port, then upload the sketch. Open up the Serial Monitor, get the remote and press the buttons. Some hex codes should appear on the Serial Monitor.
Step 6: Record button codes

  Step 7: Works on any re

Sản Phẩm Liên Quan

HOT

Bikini hàng Âu

₫ 400.000
HOT
HOT

Bikini Thái

₫ 300.000
HOT

Bikini OKISS- QCXK

₫ 400.000
HOT

Bikini xuất Âu

₫ 300.000