IR Infrared Receiver Photo-detector Preamplifier 3-pin IR HS0038A2
-
RM3.50
- Product Code: IR HS0038A2
- Availability: In Stock
Use this simple IR receiver for infrared remote control of your next project. With low power consumption and an easy to use package, it mates well with embedded electronics and can be used with common IR remotes.
A miniaturized receiver for infrared remote control systems. A PIN diode and a preamplifier are assembled on a lead frame while the epoxy package acts as an IR filter. The demodulated output signal can be directly decoded by a microprocessor. Compatible with all common IR remote control data formats.
Features:
Arduino Sketch:
/* Show in the serial monitor what the IR receiver sends us (we use the TSOP2236) */ #include <IRremote.h> const int RECEIVE_PIN = 8; IRrecv irrecv(RECEIVE_PIN); decode_results results; void setup() { Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver } void loop() { Serial.print("0x"); Serial.println(results.value, HEX); delay(50); irrecv.resume(); // Receive the next value }
Open the serial monitor of the Arduino IDE (Tools -> Serial monitor). Here we will see the output of the sketch. Take the remote control of your TV, stereo or whatever. Aim it at the receiver and press some buttons. Notice the output in the serial monitor. If you don’t see any results in the monitor, please make sure you connected everything correct and make sure it is set to 9600 baud at the bottom right of the window.