• 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 11 November 2025 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.

It feels like small smart light.

This Arduino IR Remote Control RGB LED Circuit is easy to build.

Arduino Coding:

#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 is 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:

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

IR remote sends tiny light signals.

IR receiver catches these signals.

Receiver gives one digital output to Arduino pin 2.

Arduino reads this output and checks button code.

Arduino sees which color button we press.

Then Arduino turns ON or OFF red, green or blue LED pin.

LED changes to new color after each button press.

Whole system works fast and easy.

How to Build:

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

  • Connect all parts same like circuit diagram.
  • IR receiver GND pin goes to Arduino GND.
  • IR receiver VCC pin goes to Arduino 5V.
  • IR receiver DATA pin goes to Arduino pin 2.
  • Red LED goes to pin 8 with 220 ohm resistor.
  • Green LED goes to pin 9 with 220 ohm resistor.
  • Blue LED goes to pin 10 with 220 ohm resistor.
  • Cathode pin connect to GND.

Conclusion:

This Arduino IR Remote RGB LED project is easy and fun.

We can use the same idea for motors, relays or home devices.

It is good project for beginners to learn Arduino basics.

References:

RGB LED controlled using IR Remote

Filed Under: Arduino Projects, 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

  • Alarm Circuits (47)
  • Amplifier Circuits (67)
  • Arduino Projects (101)
  • Audio Circuits (120)
  • Automobile Circuits (19)
  • Battery Charger Circuits (72)
  • Free Energy (13)
  • Heater and Temperature Controllers (14)
  • High Voltage (9)
  • Indicator Circuits (48)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (163)
  • Meters and Testers (31)
  • Motor Controllers (22)
  • Oscillator Circuits (43)
  • Power Supply Circuits (152)
  • Remote Control Circuits (10)
  • Security and Protection (31)
  • Sensors and Detectors (130)
  • Solar Circuits (30)
  • Timer Circuits (47)
  • Transistor Circuits (114)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (7)

Recent Posts

  • Simple 24V 1A DC Power Supply Circuit using 7824 IC
  • DC Voltage Splitter Circuit with Op-Amp and Transistor Buffer
  • Simple Adjustable 5V to 12V Voltage Regulator Circuit using Transistors
  • High Current 5V 3A Voltage Regulator Circuit
  • How to Increase 7805 Output Voltage using Diodes

Recent Comments

  1. Admin-Lavi on Simple Morse Key Circuit using IC 555
  2. Vladimír Zoch on Simple Morse Key Circuit using IC 555
  3. Admin-Lavi on FM Transmitter Circuit (100 meters range)
  4. Kark Arkle on FM Transmitter Circuit (100 meters range)
  5. ±15V Dual Regulator Circuit using Two Terminal Transformer - Circuit Ideas for You on ±15V Dual Power Supply Circuit using 7815 and 7915 ICs

Copyright © 2026 | New Circuit Ideas