Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to build an IR remote-operated RGB LED strip using Arduino

By Ashutosh Bhatt January 14, 2021

In the previous article from this series, we learned how to generate different colors in an RGB LED strip when using Arduino. We covered the basics in terms of how an RGB LED strip works, the types available, and how it can generate various colors. 

In this article, we’ll add to that knowledge base. You might already be familiar with some of the LED strips available on the market, including ones with a small remote. This IR remote operates the strip and is used to turn it on or off, change the colors, and increase or decrease the brightness, etc.

The idea for this project is similar. We’re going to build IR remote-operated RGB LED strip using Arduino. What’s interesting (and convenient) is that you can use any IR remote to operate it — including an STB or TV remote, or any other IR remote. 

So, let’s get started. First, we’ll review the circuit diagram and how it operates, followed by the program.

Circuit diagram

This circuit is built using only four components:

  • The TSPO1738 is an IR receiver (sensor) that receives remote signals (from any IR remote). It has these interfacing pins: Vcc, GND, and output. The Vcc pin receives 5V from the Arduino board. The ground pin must be connected to the common ground. And, the output pin should be connected with Arduino’s pins D2 and D3.
  • The ULN2003A is a current-driver chip with built-in Darlington pairs (7) that are used to provide current to the LED strip. It receives the same 12V supply that’s given to both the RGB strip and Arduino. Arduino analog outputs D9, D10, and D11 are connected to three of the chip’s inputs. Its corresponding outputs are connected with the strip’s R, G, and B inputs.
  • The Arduino board, ULN2003A chip, and strip all are given 12 V supply from an adapter (12V@2A).

Circuit operation

  • It’s important to first read and decode the codes from the IR remote that you plan to use. To do so, simply connect TSOP1738 with the Arduino board, as shown.
  • Next, download the library called, “IRremote” from GitHub. Copy the library into the root directory (folder) or to Arduino (C:\arduino-1.6.7\libraries). Then, you should easily be able to access the library from the Arduino IDE software as: sketch menu -> include library -> IRRemote 
  • Upload the program given here into Arduino.
  • Allow Arduino to connect to your laptop/PC through a USB cable.
  • Run the program and start the serial monitor in Arduino IDE.
  • Now, press any button from the remote that you’d like to use. You’ll see some code pop up (such as… 4 – 5 – 6 – 8 – 10 digits). Note down these codes for their respective buttons. They will also be used for controlling the strip.
  • These codes will also be used in the main program to perform different operations, such as changing the color or brightness, etc. 

The IR remote-operated RGB LED strip.

Next, let’s review how the complete circuit works…

  • The IR sensor, TSOP1738, receives code from the remote and passes this message onto Arduino.
  • Arduino first decodes this message and compares it with the programmed code. 
  • If a match is found, Arduino will provide the PWM outputs on D9, D10, and D11 to generate different colors on the LED strip. For example, when any number key is pressed from the remote (1, 2, 3, etc.), Arduino will generate RED, GREEN, BLUE, etc .— the pre-programmed colors.
  • If the ‘0’ key is pressed on the remote, Arduino will generate a continuous multi-color effect. To stop this effect, you’ll need to reset the Arduino microcontroller.

Software program
Program 1: To decode the IR remote codes

Program 2: main program

You may also like:


  • What are different types of industrial robots?

  • What are LoRa gateways and what types are available?

  • How does LoRa modulation enable long-range communication?

  • What are the different types of EV charging connectors?

  • What types of motors are used in electric vehicles?

  • What is Wireless Electric Vehicle Charging System (WEVCS)?

Filed Under: Electronic Projects
Tagged With: Arduino
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Input impedance matching network
  • High Side current sensing
  • The comparison of different Tcl script checkers
  • Voltage mode pushpull is a nonsense SMPS?
  • Reducing "shoot-through" in offline Full Bridge SMPS?

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe