Difference between revisions of "Colorful Landscape Lamp"
(Created page with "{| style="width: 1000px;" |- | ==Outline== 600px|center Let's make a landscape lamp, which has many colors. Suitable kits: mCookie302, IBC...") |
|||
Line 24: | Line 24: | ||
|[[Sensor-Touch Button|Touch Button]]||1||Detect the touch | |[[Sensor-Touch Button|Touch Button]]||1||Detect the touch | ||
|- | |- | ||
− | |[[Sensor-Color LED| | + | |[[Sensor-Color LED|Color LED]]||2||Color LED |
|} | |} | ||
Line 40: | Line 40: | ||
'''Connection''' | '''Connection''' | ||
<br> | <br> | ||
− | The | + | The color LED has two interfaces, which are labeled "IN" and "OUT" respectively. For example, 2 color LEDs are needed now, and the control pin should be connected to pin 6/7 of Hub; |
<br> | <br> | ||
It should be paid attention to here that when connect the LED 1 from the pin 6/7 of Hub, it should be connected to the IN port of the LED 1, and when connect the LED 2, you should connect to the OUT port of LED 1 and the IN port of LED 2. | It should be paid attention to here that when connect the LED 1 from the pin 6/7 of Hub, it should be connected to the IN port of the LED 1, and when connect the LED 2, you should connect to the OUT port of LED 1 and the IN port of LED 2. | ||
Line 62: | Line 62: | ||
==Programming== | ==Programming== | ||
===Required Program Blocks=== | ===Required Program Blocks=== | ||
− | *[[" | + | *[["ColorLED prepare" program block]] |
− | *[[" | + | *[["ColorLED control" program block]] |
*[["Touch button" program block]] | *[["Touch button" program block]] | ||
Line 74: | Line 74: | ||
'''1. The first time you press the touch sensor, the two full-color LED change into red. ''' | '''1. The first time you press the touch sensor, the two full-color LED change into red. ''' | ||
<br> | <br> | ||
− | Because there are totally 2 full-color LEDs to use, set the LED number of " | + | Because there are totally 2 full-color LEDs to use, set the LED number of "ColorLED prepare" to 2, and the control pin to 6. After the touch sensor is pressed, LED 1 and 2 are on red; delay 1000ms to release. |
[[File:mixly-ctrl-colorled-code1.jpg|600px|center]] | [[File:mixly-ctrl-colorled-code1.jpg|600px|center]] | ||
2. The second time pressing the touch button, the two color LEDs change into blue. | 2. The second time pressing the touch button, the two color LEDs change into blue. | ||
Line 87: | Line 87: | ||
==Technical Specification== | ==Technical Specification== | ||
− | *Product number of | + | *Product number of color LED: MSDL11 |
*You will use API library to drive. | *You will use API library to drive. | ||
*For details, please refer to [[Sensor-Color LED]] | *For details, please refer to [[Sensor-Color LED]] | ||
Line 95: | Line 95: | ||
==FAQ== | ==FAQ== | ||
− | *Q: How many | + | *Q: How many color LEDs can be supported at most in cascade? |
*A: Under the condition that the power supply supports, 1024 at most. Too many will result in insufficient power supply, and the power should be strengthened. | *A: Under the condition that the power supply supports, 1024 at most. Too many will result in insufficient power supply, and the power should be strengthened. | ||
|} | |} |
Latest revision as of 02:20, 9 October 2016
ContentsOutlineLet's make a landscape lamp, which has many colors. Suitable kits: mCookie302, IBC
Module BillModule
Other Equipment
Module SetupLearn about the Color LEDFull-color LED, can emit light of any color. Many of it can be cascaded together.
Difference between the crash sensor and touch sensor
ProgrammingRequired Program BlocksProgramming Thought*The first time pressing the touch button, the two color LEDs change into red; *The second time pressing the touch button, the two color LEDs change into blue; *The third time pressing the touch button, the two color LEDs go off. Start to Programming1. The first time you press the touch sensor, the two full-color LED change into red.
2. The second time pressing the touch button, the two color LEDs change into blue. 3.The third time pressing the touch button, the two color LEDs go off.. Test the result
Technical Specification
Related CasesFAQ
|