• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino IR Remote Control RGB LED Circuit

Arduino IR Remote Control RGB LED Circuit

Last updated on 29 June 2026 by Admin-Lavi Leave a Comment

This Arduino project changes RGB LED color with IR remote; press one button and LED changes fast; no touch, no switch, only remote use;

IR sensor reads signal and Arduino drives LED and it feels like small smart light; also this Arduino IR Remote Control RGB LED Circuit is easy to build.

Arduino Code:

#include <IRremote.h>

int RECV_PIN = 2;
int redLED = 8;
int greenLED = 9;
int blueLED = 10;

IRrecv irrecv(RECV_PIN);
decode_results results;

void setup() {
Serial.begin(9600);
irrecv.enableIRIn();

pinMode(redLED, OUTPUT);
pinMode(greenLED, OUTPUT);
pinMode(blueLED, OUTPUT);
}

void loop() {
if (irrecv.decode(&results)) {

unsigned long code = results.value;
Serial.println(code);

if (code == 0xFF30CF) {
  digitalWrite(redLED, HIGH);
  digitalWrite(greenLED, LOW);
  digitalWrite(blueLED, LOW);
}

if (code == 0xFF18E7) {
  digitalWrite(redLED, LOW);
  digitalWrite(greenLED, HIGH);
  digitalWrite(blueLED, LOW);
}

if (code == 0xFF7A85) {
  digitalWrite(redLED, LOW);
  digitalWrite(greenLED, LOW);
  digitalWrite(blueLED, HIGH);
}

if (code == 0xFF10EF) {
  digitalWrite(redLED, LOW);
  digitalWrite(greenLED, LOW);
  digitalWrite(blueLED, LOW);
}

irrecv.resume();


}
}

Code Explanation:

  • IRremote library reads IR signal.
  • Pin 2 the receiver input pin.
  • Each button gives different hex value.
  • Arduino checks which value comes.
  • If red code comes then Arduino is ON only with red LED.
  • If green code comes then Arduino is ON only with green LED.
  • If blue code comes then Arduino is ON only with blue LED.
  • If OFF code comes then Arduino is OFF with all LEDs.
  • resume() waits for next signal.

Circuit Working:

Arduino IR Remote Control RGB LED Circuit Diagram

Parts List:

ComponentsQuantity
Resistors 220Ω3
Arduino UNO1
IR Receiver Module TSOP17381
RGB LED (Red, Green and Blue)1

IR remote sends tiny light signals and IR receiver catches these signals and then receiver gives one digital output to Arduino pin 2.

After that, Arduino reads this output and checks button code and then Arduino sees which color button we press.

Now Arduino turns ON or OFF red, green or blue LED pin and then LED changes to new color after each button press; hence this way the whole system works fast and easy.

How to Build:

To build a Arduino IR Remote Control RGB LED Circuit following are the connection steps:

  • First, connect all parts same like circuit diagram.
  • Next, IR receiver GND pin goes to Arduino GND, IR receiver VCC pin goes to Arduino 5V and IR receiver DATA pin goes to Arduino pin 2.
  • Then red LED goes to pin 8 with 220 ohm resistor, green LED goes to pin 9 with 220 ohm resistor and blue LED goes to pin 10 with 220 ohm resistor.
  • Finally, cathode pin connect to GND.

Conclusion:

Overall, this Arduino IR Remote RGB LED project is easy and fun and we can use the same idea for motors, relays or home devices.

Also, it is good project for beginners to learn Arduino basics.

Filed Under: Arduino Projects, Automation Circuits, Hobby Circuits, LED and Lamps, Remote Control Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Arduino LED Dimmer Circuit using IR Remote
Next Post: Arduino IR LED Transmitter Circuit »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (132)
  • Alarm Circuits (80)
  • Amplifier Circuits (94)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (150)
  • Automobile Circuits (40)
  • Battery Charger Circuits (86)
  • DIY Projects (413)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (24)
  • Hobby Circuits (229)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (12)
  • LDR Circuits (47)
  • LED and Lamps (201)
  • Meters and Testers (44)
  • Mini Projects (372)
  • Motor Controllers (25)
  • Oscillator Circuits (70)
  • Power Supply Circuits (240)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (20)
  • Security and Protection (127)
  • Sensors and Detectors (234)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (178)
  • Transmitter Circuit (19)
  • Tutorials (31)
  • Voltage Regulator (43)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. egidio grzinic on High Voltage Fence Charger Circuit
  3. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR
  4. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  5. colin on Simple Single Transistor Audio Amplifier Circuit

Copyright © 2026 | New Circuit Ideas