RGB_LED_Breakout__3528__SKU_DFR0239-DFRobot

DFR0239 RGB LED Breakout (3528)

Introduction

This small size breakout is programmable full-color RGB LED for hobbyists, industrial designers, prototypers, and experimenters. It is designed to allow the easy addition of dynamic indicators, displays, and lighting to existing or new projects. Controlled by PWM channels can be available in soft red, orange, yellow, green, blue and white...The high quality LED has wide viewing angle and optimized light coupling by inter reflector.

Specification

Connection Diagram

DFR0239 RGB LED Breakout (3528) Connection Diagram

Sample Code

As 3528 is a common anode component,the PWM value formula: PWM=255-RGB. For example: Purple(128,0,128)

int r=128;
int g=0;
int b=128; //purple

void setup()
{
  pinMode(9,OUTPUT);
  pinMode(10,OUTPUT);
  pinMode(11,OUTPUT);
  pinMode(12,OUTPUT);
}
void loop()
{
  digitalWrite(12,HIGH);    //Power 5V
  analogWrite(11,(255-r));
  analogWrite(10,(255-g));
  analogWrite(9,(255-b));
}

Documents

3258 RGB LED dataset

RGB Color Table

DFshopping_car1.png Get RGB LED Breakout (3528) from DFRobot Store or DFRobot Distributor.

Turn to the Top

category: Product Manual category: DFR Series <!--Hidden Categories--!> category: Source category: Diagram category: DFRobot