Waveshare ESP32-P4-Pico

Waveshare ESP32-P4-Pico Development Board User Manual

Model: ESP32-P4-Pico | Brand: Waveshare

1. บทนำ

This document provides detailed instructions for setting up, operating, and maintaining your Waveshare ESP32-P4-Pico Development Board. The ESP32-P4-Pico is a high-performance multimedia development board based on the ESP32-P4 chip, designed for embedded systems, human-computer interaction, edge computing, and IO expansion applications. It features a rich set of human-computer interaction interfaces, including MIPI-CSI (Integrated Image Signal Processor ISP), MIPI-DSI, SPI, I2S, I2C, LED PWM, MCPWM, RMT, ADC, UART, and TWAI. It also supports USB OTG 2.0 HS and a 40PIN GPIO expansion interface, compatible with some Raspberry Pi Pico expansion boards.

จากบนลงล่าง view of the Waveshare ESP32-P4-Pico Development Board
Figure 1: Waveshare ESP32-P4-Pico Development Board (Top View)

2. คุณสมบัติหลัก

The ESP32-P4-Pico Development Board offers powerful performance and rich human-computer interaction interfaces. Key features include:

  • High-performance MCU: Equipped with RISC-V 32-bit dual-core and single-core processors, operating at 400MHz.
  • หน่วยความจำ: 128KB high-performance ROM, 16KB low-power ROM, 768KB high-performance L2MEM, 32KB low-power SRAM, 8KB TCM.
  • การจัดเก็บข้อมูลแบบบูรณาการ: 32MB PSRAM stacked inside the chip package and 32MB Nor Flash integrated externally.
  • Image and Voice Processing: Strong capabilities including JPEG codec, pixel processing accelerator (PPA), image signal processor (ISP), and H.264 video encoder.
  • การเชื่อมต่อ: MIPI-CSI (2-lane camera interface), MIPI-DSI (2-lane display interface), USB 2.0 OTG, SDIO 3.0 SD card slot, microphone, and speaker terminals.
  • การขยาย GPIO: 40-pin GPIO expansion interface with 27 programmable GPIOs, compatible with some Raspberry Pi Pico expansion boards.
  • ความปลอดภัย: Features secure boot, Flash encryption, hardware encryption accelerator, hardware random number generator, hardware access protection (APM), and permission separation.
Diagram highlighting key features of the ESP32-P4 Development Board, including RISC-V MCU, 32MB PSRAM, 32MB Flash, USB OTG 2.0 HS, MIPI-CSI, MIPI-DSI, Audio playback, and Audio acquisition.
รูปที่ 2: คุณสมบัติหลักเหนือview

3. Kit Selection

The ESP32-P4-Pico Development Board is available in several configurations to suit different project needs:

  • รุ่นมาตรฐาน: The basic development board without pre-soldered headers.
  • With pre-soldered headers: The development board with headers already soldered for easier prototyping.
  • ESP32-P4-Pico-KIT-A: Includes the ESP32-P4-Pico-M (with pre-soldered headers), a speaker, PRI Camera IBI, FFC 15PIN cable, PI5-Camera-Cable-200mm, and MX1.25 4PIN to USB cable.
  • ESP32-P4-Pico-KIT-B: Includes the ESP32-P4-Pico-M (with pre-soldered headers), a 10.1-DSI-TOUCH-A display, a speaker, PRI Camera IBI, FFC 15PIN cable, PI5-Camera-Cable-200mm, MX1.25 4PIN to USB cable, DSI cable, FFC 22PIN cable, MX1.25 2PIN to MX2.54 3PIN cable, MX1.25 2PIN to MX1.25 4PIN cable, and standoffs.
Image showing different kit options for the ESP32-P4-Pico, including standard, pre-soldered, KIT-A, and KIT-B with included accessories.
Figure 3: Available Kit Options

4. Resource Overview and Pin Definition

The ESP32-P4-Pico board integrates various components and interfaces. Understanding their layout and pin assignments is crucial for development.

Diagram showing the resource overview of the ESP32-P4-Pico board with numbered components and their descriptions.
Figure 4: Resource Overview

คำอธิบายส่วนประกอบ:

  1. ESP32-P4NRW32: The main ESP32-P4 chip.
  2. อินเทอร์เฟซการแสดงผล: MIPI-DSI (2-lane), capable of connecting to 5/7/8/10.1-inch DSI screens.
  3. อินเตอร์เฟซกล้อง: MIPI-CSI (2-lane), capable of connecting to cameras such as OV5647.
  4. อินเทอร์เฟซ Type-C: Used for power supply and program burning.
  5. Surface-mounted microphone.
  6. อินเทอร์เฟซลำโพง: MX1.25 2P connector, supporting 8Ω 2W speaker.
  7. 4PIN USB interface.
  8. USB OTG 2.0 High speed interface.
  9. ปุ่มบูต: When pressed during power-on or reset, it enters the download mode.
  10. ปุ่ม RST: ปุ่มรีเซ็ต
  11. ไฟแสดงสถานะพลังงาน
  12. ช่องเสียบการ์ด SD: SDIO 3.0 interface protocol.
Detailed pin definition diagram for the ESP32-P4-Pico board, color-coded for Power, Ground, GPIO, and System Control.
รูปที่ 5: คำจำกัดความของพิน

The pinout diagram (Figure 5) illustrates the assignment of Power, Ground, GPIO, and System Control pins. Refer to this diagram when connecting peripherals or designing custom circuits.

5. คำแนะนำในการตั้งค่า

Follow these steps to set up your ESP32-P4-Pico Development Board:

  1. แกะบอร์ดออก: Carefully remove the ESP32-P4-Pico board and any accessories from its packaging.
  2. Connect to Power/PC: Connect the board to your computer using a USB Type-C cable via the Type-C interface (labeled '5' in Figure 4). This will provide power and enable communication for programming.
  3. ติดตั้งไดรเวอร์ (หากจำเป็น): Your operating system may automatically install necessary drivers. If not, refer to the Waveshare documentation for specific driver installation instructions for the ESP32-P4.
  4. เตรียมสภาพแวดล้อมการพัฒนา: Set up your preferred ESP-IDF (Espressif IoT Development Framework) or other compatible development environment on your computer.
  5. เชื่อมต่ออุปกรณ์ต่อพ่วง (ทางเลือก): If using a kit or external components, connect them according to the pin definitions and connection exampเลส.
Examples of connecting peripherals to the ESP32-P4-Pico board for KIT-A and KIT-B configurations.
Figure 6: Kit Connection Exampเลส

Figure 6 demonstrates typical connections for KIT-A (camera and speaker) and KIT-B (camera, speaker, and DSI display).

6. คู่มือการใช้งาน

Once the board is set up and your development environment is ready, you can begin operating the ESP32-P4-Pico:

  1. เปิดเครื่อง: The board powers on automatically when connected via USB Type-C. The power indicator light (labeled '11' in Figure 4) should illuminate.
  2. อัพโหลดเฟิร์มแวร์: Use your development environment (e.g., ESP-IDF) to compile and upload your firmware to the board via the USB Type-C connection.
  3. Enter Download Mode: To upload new firmware, press and hold the BOOT button (labeled '9' in Figure 4) while resetting the board (either by pressing the RST button or power cycling). Release BOOT after reset to enter download mode.
  4. การรีเซ็ตบอร์ด: Press the RST button (labeled '10' in Figure 4) to perform a hardware reset of the ESP32-P4 chip.
  5. Interacting with Peripherals: Program the ESP32-P4 to interact with connected cameras, displays, speakers, and other GPIO-connected devices as per your application's requirements.
  6. การใช้งานการ์ด SD: Insert an SD card into the SD card slot (labeled '12' in Figure 4) to utilize its SDIO 3.0 interface for storage or data transfer.

7. การบำรุงรักษา

Proper care and maintenance will ensure the longevity of your development board:

  • รักษาความสะอาด: ควรทำความสะอาดกระดานเป็นประจำด้วยแปรงขนนุ่มแห้งหรือใช้ลมเป่าเพื่อกำจัดฝุ่นและสิ่งสกปรก หลีกเลี่ยงการใช้ของเหลว
  • จัดการด้วยความระมัดระวัง: Always handle the board by its edges to prevent damage to components or static discharge.
  • พื้นที่จัดเก็บ: Store the board in an anti-static bag in a cool, dry place when not in use.
  • แหล่งจ่ายไฟ: Use a stable and appropriate power supply (via USB Type-C) to prevent damage from voltagความผันผวนของอี
  • หลีกเลี่ยงการลัดวงจร: Ensure all connections are correct before applying power to prevent short circuits.

8 การแก้ไขปัญหา

หากคุณพบปัญหา ให้ลองทำตามขั้นตอนการแก้ไขปัญหาต่อไปนี้:

ปัญหาสาเหตุที่เป็นไปได้สารละลาย
บอร์ดไม่เปิดใช้งานNo power, faulty USB cable, driver issueCheck USB connection, try another cable/port, ensure drivers are installed.
Firmware upload failsNot in download mode, incorrect port, corrupted firmwareEnsure BOOT button is pressed during reset, select correct COM port, recompile firmware.
อุปกรณ์ต่อพ่วงใช้งานไม่ได้Incorrect wiring, software configuration, faulty peripheralVerify wiring against pin definition, check software code, test peripheral separately.
Board unresponsiveSoftware crash, power issuePress RST button, power cycle the board.

9. ข้อมูลจำเพาะ

Key technical specifications for the ESP32-P4-Pico Development Board:

คุณสมบัติรายละเอียด
มหาเทพESP32-P4 (32-bit RISC-V Dual-Core and Single-Core)
ความถี่ซีพียู400เมกะเฮิรตซ์
พีเอสแรม32MB (stacked inside chip package)
นอร์แฟลช32MB (externally integrated)
รอม128KB high-performance, 16KB low-power
L2MEM768KB high-performance
เอสแรม32KB low-power
การแพทย์แผนจีน8KB
อินเทอร์เฟซ USBUSB Type-C (power/programming), USB OTG 2.0 HS
หน้าจอแสดงผลMIPI-DSI (2-lane)
อินเทอร์เฟซกล้องMIPI-CSI (2-lane)
ช่องเสียบการ์ด SDSDIO 3.0 protocol
เสียงSurface-mounted microphone, MX1.25 2P speaker interface (8Ω 2W)
GPIO ย่อมาจาก GPIO27 programmable GPIOs (from 40-pin expansion)
ขนาดขนาด 57.30 มม. x 21.00 มม. (โดยประมาณ)
Diagram showing the physical dimensions of the ESP32-P4-Pico board in millimeters.
รูปที่ 7: ขนาดผลิตภัณฑ์

10. เคล็ดลับผู้ใช้

ในขณะที่ไม่มีผู้ใช้เฉพาะviews or Q&A were provided, here are some general tips for working with development boards like the ESP32-P4-Pico:

  • เริ่มต้นด้วยอดีตampเลส: Begin with official examples from the ESP-IDF to familiarize yourself with the board's capabilities and programming model.
  • โปรดศึกษาเอกสารประกอบ: Always refer to the official Espressif and Waveshare documentation for the most up-to-date information on the ESP32-P4 chip and the Pico board.
  • ใช้แผงวงจรทดลอง (Breadboard): For initial prototyping, using a breadboard with the standard or pre-soldered header versions can simplify connections.
  • การพิจารณาเรื่องอำนาจ: When connecting multiple power-hungry peripherals, ensure your USB power source can provide sufficient current.
  • การปล่อยไฟฟ้าสถิต: Take precautions against electrostatic discharge (ESD) when handling the board to prevent damage to sensitive components.

11. การรับประกันและการสนับสนุน

For warranty information, technical support, and further resources, please refer to the official Waveshare webตรวจสอบข้อมูลในเว็บไซต์หรือติดต่อร้านค้าที่คุณซื้อสินค้า เก็บใบเสร็จรับเงินไว้เป็นหลักฐานการซื้อ