Difference between revisions of "Template:Pico-Pico-RGB-Matrix-P3-64x32 Manual"

From Waveshare Wiki
Jump to: navigation, search
Line 71: Line 71:
 
<div class="sep0px"></div>
 
<div class="sep0px"></div>
  
== 硬件解析 ==
+
== Header Definition ==
=== 底板资源简介 ===
+
=== Hardware Introduction===
 
[[File:Pico-RGB-Matrix-P3-64x32-details-25.jpg|800px]]
 
[[File:Pico-RGB-Matrix-P3-64x32-details-25.jpg|800px]]
  
=== Pico连接引脚对应关系 ===
+
=== Pico connection pins ===
 
<div style="max-width:100%">
 
<div style="max-width:100%">
 
<div style="float:left;margin:5px;">
 
<div style="float:left;margin:5px;">
 
{| class="list table table-striped table-bordered"
 
{| class="list table table-striped table-bordered"
 
|-
 
|-
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | 底板
+
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Board
 
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Pico
 
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Pico
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | 引脚描述
+
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Pin description
 
|-
 
|-
! align="left" colspan="3" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(249, 249, 249); color: rgb(51, 51, 51);" | RGB LED Matrix 用到的引脚(HUB75接口)
+
! align="left" colspan="3" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(249, 249, 249); color: rgb(51, 51, 51);" | Pins used by RGB LED Matrix (HUB75 interface)
 +
 
 
|-
 
|-
 
| R1
 
| R1
 
| GP02
 
| GP02
| 高位R数据
+
| R higher bit data
 
|-
 
|-
 
| G1
 
| G1
 
| GP03
 
| GP03
| 高位G数据
+
| G higher bit data
 
|-
 
|-
 
| B1
 
| B1
 
| GP04
 
| GP04
| 高位B数据
+
| B higher bit data
 
|-
 
|-
 
| R2
 
| R2
 
| GP05
 
| GP05
| 高位R数据
+
| R lower bit data
 
|-
 
|-
 
| G2
 
| G2
 
| GP08
 
| GP08
| 高位G数据
+
| G lower bit data
 
|-
 
|-
 
| B2
 
| B2
 
| GP09
 
| GP09
| 高位B数据
+
| B lower bit data
 
|-
 
|-
 
| A
 
| A
 
| GP10
 
| GP10
| A行选择
+
| A line selection
 
|-
 
|-
 
| B
 
| B
 
| GP16
 
| GP16
| B行选择
+
| B line selection
 
|-
 
|-
 
| C
 
| C
 
| GP18
 
| GP18
| C行选择
+
| C line selection
 
|-
 
|-
 
| D
 
| D
 
| GP20
 
| GP20
| D行选择
+
| D line selection
 
|-
 
|-
 
| E
 
| E
 
| GP22
 
| GP22
| E行选择
+
| E line selection
 
|-
 
|-
 
| CLK
 
| CLK
 
| GP11
 
| GP11
| 时钟输入
+
| clock input
 
|-
 
|-
 
| STB/LAT
 
| STB/LAT
 
| GP12
 
| GP12
| 锁存引脚
+
| latch pin
 
|-
 
|-
 
| OE
 
| OE
 
| GP13
 
| GP13
| 输出使能
+
| output enable
 
|}
 
|}
 
</div>
 
</div>
Line 150: Line 151:
 
{| class="list table table-striped table-bordered"
 
{| class="list table table-striped table-bordered"
 
|-
 
|-
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | 底板
+
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Board
 
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Pico
 
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Pico
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | 引脚描述
+
! class="tittle-bg" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(113, 113, 113); color: rgb(255, 255, 255);" | Pin description
 
|-
 
|-
! align="left" colspan="3" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(249, 249, 249); color: rgb(51, 51, 51);" | 底板其他资源用到的引脚
+
! align="left" colspan="3" style="border: 1px solid rgb(204, 204, 204); padding: 0.45em 0.23em; line-height: 1.6em; letter-spacing: 0.02em; background-color: rgb(249, 249, 249); color: rgb(51, 51, 51);" | Pins used by other resources of the board
 
|-
 
|-
 
| K0
 
| K0
 
| GP15
 
| GP15
| KEY0按键,数字时钟的 MENU 菜单,也可以自定义
+
| KEY0 button, the MENU menu of the digital clock, can also be customized
 
|-
 
|-
 
| K1
 
| K1
 
| GP19
 
| GP19
| KEY1按键,数字时钟的 + / Down 按键,也可以自定义
+
| KEY1 button, + / Down button of digital clock, can also be customized
 
|-
 
|-
 
| K2
 
| K2
 
| GP21
 
| GP21
| KEY2按键,数字时钟的 - / UP 按键,也可以自定义
+
| KEY2 button,-/ UP button of digital clock, can also be customized
 
|-
 
|-
 
| RUN
 
| RUN
 
| RUN
 
| RUN
| RESET 按键,可用于Pico复位
+
| RESET button, can be used for Pico reset
 
|-
 
|-
 
| BOOTSET
 
| BOOTSET
 
| BOOTSET
 
| BOOTSET
| BOOT 按键,可用于Pico烧录程序(长按BOOT,再按下RESET,可进入固件下载模式)
+
| BOOT button, can be used for Pico burning program (long press BOOT, then press RESET to enter the firmware download mode)
 
|-
 
|-
 
| SDA
 
| SDA
 
| GP06
 
| GP06
| I2C 数据引脚,控制DS3231 RTC时钟芯片用到
+
| I2C data pin, used to control DS3231 RTC clock chip
 
|-
 
|-
 
| SCL
 
| SCL
 
| GP07
 
| GP07
| I2C 时钟引脚,控制DS3231 RTC时钟芯片用到
+
| I2C clock pin, used to control DS3231 RTC clock chip
 
|-
 
|-
 
| BUZZ
 
| BUZZ
 
| GP27
 
| GP27
| 蜂鸣器控制引脚
+
| Buzzer control pin
 
|-
 
|-
 
| AIN
 
| AIN
 
| GP26
 
| GP26
| 光敏电阻控制引脚
+
| Photoresistor control pin
 
|-
 
|-
 
| IRM
 
| IRM
 
| GP28
 
| GP28
| 红外接收控制引脚
+
| Infrared receiving control pin
 
|}
 
|}
详细硬件设计见 [https://www.waveshare.net/w/upload/f/f0/Pico-RGB-Matrix-P3-64x32-schematics.pdf 电路原理图]
+
See detailed hardware design of [https://www.waveshare.net/w/upload/f/f0/Pico-RGB-Matrix-P3-64x32-schematics.pdf the circuit diagram].
  
 
{{Pico-C-SDK-Manual}}
 
{{Pico-C-SDK-Manual}}
  
 
{{Pico-MicroPython-Manual}}
 
{{Pico-MicroPython-Manual}}

Revision as of 09:00, 8 October 2021

Demo example

Hardware connection

Materials needed

  • Pico-RGB-Matrix-P3-64x32 (this product)
  • Raspberry Pi Pico (must be purchased separately, if not, it is recommended to buy a version with soldered headers, which is convenient for direct insertion and use)
  • Micro USB cable (must be purchased separately)

Hardware connection steps

  1. 把底板对准红框处的槽位,接到RGB LED Matrix上
  2. 取出配套的转接线,用钳子剪出需要用到的部分转接线(约10cm)
  3. 把做好的转接线,一端连接到RGB LED Matrix,另一端固定到底板上
  4. 背面安装上亚克力板和磁吸螺钉
  5. 可选操作:如果觉得 RGB LED Matrix 比较炫眼或颗粒感较强,可以在屏上面贴上一层黑色亚克力盖板

Example display

Multi-Features Digital Clock

This example is developed based on the C++ SDK. In order to quickly demonstrate the effects and functions of the example, you can skip the steps of " Building a C++ SDK Development Environment " and "Program Debugging and Development" and directly " download and burn the program ". After the burning is completed, the running effect of the example is shown in the figure below:

Pico-rgb-matrix-p3-clock-cpp-sdk-1.jpg

【Function Description】

  • Time display screen:
    • Display date, day of the week, hour, minute, lunar calendar and temperature
  • Function setting menu
    • Date setting
    • time setting
    • BEEP setting (buzzer setting)
    • Auto brightness
    • Language setting (under development)

Fruit machine

This example is developed based on CircuitPython[1] , and the program is downloaded[2] . The effects and functions of the example are as follows:

Pico-RGB-Matrix-P3-64x32-details-17.png

【Function Description】

  • The display can display a variety of fruits or other small BMP icons
  • Automatically scroll icons at regular intervals, and randomly display the results of the scrolling
  1. CircuitPython是MicroPython的一个分叉,具体使用请见 RGB-Matrix相关CircuitPython教程
  2. Pico须先安装CircuitPython,然后再把对应的CircuitPythond代码复制到识别到的U盘上,即可完成下载。


Infrared transceiver test

This example is developed based on MicroPython, the program is downloaded , the example effects and functions are as follows::

RGB-Matrix-IR-Test.png

【Function Description】

  • The infrared serial code generated by the corresponding button of the infrared remote control can be recognized

Header Definition

Hardware Introduction

Pico-RGB-Matrix-P3-64x32-details-25.jpg

Pico connection pins

Board Pico Pin description
Pins used by RGB LED Matrix (HUB75 interface)
R1 GP02 R higher bit data
G1 GP03 G higher bit data
B1 GP04 B higher bit data
R2 GP05 R lower bit data
G2 GP08 G lower bit data
B2 GP09 B lower bit data
A GP10 A line selection
B GP16 B line selection
C GP18 C line selection
D GP20 D line selection
E GP22 E line selection
CLK GP11 clock input
STB/LAT GP12 latch pin
OE GP13 output enable

RGB-Matrix-P3-64x32-details-3.jpg

Board Pico Pin description
Pins used by other resources of the board
K0 GP15 KEY0 button, the MENU menu of the digital clock, can also be customized
K1 GP19 KEY1 button, + / Down button of digital clock, can also be customized
K2 GP21 KEY2 button,-/ UP button of digital clock, can also be customized
RUN RUN RESET button, can be used for Pico reset
BOOTSET BOOTSET BOOT button, can be used for Pico burning program (long press BOOT, then press RESET to enter the firmware download mode)
SDA GP06 I2C data pin, used to control DS3231 RTC clock chip
SCL GP07 I2C clock pin, used to control DS3231 RTC clock chip
BUZZ GP27 Buzzer control pin
AIN GP26 Photoresistor control pin
IRM GP28 Infrared receiving control pin

See detailed hardware design of the circuit diagram.

Template:Pico-C-SDK-Manual

Template:Pico-MicroPython-Manual