Difference between revisions of "ESP32-S3-Matrix"

From Waveshare Wiki
Jump to: navigation, search
Line 82: Line 82:
  
 
== 显示字符 ==
 
== 显示字符 ==
*[[#库安装 | 安装相应库文件]]
+
*[[#Library Installation| Install Corresponding Library Files]]
* 下载[[#程序| 示例程序]],示例中的 Font 文件夹下的示例为流动显示字符
+
* Download [[#Demo| Sample Demo]], 示例中的 Font 文件夹下的示例为流动显示字符
 
* 如下,当前为显示 26 个小写字符
 
* 如下,当前为显示 26 个小写字符
 
[[File:ESP32-S3 TO Arduino sample1 1.png]]
 
[[File:ESP32-S3 TO Arduino sample1 1.png]]

Revision as of 10:38, 16 April 2024

'
ESP32-S3-Matrix.jpg

ESP32-S3, USB Type-C
'
ESP32-S3-Matrix.jpg
{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

Introduction

Features

Function Block

Onboard Resources

Pinout Definition

Dimensions

Working with ESP32

Working with Arduino

Environment Set-up

ESP32-C6-DEV-KIT-N8-Arduino01.png

  • Enter Arduino IDE after installation.

ESP32-C6-DEV-KIT-N8-Arduino02.png

  • Go to the board manager, search for esp32, select the latest version of esp32 by Espressif Systems at the bottom, and click install (if it doesn't install correctly, you can try using a phone hotspot).

ESP32-S3-DEV-KIT-N8-Arduino07.png

  • Restart the Arduino IDE after installation, and then you can use it.

ESP32-S3-DEV-KIT-N8-Arduino09.png

If the installation fails

  • Failed to install 2.0.11 version:

ESP32-S3-DEV-KIT-N8-install.png

ESP32-S3-DEV-KIT-N8-install02.png

  • Click on the path "c:\Users\Waveshare\AppData\Local\Arduino15\packages" (where Waveshare is the user name of the computer, and you need to turn on Show Hidden Files).

ESP32-S3-DEV-KIT-N8-install03.png

  • Unzip the downloaded files to the packages file folder:

ESP32-S3-DEV-KIT-N8-install04.png

  • Install it again:

ESP32-S3-DEV-KIT-N8-Arduino07.png

  • Restart the Arduino IDE after installation and you're ready to go!

ESP32-S3-DEV-KIT-N8-Arduino09.png

Run Example

Create Example

  • Above, change the project folder to c:\Users\Waveshare\AppData\Local\Arduino15\packages (where Waveshare is the computer username).

ESP32-S3-Tiny-09.png
ESP32-S3-Tiny-10.png

  • Restart Arduino IDE.
  • Demos can be created from the examples in the Project folder under Files.

ESP32-C6-DEV-KIT-N8-Arduino10.png

  • The following is the RGB flashing example (File -> Sketchbook -> esp32 -> hardware -> esp32 -> 2.0.11 -> libraries -> ESP32 -> examples -> BlinkRGB under GPIO).

ESP32-S3-DEV-KIT-N8-Arduino11.png

Upload Demo

  • Select the development board and port.

ESP32-C6-DEV-KIT-N8-Arduino12.png

  • Search esp32s3, select ESP32S3 Dev Module, and the ports to download.

ESP32-S3-DEV-KIT-N8-Arduino13.png

  • After selecting, click to upload and Arduino IDE will start to compile and program the demo.

ESP32-S3-DEV-KIT-N8-Arduino14.png

  • After uploading, you can see the effect on the development board.

ESP32-S3-DEV-KIT-N8-Arduino15.png

Examples

The following demonstrates device control on the Arduino IDE

Library Installation

  • Install Adafruit NeoPixel library:

ESP32-S3 TO Arduino Add 1.png

  • Install Adafruit NeoMatrix library:

ESP32-S3 TO Arduino Add 2.png

  • Install ALL:

ESP32-S3 TO Arduino Add 3.png

  • Install Adafruit GFX Library:

ESP32-S3 TO Arduino Add 4.png

  • Install ALL:

ESP32-S3 TO Arduino Add 5.png

  • Install FastLED library:

ESP32-S3 TO Arduino Add 6.png

  • Install SensorLib library for QMI8658:

ESP32-S3 TO Arduino Add 7.png

显示字符

ESP32-S3 TO Arduino sample1 1.png

  • 可通过修改引号内的字符以在 ESP32-S3-Matrix 上显示相应字符
  • 修改后 烧录程序 即可使用

随动游戏

  • 安装相应库文件
  • 下载 示例程序,示例中的 Game 文件夹下的示例为一个灯珠随 ESP32-S3-Matrix 倾斜跟随移动的小游戏
  • 烧录程序 即可使用
  • 成功烧录程序后,将在靠近中心位置点亮一个灯珠
  • 亮灯会根据设备当前倾斜角度进行移动
  • 可根据需求修改程序以实现更复杂的操作

酷炫颜色

  • 安装相应库文件
  • 下载 示例程序,示例中的 Color 文件夹下的示例为一个较为酷炫的颜色流动
  • 烧录程序 即可使用
  • 成功烧录程序后,面板将以流动状态显示彩色
  • 可根据需求修改程序以实现更复杂的操作

Web 页面控制

  • 安装相应库文件
  • 下载 示例程序,示例中的 HTTP 文件夹下的示例为通过 Web 页操作 ESP32-S3-Matrix 进行显示
  • 烧录程序 即可使用,程序烧录成功后可按下方操作进行
  • 控制设备(手机、电脑等)连接名为 ESP32-S3-Matrix 的WIFI

ESP32-S3 TO Arduino sample3 1.png

  • 成功连接 WIFI 后,在浏览器中搜索 10.10.10.1 可进入 ESP32-S3-Matrix 控制页面
10.10.10.1
  • Web 页面存在两个控制 ESP32-S3-Matrix 全局刷新按钮,以及一个文本框和提交按钮

ESP32-S3 TO Arduino sample3 2.png

  • 在文本框中输入字符,然后点击 Submit 按钮,文本框中的字符将在 ESP32-S3-Matrix 上流动显示