EB - 8mm RGB LED

$1.99

  • Model: EB0400010M
  • Shipping Weight: 3gram
  • 9998 Units in Stock

Add to Cart:



Item specifics

Brand Name:Maker Studio

Product Description

Electronic Brick - 8mm RGB Color LED is a light module. It can show red, green and blue by controlling input signal of IO pins. Remix RGB signal can get more color.  

 

Features

  • Rated Voltage: 3.3V-5V
  • With Makerduino Demo Code
  • Weight:2g

 

Applications

  • Advertisements screen

 

Details

aeProduct.getSubject()

Use with Makerduino

The following steps show how to use EB - RGB LED with Makerduino.

Materials

  • Makerduino
  • Electronic Brick Shield
  • EB - RGB LED
  • A/B type USB cable
  • Female DuPont wires

 

Steps

1. Connect Electronic Brick Shield onto Makerduino to bring out all the Makerduino Pins.

aeProduct.getSubject()

 

2. Connect EB - RGB LED to Makerduino as following

aeProduct.getSubject()

3. Connect the Makerduino to Computer by the USB cable.

 

4. Download the Makerduino demo code EB - RGB LED.zip. Unzip the code directly into the libraries folder.

 

5. Open Makerduino IDE, choose the right Board and Serial Port. Open the sketch EB_RGB_LED.ino and upload it to the Makerduino.

 

The following is the demo code for EB - RGB LED. (Note: It could be a little different from the code file downloaded. Please follow the downloaded file.)

 

/*

  EB - RGB LED demo code

 

  Change the RGB LED Color and light intensity repeatedly.

 

 

 */

// connect led to Makerduino pin 9,10,11

const int pinR = 9;

const int pinG = 10;

const int pinB = 11;

 

// the setup routine runs once when you press reset:

void setup() {               

  // initialize the digital pin as an output.

  pinMode(pinR, OUTPUT);    

  pinMode(pinG, OUTPUT);

  pinMode(pinB, OUTPUT);

  digitalWrite(pinR, HIGH);

  digitalWrite(pinG, HIGH);

  digitalWrite(pinB, HIGH);

}

 

// the loop routine runs over and over again forever:

void loop() {

fading(pinR);

fading(pinG);

fading(pinB);

}

 

void fading(int ledPin)  {

  // fade out from max to min in increments of 5 points:

  for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) {

    // sets the value (range from 0 to 255):

    analogWrite(ledPin, fadeValue);        

    // wait for 30 milliseconds to see the dimming effect   

    delay(30);                           

  }

 

  // fade in from min to max in increments of 5 points:

  for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) {

    // sets the value (range from 0 to 255):

    analogWrite(ledPin, fadeValue);        

    // wait for 30 milliseconds to see the dimming effect   

    delay(30);                           

  }

}

 

6. Check the Results. After the sketch is successfully uploaded, the light fades from red to green and to blue.

More information

https://drive.google.com/?usp=folder&authuser=0&usp=folder#folders/0BzxrU4QvH7jEd3ZJTVdnNUpXNVE

Find EB - RGB LED Material.zip to download schematic and other material.

 

 

 

about us 02

This product was added to our catalog on Tuesday 11 February, 2014.

Your IP Address is: 54.161.91.76
Copyright © 2017 Maker Studio