Product Description
Electronic Brick - 5mm LED (Red Green Blue Orange Selectable)
Features
-
Working Voltage: 3.3V-5V
-
Different LED color for choice
-
With Makerduino Demo Code
-
Compact size
-
Weight: 5g
Applications
Details
Use with Makerduino
The following steps show how to use EB - LED with Makerduino.
Materials
-
Makerduino
-
Electronic Brick Shield
-
EB - LED
-
A/B type USB cable
-
Female DuPont wires
Steps
1. Connect Electronic Brick Shield onto Makerduino to bring out all the Makerduino Pins.

2. Connect EB - LED to Makerduino as following.

3. Connect the Makerduino to Computer by the USB cable.
4. Download the Makerduino demo code EB - 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_LED.ino and upload it to the Makerduino.
The following is the demo code for EB - LED. (Note: It could be a little different from the code file downloaded. Please follow the downloaded file.)
/*
EB - Blink LED demo code
Turns on an LED for one second, then off for one second, repeatedly.
*/
// connect led to arduino pin 9
const int led = 9;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
6. Check the Results. After the sketch is successfully uploaded, EB - LED blinks per second.
Download information
https://drive.google.com/?usp=folder&authuser=0&usp=folder#folders/0BzxrU4QvH7jEd3ZJTVdnNUpXNVE
Find EB - LED Material.zip to download schematic and other material.

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