• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

Circuits for Beginners | Basic Circuits | LED Driver | Hobby Circuits | Transistor Circuits

New-Projects | Privacy Policy | About us | Contact | Disclaimer | Copyright | Videos

You are here: Home / DIY LED Projects / Simple RGB LED Color Mixer Circuit using LM317 IC

Simple RGB LED Color Mixer Circuit using LM317 IC

Last Updated on February 23, 2020 by Swagatam 14 Comments

ask questions through comments

The post explains a simple LM317 IC based RGB 3 watt LED color mixer circuit, which can be used for demonstrating the color mixing effects of red, blue, green colors as specified in the standard color charts. The idea was requested by Mr.Praveen.

Technical Specifications

My name is Pravin, I work in school as Physics technician.I need to show kids colour mixing of red green and
blue. I would like to be able to vary the brightness of the three
colours LEDs to show the effect it has on screen. I have 3W RGB LEDs. 
Could you please help me to make a circuit . The simple the better.I have tried to make one with LM317 IC. 
Regards, 

Pravin

Analyzing the RGB LED Specifications

The following image shows a typical 3 watt RGB LED.

According to the datasheet of this LED the three leads on each side correspond with the three leads on the other side on a straight line such that the two straight ends left to right form the terminals of the red, green, blue LEDs embedded respectively inside the package.

Therefore, the upper most left, right end to end leads may form the cathode, anode of the red LED, the center left, right leads may correspond to the green LED, and identically the lower most left, right end to end leads may signify the terminals for the blue LED.

How to Configure the LED Pinouts

Configuring these leads of this RGB LED such that the individual colors can be adjusted separately, is actually quite easy.

The idea is simply to integrate three separate adjustable voltage regulators for these three LEDs, for example by using a LM317 voltage regulator, as shown in the following diagram.

 

Using LM317 Regulator for the Control Circuit

Referring to the above diagram one can visualize that the three LM317 voltage regulators are in fact exactly identical with their part and wiring configuration.

Each of the modules have the facility of voltage adjustment and are all current controlled through a BC547 transistor and a resistor Rc.

The leads of the 3 watt LED are hooked up individually to the outputs of the 3 LM317 circuits, while the input is fed to all the 3 modules through a common DC source which could be a SMPS adapter rated appropriately for handling the RGB illumination.

The anode, cathode orientation of the LED is also indicated in the diagram which must be carefully and correctly set before connecting them to the 317 outputs.

Once everything is completed, and the power is switched ON, the voltage control feature present in the LM317 modules can be used for setting up the illumination levels of the respective LEDs discretely for creating any of the specified color effects, right from the primary RGB to voilet, indigo, orange, maroon etc etc.

The 10K presets of the 317 circuit can be replaced with 10K pots for enabling an external control for the intended color mixing effects on the LED.

The value of  Rc can be calculated by using the following formula:

Rc = 0.6/LED current rating

Simple RGB Color Mixer using Transistors

RGB color mixer, flasher and fader circuit

For color mixing, 3nos of 8050 variable voltage power supply could beuilt and their outputs connected with points A, B and C.

For creating fading effect, fading circuit could be connected to point E

For flashing effect point F could be used for supplying the flashing signal.

get free help for circuit diagrams

You'll also like:

  • 1.  Simple Digital Water Flow Meter Circuit using Arduino
  • 2.  Simple FM Radio Circuit Using a Single Transistor
  • 3.  Simple Touch Operated Potentiometer Circuit
  • 4.  2 Simple Arduino Temperature Meter Circuits Explored
  • 5.  220V/120V LED String Light Circuit using a Single Capacitor
  • 6.  SCR Applications Circuits

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

Subscribe for the Latest Posts


 

Reader Interactions

Comments

    Have Questions? Please post your comments below for quick replies! Comments should be related to the above artcile Cancel reply

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

  1. Neville Cawood says

    May 5, 2021 at 2:53 pm

    RGB in mid to high end computer systems is unavoidable nowadays and many people hate it.
    There is seldom a way to set the RGB to a single colour.
    (eg: Red for AMD or blue for Intel, white for seeing what you’re doing when working in the system)
    If there is; it’s through a bloated, buggy, resource hogging piece of software.

    Suggestion/request.
    A simple, 3 dial, hardware option that easily plugs into the 5 volt standby power of a computer PSU and to all RGB lighting, fans, etc.
    Allowing one can dail in any single colour you desire even when the system is off.

    I believe there’s a substantial market for such.

    Reply
    • Swagatam says

      May 5, 2021 at 4:54 pm

      Sorry I could not understand the objective of the design, Why do we need the 5 V from the computer, it can be acquired from any ordinary mobile charger unit. However, a 5 V supply cannot be sufficient for powering RGB LEDs and the fans together…

      Reply
  2. GeoffN says

    July 19, 2018 at 7:04 pm

    Hi Swagatam, I have some 3 watt RGB LEDs on a star base that have a common cathode, could you suggest a circuit setup to drive these. I have been toying with a PNP and NPN circuit with an Arduino but wasn’t very successful.
    Regards
    Geoff

    Reply
    • Swag says

      July 19, 2018 at 8:05 pm

      Hi Geoff, could you please specify on what manner or mode would you want to illuminate them?

      Reply
      • GeoffN says

        July 20, 2018 at 7:40 am

        Hi Swagatam, thank you for your reply. At the moment I only have two of them to play with, so I was thinking of just getting them illuminated as single RGB and then mixing the colours and fading and flashing. These are the specs for them Red: 2.5V ~ 3.0V, 350mA, Green: 3.2V ~ 3.8V, 350mA
        Blue: 3.2V ~ 3.8V, 350mA.
        Regards
        Geoff

        Reply
        • Swag says

          July 20, 2018 at 9:31 am

          Hi Geoff, and how do you want to implement the steps, through automatic sequencing or manually through a switch and potentiometer?

          Reply
          • GeoffN says

            July 20, 2018 at 10:13 am

            Hi Swagatam, I will be using the switch and potentiometer.

            Reply
            • Swag says

              July 20, 2018 at 4:36 pm

              Hi Geoff, I have updated a design idea which you could try. If you succeed in building it, please send the video clip to my email, if possible….

              Reply
            • GeoffN says

              July 21, 2018 at 5:15 am

              Thanks Swagatam, I will give it a go. The diodes, will 1N4818 suffice?
              Regards
              Geoff

              Reply
              • Swag says

                July 21, 2018 at 6:32 am

                You are welcome Geoff, since the LEDs are high watt, the diode must be 1N4007 or higher.

                Reply
  3. Linas says

    April 22, 2017 at 8:50 am

    hello, would this circuit work for RGB led strip?

    Reply
    • Swagatam says

      April 23, 2017 at 4:12 am

      yes it can be used with any RGB LED….you just need to set the voltage accordingly

      Reply
  4. Claudiu Dinca says

    January 12, 2017 at 2:44 pm

    which is the functional range of voltage

    Reply
    • Swagatam says

      January 13, 2017 at 5:19 am

      set it as per the specs of the LED…input can be minimum 3V higher than the LED voltage spec

      Reply

Primary Sidebar



Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (52)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (98)
  • 741 IC Circuits (19)
  • Amplifiers (59)
  • Arduino Engineering Projects (83)
  • Audio Projects (94)
  • Battery Chargers (83)
  • Car and Motorcycle (94)
  • Datasheets (46)
  • Decorative Lighting (Diwali, Christmas) (32)
  • DIY LED Projects (89)
  • Electronic Components (97)
  • Electronic Devices and Circuit Theory (35)
  • Electronics Tutorial (109)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Fun Projects (12)
  • GSM Projects (9)
  • Health Related (19)
  • Heater Controllers (28)
  • Home Electrical Circuits (100)
  • How to Articles (20)
  • Incubator Related (6)
  • Industrial Electronics (28)
  • Infrared (IR) (40)
  • Inverter Circuits (98)
  • Laser Projects (12)
  • LM317/LM338 (21)
  • LM3915 IC (25)
  • Meters and Testers (64)
  • Mini Projects (156)
  • Motor Controller (66)
  • MPPT (7)
  • Oscillator Circuits (24)
  • PIR (Passive Infrared) (8)
  • Power Electronics (33)
  • Power Supply Circuits (74)
  • Radio Circuits (9)
  • Remote Control (47)
  • Security and Alarm (61)
  • Sensors and Detectors (118)
  • SG3525 IC (5)
  • Simple Circuits (74)
  • SMPS (29)
  • Solar Controllers (60)
  • Timer and Delay Relay (53)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (40)
  • Ultrasonic Projects (14)
  • Water Level Controller (45)


Circuit Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator


You can also Chat with me here:

Facebook
Twitter
YouTube
Instagram
My Facebook-Page
Quora



© 2022 · Swagatam Innovations

We use cookies on our website to give you the best experience.
Cookie settingsAccept All
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Please visit the Privacy Policy Page for more info.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT