About This Project

In this tutorial, we will learn about Fading RGB LED through Arduino using “FOR LOOP”

Project Info

  • Programming Platform: Arduino IDE
  • Difficulty: Intermediate
  • Estimated Time: 1 Hr
  • Category: Arduino
  • Tags: RGB LED, Arduino, Jumper Wires (Male & Female), BreadBoard, Resistor.

Introduction

LED (light-emitting diode) is a semiconductor device that emits light when an electric current flows through it. When current passes through an LED, the electrons recombine with holes emitting light in the process. LEDs allow the current to flow in the forward direction and blocks the current in the reverse direction.

RGB is an acronym for Red Green and Blue. It is a 4 (four) terminal device. Three of which are R, G and B and the remaining terminal is either Cathode or Anode. The RGB LED has two types based on its power input i.e., common cathode and common anode. This type of LED can produce 3 (three) different solid colours (Red Colour, Green Colour and Blue Colour). Combination of these three colours can produce a maximum of 16M hues colours.

Applications of RGB LED

RGB LED is used in various industrial applications, light guides, decorative lights, LCD backlights, multicolor lights, portable flashlight/torchlight, indoor, and outdoor settings, automotive industry. etc. We will be using RGB LED for our Fading RGB LED light project.

Project: Fading RGB LED Light Using Arduino.

Advantages of RGB LED

Besides being small in size and occupying less area, the RGB LEDs are light in weight, have great efficiency, and are less toxic. Other than this, the contrast and brightness of RGB LEDs is better and can be used in multiple electronic projects with ease.

Components Required

IMAGE COMPONENT QUANTITY

Breadboard

Breadboard

1

rgb-led

RGB LED

1

arduino

Arduino

1

Resistor

Resistor, 220ohm

1

jumper-wire

Jumper Wires

As Per Requirement

Building Guide

Step 1: Circuitry of the Robot

  • Gather all the components required for Fading RGB LED project..

components-required-Fading-rgb-led-Light

 

Step 2: Connect one terminal of the Jumper Wire (male pin) on the ArduinoGround (GND) pin and the other side (female pin) to the Longest or Central pin of RGB. Take another Jumper Wire, female pin on any of the rest RGB pins and the other terminal to any of the resistor’s pins of 220 Ohms and another terminal of Resistor to the Digital Pin-9 of the Arduino.

connect-one-terminal-with-jumper-wire-fading-rgb-led-Light

Step 3: Coding

code-for-fading-rgb-led-Light

Step 4: Connect the USB cable on the Arduino and Upload the program. Now, we can see the light fading on the RGB LED.

The following code will help you to make the Fading RGB LED Light Using Arduino.

Code

DESCRIPTION

DOWNLOAD CODE

Fading RGB LED Light Using Arduino Code


Download Code

In this project, we understood about the RGB LED fading between colors. Hope you liked the project.