Controlling RGB Led Strip With Arduino

Introduction: Controlling RGB Led Strip With Arduino

About: I am an engineering student and i just love doing electronic (mcu's) and programming (C,C++,JAVA) based projects.

Hello guys , in this instructables i have controlled the RGB Led strip using Arduino.The project is quite simple we are using three potentiometers to trigger Red Green & Blue color of the RGB Led strip individually so the idea is really simple by combination of three potentiometers we can glow any particular intensity of any of the three color and as we know we can generate any color by these three Red Green & Blue color so in short by this we can make the RGB LED strip glow in any color and since ARDUINO can not provide enough power to RGB LED strip to glow so i used a IRLZZ4N Mosfet to amplify the signal to provide enough power for RGB LED strip to glow,you can use any equivalent Mosfet/Bjt any high power transistor.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Gather Your Components

Step 2: Circuit Connection

connect all the circuit according to the given schmatics.

Step 3: Programming

The code is really simple.Upload the code shown in the image.

Step 4: Test It

so finally it is done , now varry any of 3 potentiometer to varry any of 3 (red,blue,green) color intensityand if have any issue refer video.

Be the First to Share

    Recommendations

    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    4 Discussions

    0
    ibrahi7m
    ibrahi7m

    19 days ago

    Nice project bro, thank you. But circuit has one problem. Solution is attached image.
    And.. Code is here (now you can copy-paste guys):

    void setup() {
    pinMode(9,1);
    pinMode(10,1);
    pinMode(11,1);
    }
    int a,b,c;
    void loop() {
    a=analogRead(A0);
    b=analogRead(A1);
    c=analogRead(A2);
    analogWrite(9,a/4);
    analogWrite(10,b/4);
    analogWrite(11,c/4);
    }

    pot_led_strip_diagram.png
    0
    DavidM1609
    DavidM1609

    1 year ago on Step 4

    This was the first project / video I found that does exactly what I want to do, however I can't see what value the Arduino adds, you're not using the PWM of it to reduce load and increase LED lifespan, it's just acting like a programmable potentiometer....

    0
    greg.tomsho
    greg.tomsho

    Question 1 year ago on Step 2

    In the circuit diagram, it looks like the jumper wire (highlighted in attached figure) goes from +5v to ground. Shouldn't it connect the two ground rails?

    2018-06-18_10-32-55.jpg
    0
    tytower
    tytower

    Tip 1 year ago

    Put the ".ino" file here . Getting text from an image is very cumbersome