Módulo IR Receptor 38Khz para Arduino - KEYESTUDIO KS0026

:SEN03041
3,90 €
preço com IVA incluído

Este receptor de infravermelhos é usado para receber sinais infravermelhos e também usado na detecção para controlo remoto. O receptor possui um detector IR que é usado para receber a luz infravermelha emitida pelo emissor de infravermelhos. Esse detector têm um desmodelador dentro que descodifica os sinais a 38KHz. O receptor consegue receber sinais até 10 metros, a mais de 10 metros não é garantido que os receba nas perfeitas condições. Normalmente é usado em conjunto este receptor de infravermelhor e o Emissor de Infravermelhos.

Quantidade

DESCRIÇÃO EM PORTUGUÊS BREVEMENTE DISPONÍVEL

Se tiver alguma dúvida neste produto não hesite em contactar-nos.

*Atenção: as imagens são meramente ilustrativas.

Introduction

IR is widely used in remote control. With this IR receiver, Arduino project is able to receive command from any IR remoter controllers if you have right decoder. Well, it will be also easy to make your own IR controller using IR transmitter.

 

Specification

  • Power Supply: 5V
  • Interface: Digital
  • Modulation Frequency: 38Khz

 

Connection Diagram

The following image shows a suggested connection method. You may use any Digital I/O pin that is not in use by another device. 
Connections

NOTE: In the sample code below Digital pin 11 is in use, you may either change your wiring or change the sample code to match.

 

Sample Code

Note: before compiling the code, do remember to place the library into libraries directory of Arduino IDE. Otherwise, compiling will fail.

#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
  }
}


IR Remote Library includes some sample codes for sending and receiving:
IR Remote Library

 

Result

Done wiring and uploading the code, then control the IR receiver module by an infrared remote control, D1 led will flash. Shown as below.
example

 

SEN03041

Também poderá gostar