newlandmark

【ART-PI expansion board】RGB LEDs_IO

 
Overview

1. Introduction to the author

 

Author: Siege Lion Chenzhe

Open source hardware homepage: Siege Lion Chenzhe-Lichuang EDA open source hardware platform (oshwhub.com)

CSDN Blog Home Page: Siege Lion Chenzhe - CSDN Blog

 

 

2. Project Introduction

 

RGB LEDs_IO is a full-color LED dot matrix expansion board built for ART-PI open source hardware. It adopts ART-PI standard PCB size and can be stacked with ART-PI.

 

Onboard resources

  • Onboard 128 WS2812B-Mini-V3 intelligent external control integrated LED light sources;
  • A 4-bit DIP switch is used to switch the control pin of ART-PI;
  • One RTC backup CR1220-2 horizontal battery holder;
  • Two horizontal patch XH2.54-3P connectors are used for cascading .
  • Two 2*20P-2.54 straight plug headers (

 

 


 

3. Introduction to WS2812

 

WS2812B-Mini-V3 is an intelligent externally controlled LED light source that integrates control circuit and light-emitting circuit. It has a smaller size and its outer dimensions are the same as a 3535LED lamp bead, and each component is a pixel. The pixel contains an intelligent digital interface data latch signal shaping amplification drive circuit, a high-precision internal oscillator and a programmable constant current control part, which effectively ensures that the color of the pixel light is highly consistent.

 

The data protocol adopts the single-wire return-to-zero code communication method. After the pixel is powered on and reset, the DIN end accepts the data transmitted from the controller. The first 24-bit data sent is extracted by the first pixel and sent to the interior of the pixel. The data latch, the remaining data is shaped and and then forwarded and output to the next cascaded pixel through the DO port. Each time a pixel is transmitted, the signal is reduced by 24 bits. The pixel adopts automatic shaping and forwarding technology, so that the number of cascades of the pixel is not limited by the signal transmission, but is only limited by the signal transmission speed requirements.

 

With a port scanning frequency of up to 2KHz, there will be no flickering when captured by a high-definition camera, making it very suitable for high-speed mobile products.

 

With a RESET time of more than 280μs, it will not cause a false reset even if an interrupt occurs, and can support lower frequency and cheaper MCUs.

 

LED has the advantages of low voltage drive, environmental protection and energy saving, high brightness, large scattering angle, good consistency, low power and long life. Integrating the control circuit on the LED makes the circuit simpler, smaller and easier to install.

 

main feature

  • The IC control circuit and the LED point light source share a power supply.
  • The control circuit and RGB chip are integrated into a 3535 packaged component to form a complete externally controlled pixel.
  • There is a built-in signal shaping circuit. After any pixel receives the signal, it undergoes waveform shaping and then outputs it, ensuring that line waveform distortion will not accumulate.
  • Built-in power-on reset and power-off reset circuit.
  • The three primary colors of each pixel can achieve 256 levels of brightness display, achieving full true color display of 16,777,216 colors.
  • Port scanning frequency is 2KHz.
  • The serial cascade interface can receive and decode data through a signal line.
  • When the refresh rate is 30 frames/second, the number of cascades is not less than 1024 points.
  • Data transmission speed can reach 800Kbps.
  • The color of the light is highly consistent and cost-effective.
  • It will not be damaged if the power supply is reversed .
  • There is no need for any peripheral electronic components including capacitors

 

Mechanical Dimensions

 

 

Pin diagram

Pin function

serial number symbol Pin name Function description
1 VDD power supply Power supply pin
2 DOUT data output Control data signal output
3 VSS land Signal ground and power ground
4 DIN data input Control data signal input

 

Maximum ratings (unless otherwise stated, T A = 25°C, V SS = 0V)

parameter symbol scope unit
voltage VDD +3.7 ~ +5.3 V
Logic input voltage V I -0.3V~VDD+0.7V V

 

Electrical parameters (if no special instructions, T A =25℃, V DD =5V, V SS =0V)

parameter symbol minimum value Typical value maximum value unit Test Conditions
Input Current II —— —— ±1 μA V I =V DD /V SS
High level input V I 2.7V —— VDD+0.7V V DIN , SET
low level input vIL -0.3V —— 0.7V V DIN , SET
LED life tled 50000 —— —— H

Test current: 12mA

Test room temperature: room temperature (25℃±5℃)

ESD —— —— 4 —— KV HBM

 

Switching characteristics (unless otherwise specified, T A =25℃, V DD =5V, V SS =0V)

parameter symbol  minimum value  Typical value  maximum value     unit      Test Conditions

transmission delay time

tPL —— —— 300 ns

CL=15pF,

DIN→DOUT,

RL=10KΩ

Fall time t THZ —— —— 120 μs

CL=300pF,

OUTR/OUTG/OUTB

Input capacitance  C I —— —— 15 pF ——

 

 

LED characteristic parameters

parameter symbol color Quiescent current <0.6A test
minimum value Typical value maximum value unit Conditions (operating current)
light intensity IV Red 300 310 500 mcd 12mA
Green 600 780 1000
Blue 200 215 300
wavelength λd Red 620 622 630 nm 12mA
Green 515 518 525
Blue 465 472 475

 

Data transfer time

T0H 0 code, high level time 220ns ~ 380ns
T1H 1 code, high level time 580ns~1μs
T0L 0 code, low level time 580ns~1μs
T1L 1 code, high level time 580ns~1μs
RES Frame unit, low level time 280ns ​​or more

 

Timing waveform diagram

 

 

4. Board and frame design

 

Draw the following size board and frame in the CAD software according to the dimensional drawing officially given by ART-PI. The board and frame file has been imported into Lichuang EDA. Click on the picture below to obtain the PCB file of the board and frame. This is a standard size board. Frame file, based on which the user can adjust the size of the board frame to meet project needs.

 

Board and frame size

 

 

5. Circuit design

 

The design of the circuit part of this project is not complicated. The part that needs to be considered is the port selection used by ART-Pi to control WS2812. In order to better use this ART-PI, the expansion board is designed to allow port selection, through a The 4-bit DIP switch can easily switch the control pins (PC7/PI3/PH10/PH9). At the same time, in order to more conveniently use the ART-PI external board to control the expansion board, a 3P connector is designed It is used to connect external third-party boards. The port switching circuit is shown in the figure below.

 

Since the selected WS2812 peripheral does not require any electronic components including capacitors, the circuit design is very simple. The LED array part circuit is shown in the figure below.

 

On the ART-PI board, the most distinctive feature is the two sets of 2*20P headers.

 

6. PCB design

 

The PCB design of this project focuses on the array layout of 128PCS WS2812 lamp beads. Below is a picture of the array with the completed layout.

 

 

 

 

pending upgrade""""

 

7. PCB proofing

pending upgrade""""

 

8. Expansion board test

pending upgrade""""

 

9. Programming

pending upgrade""""

 

10. Demonstration video

pending upgrade""""

 

 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-22 09:37:48

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号