
正在寻找一种无需单独接口板即可构建定制控制面板或设备控制的方法?Waveshare ESP32-S31 4.3 英寸触摸式液晶屏开发板集成了触摸输入、RS485 和 CAN FD。Waveshare Electronics 详细介绍了一款开发板,您可以使用它来显示设备状态并通过触摸来调整设置。 所有 16 个提供的示例均提供即刷即用固件,并提供构建图形界面和测试音频的起点。探索其无线连接、电源选项和 ESP-IDF 支持如何契合您对控制面板或信息显示屏的规划。
Waveshare ESP32-S31:带扩展的触摸屏板
TL;DR 关键要点:
该主板采用双核 RISC-V 处理器,运行频率高达 320 MHz,配备 16 MB 的闪存和 PSRAM。
其 4.3 英寸电容式触摸屏配备 800 × 480 IPS 显示屏,在所提供的示例中最多支持五个触摸点。
该主板配备双麦克风、2 瓦扬声器和六轴运动传感器。
无线连接包括 2.4 GHz Wi-Fi 6 和蓝牙 5.4,扩展接口包括 RS485、CAN FD、I2C 和 USB 主机。
十六个即刷即用示例使用 ESP-IDF v6.1,而 Arduino 目前不支持 ESP32-S31。
Waveshare ESP32-S31 4.3 英寸触摸式液晶屏开发板在一块板上集成了屏幕、音频硬件和扩展接口,以 ESP32-S31-WROOM-3-N16R16 模块为核心。Waveshare 表示,这可以省去大部分硬件设置工作,让您更快地开始应用程序的开发。
ESP32-S31 4.3 英寸触摸式液晶屏开发板由 Waveshare Electronics 制造,因此本文中有关该开发板的陈述均为制造商的陈述。其处理器和内存规格如下:
处理器:双核 32 位 RISC-V,运行频率高达 320 MHz。
闪存:16 MB。
PSRAM:16 MB。
芯片 SRAM:512 KB。
芯片 ROM:320 KB。
一个处理器核心支持 128 位 SIMD 指令。该芯片还包括一个 JPEG 编解码器、一个像素处理加速器和一个 2D DMA 控制器。
在液晶屏上构建触摸控件
4.3英寸电容式触摸屏可让您同时显示设备状态、操作按钮和设置,以便您通过触摸查看数据、切换页面和调整参数。
其 IPS 液晶屏的分辨率为 800 × 480,支持 65K 色,并采用 16 位 RGB565 接口。其标称视角为 160 度,可以播放视频,而随附的触摸示例通过 GT911 控制器最多可读取五个触摸点。
在 Youtube 上观看视频
以下是我们之前文章中的更多指南,以及与 ESP32-S31 开发板和触摸屏相关的指南,您可能会觉得有用。
ESP32 S31 开发套件实操:320 MHz RISC-V 芯片新增 Wi-Fi 6 功能
LCD 向导生成即用型 ESP32 触摸屏代码
ESP32 游戏机在 4 英寸触摸屏上运行 6 款游戏
ESP32 模块配备 1.14 英寸 TFT 屏幕,可实时跟踪数据
添加音频和动作输入
对于声音采集和播放,该主板配备了双麦克风和一个 8 欧姆、2 瓦的扬声器,由 ES8389 音频编解码器和扬声器放大器提供支持。提供的示例让您可以测试音频采集和播放,并为将声音连接到屏幕界面提供一个起点。
六轴 IMU 可检测倾斜和旋转。其 QMI8658 传感器提供加速度计和陀螺仪测量值,可与触摸输入配合使用。
无线连接项目
ESP32-S31 支持 2.4 GHz Wi-Fi 6 和蓝牙 5.4,并配备板载天线,可用于联网信息面板等项目中的连接。
它还支持 IEEE 802.15.4、Thread、Zigbee 和蓝牙 Mesh 1.1。特定协议功能需要相应的 SDK 和固件。
通过扩展端口连接设备
扩展接口提供半双工 RS485、CAN FD、I2C 和六个原生 GPIO,而一个独立的四针 USB 主机接口则为外设提供了另一种连接方式。
您可以在硬件中选择 3.3 V 和 5 V 之间的 I2C 扩展电压;默认情况下,它连接到 3.3 V。GPIO 为非隔离式,必须使用 3.3 V 电平逻辑和共地,而不是高电压输入或功率负载。
RS485 运行时,请勿按下 BOOT 按钮:该按钮与其方向控制引脚共用。TF 卡插槽支持本地存储,在所提供的示例中配置为 4 位 SDMMC。
选择机箱和电源
有三种配置可供选择:无外壳、带塑料外壳或带塑料外壳和 3.7 V 锂电池。在带外壳的版本中,复位按钮和启动按钮、USB 端口和 TF 卡插槽位于一侧,而另一侧则设有电源开关,并可让您查看设备状态。
电源通过 USB-C 提供 5 V 电压,通过扩展连接器或单节锂电池提供 7-36 V 直流电压。该主板包括电池充电电路和电量计。可使用导轨和墙壁支架或显示器支架进行安装,但这些配件需单独购买。
从 ESP-IDF 和 LVGL 开始
随附的 ESP-IDF 示例为使显示屏和触摸控件运行提供了起点,并且可以使用 LVGL 示例来构建图形界面。这些示例使用乐鑫的 ESP-IDF v6.1,针对 ESP32-S31,并为所有 16 个示例提供了即时烧录的固件。
首次连接时,请使用电脑和支持数据传输的 USB-C 线缆。Arduino 目前不支持 ESP32-S31,并且您不能将固件替换为 ESP32-S3 开发板的固件,因为它们的架构、外设和引脚分配各不相同。刷写出厂固件映像还会覆盖应用程序、分区表、设置和数据。
在我们看来,值得关注的亮点在于,在一块板子上集成了触摸屏与 RS485、CAN FD 和 USB 主机。屏幕项目通常需要一个单独的接口板,因此将两者集成在一起可以真正节省布线工作。我们认为,这适合希望使用现成的控制面板或信息显示屏,并且乐于使用 ESP-IDF 和 LVGL 的创客和开发者。 随附的显示屏、触摸屏和 LVGL 示例为这些开发者提供了一个起点。对于希望使用无需编程的即插即用设备的任何人来说,它不太合适。
如果您对使用 ESP-IDF 和 LVGL 进行开发感到驾轻就熟,那么 Waveshare ESP32-S31 触摸屏板值得您深入了解,以便构建您自己的控制面板或信息显示屏。
媒体来源:Waveshare Electronics
披露声明:我们的部分文章包含联盟营销链接。如果您通过其中一个链接购买商品,Geeky Gadgets可能会获得联盟佣金。了解我们的披露政策。

Searching for a way to build custom control panels or equipment controls without a separate interface board? The Waveshare ESP32-S31 4.3-inch Touch LCD Development Board combines touch input, RS485 and CAN FD. Waveshare Electronics details a development board you can use to display device status and adjust settings by touch. Ready-to-flash firmware is provided for all 16 supplied examples, with starting points for building a graphical interface and testing audio. Explore how its wireless connections, power options and ESP-IDF support fit your plans for a control panel or information display.
Waveshare ESP32-S31: Touchscreen Board With Expansion
TL;DR Key Takeaways :
- The board uses a dual-core RISC-V processor running at up to 320 MHz, with 16 MB each of flash and PSRAM.
- Its 4.3-inch capacitive touchscreen has an 800 × 480 IPS display and supports up to five touch points in the supplied example.
- The board includes dual microphones, a 2-watt speaker and a six-axis motion sensor.
- Wireless connectivity includes 2.4 GHz Wi-Fi 6 and Bluetooth 5.4, while expansion interfaces include RS485, CAN FD, I2C and USB host.
- Sixteen ready-to-flash examples use ESP-IDF v6.1, while Arduino does not currently support the ESP32-S31.
The Waveshare ESP32-S31 4.3-inch Touch LCD Development Board combines a screen, audio hardware and expansion interfaces on one board, built around an ESP32-S31-WROOM-3-N16R16 module. Waveshare says this cuts most of the hardware setup work, so you can start on the application sooner.
Waveshare Electronics makes the ESP32-S31 4.3-inch Touch LCD Development Board, so the claims reported here about it are the maker’s own. Its processor and memory specifications are:
- Processor: dual-core 32-bit RISC-V, running at up to 320 MHz.
- Flash storage: 16 MB.
- PSRAM: 16 MB.
- Chip SRAM: 512 KB.
- Chip ROM: 320 KB.
One processor core supports 128-bit SIMD instructions. The chip also includes a JPEG codec, a pixel-processing accelerator and a 2D DMA controller.
Build Touch Controls on the LCD
The 4.3-inch capacitive touchscreen lets you display device status, operating buttons and settings together, so you can view data, switch pages and adjust parameters by touch.
Its IPS LCD has an 800 × 480 resolution, supports 65K colors and uses a 16-bit RGB565 interface. It has a nominal viewing angle of 160 degrees and can play video, while the supplied touch example reads up to five touch points through the GT911 controller.
Here are more guides from our previous articles and guides related to ESP32-S31 boards and touchscreens that you may find helpful.
- ESP32 S31 Devkit Hands-on: 320 MHz RISC-V Chip Adds Wi-Fi 6
- LCD Wizard Generates Ready-to-Use ESP32 Touchscreen Code
- ESP32 Console Runs 6 Games on a 4-Inch Touchscreen
- ESP32 Module Features a 1.14-Inch TFT Screen for Live Data Tracking
Add Audio and Motion Input
For sound capture and playback, the board has dual microphones and an 8-ohm, 2-watt speaker, supported by an ES8389 audio codec and speaker amplifier. The supplied examples let you test audio capture and playback and provide a starting point for connecting sound to an on-screen interface.
A six-axis IMU detects tilt and rotation. Its QMI8658 sensor provides accelerometer and gyroscope measurements for use alongside touch input.
Connect a Project Wirelessly
The ESP32-S31 supports 2.4 GHz Wi-Fi 6 and Bluetooth 5.4, with an onboard antenna for connections in projects such as networked information panels.
It also supports IEEE 802.15.4, Thread, Zigbee and Bluetooth Mesh 1.1. Specific protocol features require the corresponding SDK and firmware.
Attach Devices Through Expansion Ports
The expansion connector exposes half-duplex RS485, CAN FD, I2C and six native GPIOs, while a separate four-pin USB host connector provides another connection for external devices.
You can select the I2C expansion voltage in hardware between 3.3 V and 5 V; it is connected to 3.3 V by default. The GPIOs are non-isolated and must use 3.3 V logic and a common ground, rather than high-voltage inputs or power loads.
Do not press the BOOT button while RS485 is running: the button shares its direction-control pin. The TF card slot supports local storage and is configured for 4-bit SDMMC in the supplied examples.
Choose a Case and Power Source
Three configurations are available: without a case, with a plastic case, or with a plastic case and a 3.7 V lithium battery. On cased versions, the reset and boot buttons, USB port and TF card slot sit on one side, while the other side has the power switch and lets you check device status.
Power comes through 5 V through USB-C, 7-36 V DC through the expansion connector or a single-cell lithium battery. The board includes a battery charging circuit and fuel gauge. Rail and wall brackets or a monitor arm can be used for mounting, but the accessories are sold separately.
Start With ESP-IDF and LVGL
The supplied ESP-IDF examples provide a starting point for getting the display and touch controls running, and an LVGL example can be used to build a graphical interface. The examples use Espressif’s ESP-IDF v6.1 and target the ESP32-S31, with ready-to-flash firmware provided for all 16 examples.
For a first connection, use a computer and a data-capable USB-C cable. Arduino does not currently support the ESP32-S31, and you cannot substitute firmware for an ESP32-S3 board because the architectures, peripherals and pin assignments differ. Flashing the factory firmware image also overwrites the application, partition table, settings and data.
In our view, the notable part is the mix of a touchscreen with RS485, CAN FD and USB host on one board. Screen projects often need a separate interface board, so having both together could save real wiring effort. We think this suits makers and developers who want a ready-made control panel or information display and are happy working in ESP-IDF and LVGL. The supplied display, touch and LVGL examples give those developers a starting point. It is less suited to anyone wanting a plug-and-play device with no coding.
If you are comfortable developing with ESP-IDF and LVGL, the Waveshare ESP32-S31 touchscreen board is worth a closer look for building your own control panel or information display.
Media Credit: Waveshare Electronics
Filed Under: Displays News, DIY Projects, Top News
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.
本文来源:https://www.geeky-gadgets.com/waveshare-esp32-s31-touch-lcd
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。