RGB Full Color LED Module

Description:

RGB LED module consists of a plug-in full color LED made by RGB three pin PWM voltage input can be adjusted section three primary colors (red/blue/green) strength in order to achieve full color mixing effect. Control of the module with the Arduino can be achieved cool lighting effects.

Features:

  •    the use of plug-in full-color LED
  •    RGB trichromatic limiting resistor to prevent burnout
  •    through the PWM adjusting three primary colors can be mixed to obtain different colors
  •    with a variety of single-chip interface
  •    the working voltage: 5V
  •    LED drive mode: common cathode driver

Mikroelectron Code:

int redpin = 11; // select the pin for the red LED

int bluepin = 10; // select the pin for the blue LED

int greenpin = 9 ;// select the pin for the green LED

int val;

void setup() {

    pinMode(redpinOUTPUT);

    pinMode(bluepinOUTPUT);

    pinMode(greenpinOUTPUT);

    Serial.begin (9600);

}

void loop()

{

    for (val = 255; val > 0; val--)

       {

        analogWrite(11val);

        analogWrite(10255 - val);

        analogWrite(9128 - val);

        delay(1);

      

  }

    for (val = 0; val < 255; val++)

       {

        analogWrite(11val);

        analogWrite(10255 - val);

        analogWrite(9128 - val);

        delay (1);

      

  }

    Serial.println(valDEC);

}

2 JD
Quantity
In stock



Related Products

subscribe to our weekly newsletter

loading
Categories