Difference between revisions of "Colored LED"

From Microduino Wiki
Jump to: navigation, search
m (insert the link to the code page)
Line 14: Line 14:
  
  
*Other Hardware Equipment
+
*Other hardware equipment:
**USB cable   One
+
**1x USB cable
  
  
Line 21: Line 21:
  
 
You can find the code here: [https://github.com/Microduino/Microduino_Tutorials/blob/master/mCookie_sensor/MicroduinoLEDColor/MicroduinoLEDColor.ino MicroduinoLEDColor]
 
You can find the code here: [https://github.com/Microduino/Microduino_Tutorials/blob/master/mCookie_sensor/MicroduinoLEDColor/MicroduinoLEDColor.ino MicroduinoLEDColor]
Copy it to your Microduino IDE environment
+
Copy it to your Microduino IDE environment.
  
 
==Debugging==
 
==Debugging==
  
Step 1:  
+
Step 1: Insert LED light into D6 pin of Microduino-SensorHub.
 
[[File:MicroduinoFancyLight.png|600px|center|thumb]]
 
[[File:MicroduinoFancyLight.png|600px|center|thumb]]
Insert LED light into D6 pin of Microduino-SensorHub.
 
  
  
 
Step 2:  
 
Step 2:  
Connectt your PC with USB cable, download the code and burn it to Microduino-CoreUSB.  
+
Connect the Microduino-CoreUSB to your PC with the USB cable and upload the code.
 
[[File:MicroduinoFancyLight1.png|600px|center|thumb]]
 
[[File:MicroduinoFancyLight1.png|600px|center|thumb]]
  
Line 41: Line 40:
  
 
Step 4:  
 
Step 4:  
It will change color constantly.  
+
It will change colors constantly.  
  
 
[[File:MicroduinoFancyLight3.png|600px|center|thumb]]
 
[[File:MicroduinoFancyLight3.png|600px|center|thumb]]
Line 48: Line 47:
 
==Result==
 
==Result==
  
You can control the color of the LED light.  
+
You can control the color of the LED light by editing the code.  
  
 
==Video==
 
==Video==
  
 
|}
 
|}

Revision as of 03:13, 6 September 2015

Objective

This tutorial will show you the way to use Microduino colored LED.

Equipment


  • Other hardware equipment:
    • 1x USB cable


Program

You can find the code here: MicroduinoLEDColor Copy it to your Microduino IDE environment.

Debugging

Step 1: Insert LED light into D6 pin of Microduino-SensorHub.

MicroduinoFancyLight.png


Step 2: Connect the Microduino-CoreUSB to your PC with the USB cable and upload the code.


Step 3: The LED light will go on after powering on.

MicroduinoFancyLight2.png


Step 4: It will change colors constantly.

MicroduinoFancyLight3.png


Result

You can control the color of the LED light by editing the code.

Video