Digital IR Receiver Module (SKU:DFR0094)
Contents
1 Introduction
2 Specification
3 Wiring Diagram
4 Sample Code
Introduction
Digital IR Receiver Module (SKU:DFR0094)
IR is widely used in remoter control. With this IR receiver, the Arduino project is able to receive
command from any IR remoter controller if you have the right decoder. Well, it will be also easy to
make your own IR controller using IR transmitter.
Specification
Power Supply:5V
Interface:Digital
Modulate Frequency:38Khz
Module interface socket:JST PH2.0
Wiring 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.
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
IR Receiver test code:
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#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
}
}
Powered By DFRobot © 2008-2017
很抱歉,暂时无法提供与“DFR0094”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+39.58729
- 3+34.95180
- 9+34.58049
- 国内价格 香港价格
- 1+40.568691+4.84770
- 3+35.840403+4.28270