Difference between revisions of "Sensor-Color LED"

From Microduino Wiki
Jump to: navigation, search
(Program)
Line 5: Line 5:
 
[[File: Microduino-WS2812-rect-v1.jpg|400px|thumb|right| Microduino-Color led]]
 
[[File: Microduino-WS2812-rect-v1.jpg|400px|thumb|right| Microduino-Color led]]
  
Microduino-Color LED is a colored LED light with an built-in IC control chip, which can be cascaded arbitrarily. With only one I/O port, you can control all the lights. Each light can be controlled separately.  
+
mCookie-Color LED is a colored LED sensor with an built-in IC control chip, which can be cascaded arbitrarily. With only one I/O port, you can control all the lights and each light can be controlled separately.
  
  
  
  
 +
==Sensor Pin Introduction==
 +
{{Sensor_explain
 +
|nameA=[[Sensor-Color LED]]
 +
|modeA=Digital Signal Output
 +
|modeB=NC
 +
}}
 +
==Feature==
 +
*With single bus control. Only one I/O port to control, and complete the receiving and decoding of the data;
 +
*With built-in IC controller, and serial connection interfaces, which can cascade control;
 +
*The three primary colors of each pixel point can realize 256-level brightness display, and achieve 16777216-color whole true color display. And the scanning frequency is not lower than 400Hz/s;
 +
*With ultra-low power and ultra-long life.
  
 +
==Specification==
 +
*Sensor voltage
 +
**3.3V~5V working voltage
 +
 +
*Size of the sensor
 +
**Size of the board: 23.5mm*13mm
 +
**1.27mm-spacing 4Pin interface connected with sensorhub;
 +
**CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
 +
**1.27mm-spacing 4Pin interface connected with sensorhub.
  
 +
*Function description
 +
**Adopt WS2812 integrated control light source;
 +
**RGB of each pixel point can achieve 256-level brightness display;
 +
**When the updating rate is 30 frame/s, the cascade number is not less than 1024;
 +
**When the transmission distance between any two points is not over 3 meters, don’t need to add any circuit.
  
 +
*Connection
 +
**This sensor can be connected to the following interfaces of the core:'''D2~D13'''
 +
**Multiple sensors cascade: Connect the '''(<big>OUT</big>)''' of the former LED—Strip to the '''(<big>IN</big>)''' of the later Color_LED.
  
 +
==Document==
  
==Features==
+
*Schematic diagram: '''[[File: Microduino_Sensor-Color_LED.Zip.pdf]]'''
*The chip adopts 5050 package, including control circuit and RGB chip inside.  
+
*Crashdatasheet:'''[[File: Microduino_Sensor-Color_LED_datasheet.pdf]]'''
*With single bus control, you only need one I/O port to receive data and decode; 
 
*With built-in IC control, serial cascading interface, it can have cascade control.
 
*Each pixel's trichromatic color can achieve 256-level brightness control, completing full display of 16,777,216 colors and the scanning frequency is not less than 400Hz/s;
 
*With built-in power-on and off reset circuits;
 
*ultra low power and ultra long life.
 
  
==Specification==
+
==Development==
* Electrical specification
+
===Program Download===
**Operation voltage: 3.3V~5V
+
*Download and unzip the program'''[[File:Microduino_Sensor-Color_LED_Test.zip]]'''
**Output device
 
*Tech parameter
 
**Adopt WS2812 integrated light source control;
 
**Each pixel's RGB can realize 256-level brightness display.
 
**When refresh rate is 30 frame/s, the cascade number is not less than 1,024 points.
 
**When the transmission distance of any two points is within three meters, there is no need to add any circuit.
 
*Size
 
**Size of LED:5mm*5mm;
 
**Size of the board:20mm*20mm;
 
**1.27mm-pitch 4Pin interface connects with Sensorhub.
 
*Connection method
 
**System and LED(<big>IN</big>): System LED control needs to connect the signal of Sensorhub to the " big>IN</big>" base board of the LED.
 
**LED Cascade(<big>OUT</big>): The first LED's <big>OUT</big> connects to the next LED's  <big>IN</big>.
 
  
[[File: CoreUSB_Ble_steup11.jpg|600px|center]]
+
===Prgramming===
 +
{{Upload
 +
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
 +
|nameB=[[Microduino-USBTTL]]
 +
|boardName=Microduino/mCookie-Core(328p)、Atmega328P@16M,5V
 +
|fileName=Microduino_Sensor-Color_LED_Test.ino
 +
}}
  
==Document==
+
===Hardware Setup===
[[File:ws2812.pdf]]
+
*Referring to the following picture, connect Sensor-Crash to the digital port D6 of '''[[Microduino-Sensorhub]]'''.
 +
<br>
 +
[[file:Microduino-sensorhub_Shake.JPG|thumb|400px|left]]
 +
<br style="clear: left"/>
  
==Development==
+
===Result Observation===
===Preparation===
+
*After the download, observe the led strip;
*Make sure you build Microduino development environment. If not, please refer to: [[Microduino Getting started]]
+
*LED twinkles in red, and green successively with the interval of 1s.  
*Core selection
 
**1. Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]].
 
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core board and use  [[Microduino-USBTTL]] to download program. 
 
===Program===
 
*Open " strandtext " in the libraries.
 
[[file:mCookie-strandtext.JPG|thumb|800px|center]]
 
*"#define PIN 6" defines the pin which controls LED. "6" means Microduino's D6 pin, which can be converted by Sensorhub. Users can also change that according to personal needs.
 
*The number "60" in " Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);" is the light number you want to cascade.
 
*" colorWipe(uint32_t c, uint8_t wait)" Function Description:
 
**" uint32_t c " defines the color of the lights and the format is " strip.Color(R, G, B)".
 
***R:Value of red(0-255)
 
***G:Value of green(0-255)
 
***B:Value of green(0-255)
 
**" uint8_t wait " defines delay time of a single light. The light number is defined at the beginning.
 
**Example: colorWipe(strip.Color(255, 0, 0), 50); Display red.
 
**Users can adopt the related tools to change color
 
*"rainbow()" and "rainbowCycle()" are cool color pattern.
 
  
===Hardware Buildup===
+
==Application==
*Connect '''IN''' port on the back of the color LED to the D6 digital port of Sensorhub, which is also the definition and control of LED pins mentioned above. (Users can change according to personal needs.)
+
*LED full color light letter lamp string, LED full color module set, LED full color soft lamp strip and hard lamp strip, and LED guardrail tube.
[[Microduino-Sensorhub]]
+
*LED point light source, LED pixel screen, all kinds of electronic products, LED shaped screen, and electrical equipment Marquee.
[[file:Microduino-sensorhub_6.JPG|thumb|400px|center]]
 
[[mCookie-Hub]]
 
[[file:mCookie-sensorhub_6.JPG|thumb|400px|center]]
 
*Connect the core board, Sensorhub and LED to a computer via a USB cable.
 
*Select the right board and COM port, compile and download. Please refer to: [[AVR Core:Getting started]]
 
[[file:upload.JPG|thumb|800px|center]]
 
*You can see result after download.  
 
  
 
==Project==
 
==Project==
Line 88: Line 84:
 
==History==
 
==History==
  
==Picture==
+
==Gallery==
*Front
+
{| border="0" cellpadding="10" width="100%"
[[file: Microduino-Lantern-F.JPG|thumb|600px|center|Microduino-Cube-Station Front]]
+
|-
*Back
+
|width="50%" valign="top" align="left"|
[[file: Microduino-Lantern -b.JPG|thumb|600px|center|Microduino-Cube-Station Back]]
+
[[file: MicroduinoColorLED-F.JPG|thumb|480px|center|mCookie-Color_LED-Front]]
 +
|width="50%" valign="top" align="left"|
 +
[[file: Microduino-ColorLED-b.JPG|thumb|480px|center|mCookie-Color_LED-Back]]
 +
|}
 
|}
 
|}

Revision as of 06:08, 26 August 2016

Language: English  • 中文
Microduino-Color led

mCookie-Color LED is a colored LED sensor with an built-in IC control chip, which can be cascaded arbitrarily. With only one I/O port, you can control all the lights and each light can be controlled separately.



Sensor Pin Introduction

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-Color LED sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Digital Signal Output
    • PIN4(IO2): NC


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.

Feature

  • With single bus control. Only one I/O port to control, and complete the receiving and decoding of the data;
  • With built-in IC controller, and serial connection interfaces, which can cascade control;
  • The three primary colors of each pixel point can realize 256-level brightness display, and achieve 16777216-color whole true color display. And the scanning frequency is not lower than 400Hz/s;
  • With ultra-low power and ultra-long life.

Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Size of the sensor
    • Size of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected with sensorhub;
    • CAD drawing of the sensor: File:Sensor CAD.zip
    • 1.27mm-spacing 4Pin interface connected with sensorhub.
  • Function description
    • Adopt WS2812 integrated control light source;
    • RGB of each pixel point can achieve 256-level brightness display;
    • When the updating rate is 30 frame/s, the cascade number is not less than 1024;
    • When the transmission distance between any two points is not over 3 meters, don’t need to add any circuit.
  • Connection
    • This sensor can be connected to the following interfaces of the core:D2~D13
    • Multiple sensors cascade: Connect the (OUT) of the former LED—Strip to the (IN) of the later Color_LED.

Document

Development

Program Download

Prgramming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Microduino_Sensor-Color_LED_Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following picture, connect Sensor-Crash to the digital port D6 of Microduino-Sensorhub.


Microduino-sensorhub Shake.JPG


Result Observation

  • After the download, observe the led strip;
  • LED twinkles in red, and green successively with the interval of 1s.

Application

  • LED full color light letter lamp string, LED full color module set, LED full color soft lamp strip and hard lamp strip, and LED guardrail tube.
  • LED point light source, LED pixel screen, all kinds of electronic products, LED shaped screen, and electrical equipment Marquee.

Project

Purchase

History

Gallery

File:MicroduinoColorLED-F.JPG
mCookie-Color_LED-Front
File:Microduino-ColorLED-b.JPG
mCookie-Color_LED-Back