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

From Waveshare Wiki
Jump to: navigation, search
Line 2: Line 2:
 
=== Hardware connection ===
 
=== Hardware connection ===
 
==== Materials needed ====
 
==== Materials needed ====
*RGB-Matrix-P3-64x32 (this product)
+
* RGB-Matrix-P3-64x32(This product)
*[https://www.waveshare.com/nodemcu-32s.htm NodeMCU-32S] (must be purchased separately)
+
* [https://www.waveshare.com/nodemcu-32s.htm NodeMCU-32S](To be purchased separately, if not, it is recommended to buy a version with a soldered pin header, which is convenient for direct insertion)
  
==== Hardware connection diagram ====
+
=== ESP32 connection pin correspondence ===
<div>[[File:NodeMCU-32S-hw-connect.png|500px]]</div>
+
<div style="max-width:100%">
 +
<div style="float:left;margin:5px;">
 +
{| class="list table table-striped table-bordered"
 +
! 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 Pins used (HUB75 interface)
 +
|-
 +
|-
 +
! 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);" | bottom plate
 +
! 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);" | ESP32
 +
! 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
 +
|-
 +
| R1
 +
| GP13
 +
| High-order R data
 +
|-
 +
| A
 +
| GP19
 +
| A row selection
 +
|-
 +
| B
 +
| GP23
 +
| B line selection
 +
|-
 +
| C
 +
| GP18
 +
| C row selection
 +
|-
 +
| D
 +
| GP5
 +
| D line selection
 +
|-
 +
| E
 +
| GP15
 +
| E row selection
 +
|-
 +
| CLK
 +
| GP14
 +
| Clock Input
 +
|-
 +
| STB/LAT
 +
| GP22
 +
| Latch Pin
 +
|-
 +
| OE
 +
| GP0
 +
| Output Enable
 +
|}
 +
</div>
 +
<div style="float:left;margin:5px;">
 +
{| class="list table table-striped table-bordered"
 +
|-
 +
! 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);" | Connect data input to data output
 +
|-
 +
! 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);" | Data Input
 +
! 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);" | Data Output
 +
! 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
 +
|-
 +
| G1
 +
| R2
 +
| High G data
 +
|-
 +
| B1
 +
| G2
 +
| High-order B data
 +
|-
 +
| R2
 +
| R1
 +
| Lower R data
 +
|-
 +
| G2
 +
| G1
 +
| Low G data
 +
|-
 +
| B2
 +
| B1
 +
| Lower B data
 +
|}
 +
</div>
 +
</div>
 +
[[File:RGB-Matrix-P3-64x32-details-3.jpg|780px]]
  
 
==== Software settings ====
 
==== Software settings ====

Revision as of 07:34, 7 February 2022

Demo example

Hardware connection

Materials needed

  • RGB-Matrix-P3-64x32(This product)
  • NodeMCU-32S(To be purchased separately, if not, it is recommended to buy a version with a soldered pin header, which is convenient for direct insertion)

ESP32 connection pin correspondence

RGB LED Matrix Pins used (HUB75 interface)
bottom plate ESP32 Pin description
R1 GP13 High-order R data
A GP19 A row selection
B GP23 B line selection
C GP18 C row selection
D GP5 D line selection
E GP15 E row selection
CLK GP14 Clock Input
STB/LAT GP22 Latch Pin
OE GP0 Output Enable
Connect data input to data output
Data Input Data Output Pin Description
G1 R2 High G data
B1 G2 High-order B data
R2 R1 Lower R data
G2 G1 Low G data
B2 B1 Lower B data

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

Software settings

  • Download arduino-1.8.15 (corresponding library files have been installed)
  • After connecting the wires according to the hardware connection diagram, the software settings are as follows:
    ESP32-RGB-Matrix-EN.jpg

Example display

Tetris clock (with network calibration)

The running effect of the sample program is shown in the figure below:

DSC 0348.jpg

【Function Description】

  • Time display screen:
    • Time calibration via ESP32 network
    • display time
    • Block animation effect display