Light_Disc__SKU_DFR0106_-DFRobot

Introduction

This fantastic light disc consists of 7 SMD RGB LEDs. It illustrates a beautiful color combination much better than traditional RGB leds. You can control the LEDs via the RGB pins. By pulse-width-modulating the pins any color can be created by mixing different amounts of red, green, and blue. Running from a 5V source, these LEDs are painfully bright. Using a proper case, you can create a beautiful mood light in just minutes.

Ideal for Arduino lighting project. It can be powered by Arduino Digital Pin out with only USB power supply.

It has built in resistors, it will work flawlessly with Arudino 5V power.

Specification

Tutorial

Connection Diagram

DFR0106 Connection Diagram

This Disk requires PWM pins, you may use any Pins capable of PWM output.

Sample code


//This sample code use Digital Pin 3,5,6 and GND
// This code only works for V1 version which comes with a soldered cable
// www.dfrobot.com
// Last modified on 26/11/2014

int B = 3; //Connect Blue led to Digital pin 3
int R = 5;//Connect Red led to Digital pin 5
int G = 6;//Connect Green led to Digital pin 6

//Connect the 5V pin of light disc to GND Pin of Arduino


void setup()
{
  pinMode(3,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
}

void loop()
{
  analogWrite(B,random(255));
  analogWrite(R,random(255));
  analogWrite(G,random(255));
  delay(80);
}

FAQ

Q&A Some general Arduino Problems/FAQ/Tips
A For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents