If you look at the IR LED on your remote control while pressing different buttons, you will not be able to see this light. This is because infrared radiation is not visible to our eyes. But there is a trick you can use to see it: simply open your smartphone’s camera and point it at the LED while pressing different buttons to watch it flash in violet.
In this tutorial we will use the IR remote control and the receiver module with the Arduino to receive orders when you press different buttons and display the result on your computer.
Connect the wires between the receiver and the Arduino, as shown in the image below:
Connections from IR receiver to the Arduino:
• IR receiver GND pin (- pin) → Arduino VCC pin
• IR receiver VCC pin (+ pin) → Arduino VCC pin
• IR receiver signal pin → Arduino pin 7
Now access the serial monitor on your Arduino IDE by clicking on the magnifying glass icon at the top right corner.
When a button on the remote control is pressed, the serial monitor should display a code as seen in the image below. You can also see the receiver flashing in response to the signal.