Remote Control Leds
check tinkercad circuit and simulation
https://www.tinkercad.com/things/aAtvMm2DffW-copy-of-ir-remote-toggles-10-leds/editel?sharecode=zAkE7Ulxv-TAesz5hKbdIe9DuATwFwZbK4fMcdkKtME
How Does It Work?
Whenever a button is pressed on the remote, it sends an infrared signal in encoded form. This signal is then received by the IR receiver and given to the Arduino.
We will save the code for the buttons that we want to control the LEDs in the Arduino code. Whenever a button on the remote is pressed, the Arduino receives a code. The Arduino will compare this code with the codes already saved, and if any of them match, the Arduino will turn on the LED connected to that button.
Circuit Diagram
First, connect the four LEDs to the Arduino. Connect the positives of the four LEDs to the pins 7, 6, 5, and 4. Connect the negative of the four LEDs to GND on the Arduino through the 220 ohm resistors. The longer wires on the LEDs are positive and the shorter wires are negative.
Then connect the IR sensor to the Arduino. The connections for the IR sensor with the Arduino are as follows:
Connect the negative wire on the IR sensor to GND on the Arduino.Connect the middle of the IR sensor which is the VCC to 5V on the Arduino.Connect the signal pin on the IR sensor to pin 8 on the Arduino.
Arduino Code
Note
after you upload the code you should first open the serial monitor to know the serial number for each remote number then make changes on code