CoreP4X
SKU:C157
Description
CoreP4X is a high-performance IoT controller that integrates a touch display, audio, and wired networking. Built around the Stamp-P4X core module, it uses the ESP32-P4NRW32X with a dual-core RISC-V main processor and a low-power single-core processor, along with 16MB Flash and 32MB PSRAM. The front panel features a 2.64" LCD with a 480 x 480 resolution and multi-touch support. Dual MEMS microphones and a 1W speaker support voice capture and audio playback. For connectivity, the device provides 10/100 Mbps Ethernet, three USB ports (one USB Type-C port for debugging and power input, and two USB Host ports), a Base PwrCom PoE power expansion connector, a Wi-Fi module expansion interface, and M5-Bus, Grove, and other expansion interfaces. CoreP4X is suitable for developing smart home control panels, voice interaction terminals, remote monitoring devices, and industrial human-machine interfaces.
Tutorial
This tutorial explains how to program and control the CoreP4X device using the Arduino IDE.
This tutorial explains how to control the CoreP4X device using the UiFlow2 graphical programming platform.
Features
- Stamp-P4X core module with ESP32-P4NRW32X
- 2.64" LCD touchscreen
- ST7102 display driver
- 480 x 480 resolution
- CST3530 touch controller with multi-touch support
- CNC-machined aluminum alloy display frame
- Audio system
- ES8311 Audio Codec
- AW8737A Audio AMP + 1W @ 8Ω speaker
- ES7210 Audio ADC + dual MEMS microphone inputs with acoustic echo cancellation (AEC)
- 10/100 Mbps Ethernet with IP101GRI PHY
- LSM6DS3TR-C 6-axis IMU
- IR transmission and reception
- RTC RX8130CE
- Expansion Interfaces
- HY2.0-4P (PORT.A)
- M5-Bus
- microSD card slot
- Base PwrCom PoE power expansion connector
- Wi-Fi expansion interface compatible with Stamp-AddOn C6 For P4 (module not included)
- MIPI CSI (2-lane) expansion interface
- USB Interfaces
- 1x USB Type-C (Debug / USB Device, DC 5V input)
- 1x USB Type-C (USB Host, DC 5V output)
- 1x USB-A (USB Host, DC 5V output)
- Power Supply
- USB Type-C DC 5V input
- M5-Bus DC 5V input
- DC 3.7V battery input
- Power & Peripheral Management
- Stamp Timer Power2 power management module with M5PM1
- Multi-level power management with low-power wake-up support
- Two battery charging current settings: 180 / 650mA
- M5IOE1 I/O expander for peripheral management
Includes
Applications
- Smart home control
- Remote monitoring systems
- IoT device development
- Industrial automation
Specifications
| Specification | Parameter |
|---|
| Core Module | Stamp-P4X |
| SoC | ESP32-P4NRW32X @ 32-bit dual-core RISC-V processor at 400MHz and low-power single-core processor at 40MHz |
| Flash | 16MB |
| PSRAM | 32MB |
| Ethernet | 10/100 Mbps Ethernet, IP101GRI |
| Wi-Fi | Supports Wi-Fi expansion with Stamp-AddOn C6 For P4 (module not included) |
| Display | 2.64" LCD touchscreen, 480 x 480 resolution, ST7102 driver, MIPI DSI (2-lane) interface |
| Touch | CST3530 touch controller, up to 5 touch points |
| Audio Codec | ES8311 Audio Codec, 24-bit resolution, I2S audio interface |
| Microphone | ES7210 audio ADC, dual MEMS microphones, AEC support |
| Speaker | AW8737A amplifier, 1W @ 8Ω speaker |
| IMU | LSM6DS3TR-C 6-axis motion sensor |
| RTC | RX8130CE |
| Storage Expansion | microSD card slot |
| USB Interfaces | 1x USB Type-C (Debug / USB Device, DC 5V input) 1x USB Type-C (USB Host, DC 5V output) 1x USB-A (USB Host, DC 5V output) |
| Expansion Interfaces | HY2.0-4P (PORT.A), M5-Bus |
| Onboard Expansion Connectors | MX1.25-2P battery connector, MX1.25-4P USB breakout connector |
| Base PwrCom PoE Power Expansion Connector | MX1.25-6P |
| Stamp-P4X BTB Expansion Interfaces | Wi-Fi (SDIO): HC-PBB40C-20DS-0.4V-2.5-02 MIPI CSI (2-lane): AXE516127D |
| Power Management | Stamp Timer Power2 (M5PM1) with multi-level power management, low-power wake-up, and two battery charging current settings (180 / 650mA) |
| Peripheral Management | M5IOE1 I/O expander |
| Input Power | USB Type-C DC 5V, M5-Bus DC 5V, DC 3.7V battery input |
| Power Consumption | Shutdown: DC 4.2V@9.59uA Full load (Wi-Fi module continuously scanning for hotspots, maximum display brightness, maximum speaker volume): DC 4.2V@380.67mA (peak 600mA) |
| IR Communication Distance | Transmission: 0° approx. 7.1m / 45° approx. 4.5m / 90° approx. 1.8m Reception: 0° approx. 5.0m / 45° approx. 3.8m / 90° approx. 1.2m |
| Product Size | 54.0 x 54.0 x 23.5mm |
| Product Weight | 51.7g |
| Package Size | 70.0 x 68.0 x 27.0mm |
| Gross Weight | 67.3g |
Learn
Power On/Off
- Single click the power button: Power on / reset
- Double click the power button: Power off
Enter Download Mode
Connect the device to a computer using a USB Type-C data cable, then long-press the power button until the green LED flashes, indicating that the device has entered download mode.
Schematics
PinMap
LCD
| ESP32-P4NRW32X | DSI_D0_P | DSI_D0_N | DSI_D1_P | DSI_D1_N | DSI_CK_P | DSI_CK_N |
|---|
| LCD | LCD_DSI_D0_P | LCD_DSI_D0_N | LCD_DSI_D1_P | LCD_DSI_D1_N | LCD_DSI_CK_P | LCD_DSI_CK_N |
The M5IOE1 I/O expander uses PYG11 (PYB_LCD_RST) to reset the display, PYG10 (PYB_LCD_PWR_EN) to control display power, and PYG9 (PYB_LCD_BL_PWM) to adjust backlight brightness.
Touch
| ESP32-P4NRW32X | LPG11 | LPG9 | LPG1 |
|---|
| CST3530 | TP_SDA | TP_SCL | TP_INT |
The M5IOE1 I/O expander uses PYG8 (PYB_TP_RST) to reset the touch controller.
Audio
| ESP32-P4NRW32X | LPG9 | LPG11 |
|---|
| ES8311 | Audio_I2C_SCL | Audio_I2C_SDA |
| ES7210 | Audio_I2C_SCL | Audio_I2C_SDA |
| ESP32-P4NRW32X | LPG2 | LPG6 | LPG4 | LPG5 | LPG3 |
|---|
| ES8311 | MCLK | SCLK | LRCK | NC | DSDIN |
| ES7210 | MCLK | SCLK | LRCK | SDOUT1/TDMOUT | NC |
The M5IOE1 I/O expander uses PYG3 (PYB_SPK_PWR_EN) to control power to the AW8737A speaker amplifier and PYG1 (PYB_AU_PWR_EN) to control power to the audio peripherals.
IMU & RTC
| ESP32-P4NRW32X | LPG9 | LPG11 |
|---|
| LSM6DS3TR-C | SCL | SDA |
| RX8130CE | SCL | SDA |
| M5PM1 | PYG0 | PYG4 |
|---|
| LSM6DS3TR-C | IMU_INT | |
| RX8130CE | | RTC_INT |
IR
| ESP32-P4NRW32X | G49 | G13 |
|---|
| IR | IR_OUT | IR_IN |
microSD
| ESP32-P4NRW32X | G50 | LPG7 | LPG8 | LPG10 |
|---|
| microSD | CS | MOSI | MISO | SCK |
The M5IOE1 I/O expander reads the microSD card insertion status on PYG13 (PYB_SD_DEC).
HY2.0-4P
| HY2.0-4P | Black | Red | Yellow | White |
|---|
| PORT.A | GND | 5V | G18 | G16 |
M5-Bus
M5-BusBOTTOM VIEW1Pin 1
| FUNC | PIN | | | PIN | FUNC |
|---|
| GND | 1 | 2 | G17 | ADC1 |
| GND | 3 | 4 | G20 | ADC1 |
| GND | 5 | 6 | RST | EN |
| MOSI | LPG7 | 7 | 8 | G21 | ADC1 |
| MISO | LPG8 | 9 | 10 | G22 | ADC1 |
| SCK | LPG10 | 11 | 12 | 3V3 | |
| RXD0 | G38 | 13 | 14 | G37 | TXD0 |
| LP UART RX / PC_RX | LPG15 | 15 | 16 | LPG14 | LP UART TX / PC_TX |
| Int SDA | LPG11 | 17 | 18 | LPG9 | Int SCL |
| PORT.A SDA / ADC1 | G18 | 19 | 20 | G16 | PORT.A SCL / ADC1 |
| GPIO | G39 | 21 | 22 | LPG12 | GPIO |
| GPIO | G34 | 23 | 24 | G23 | ADC1 |
| NC | 25 | 26 | G19 | ADC1 |
| NC | 27 | 28 | 5V | |
| NC | 29 | 30 | BAT | |
123456789101112131415161718192021222324252627282930BOTTOM VIEW
USB
| USB | D+ | D- | VBUS |
|---|
| USB-C (Download / Debug / USB Device) | G27_USB1_P | G26_USB1_N | VUSBIN |
| USB-C (Host) | G25_USBC_D+ | G24_USBC_D- | P4USBC_L3 |
| USB-A (Host) | USB2_HOST_P | USB2_HOST_N | USBA_L3 |
The M5IOE1 I/O expander uses PYG4 (PYB_P4USBC_OUT_EN) and PYG2 (PYB_USBA_OUT_EN) to control the 5V outputs of USB-C (Host) and USB-A (Host), respectively.
Factory USB Serial/JTAG Configuration
CoreP4X ships with the
USB_PHY_SEL eFuse set to
1, switching USB Serial/JTAG from the chip defaults GPIO24 (D-) / GPIO25 (D+) to GPIO26 (D-) / GPIO27 (D+) for the Debug / USB Device port. GPIO24 (D-) / GPIO25 (D+) are assigned to the other full-speed USB PHY for the USB-C Host port. This is a permanent, one-time eFuse configuration. No further eFuse programming is required for normal use.
ESP32-P4 USB PHY ConfigurationEthernet
| ESP32-P4NRW32X | G32 | G33 | G41 | G35 | G28 | G29 | G30 | G31 | G36 | G52 |
|---|
| IP101GRI | REF_CLK | TXEN | TXD0 | TXD1 | CRS_DV | RXD0 | RXD1 | MDC | MDIO | RESET |
| MX1.25-6P - PoE (J5) | 1 | 2 | 3 | 4 | 5 | 6 |
|---|
| Base PwrCom | POE12 | POE36 | POE45 | POE78 | 5V_INOUT | GND |
M5PM1
| ESP32-P4NRW32X | LPG9 | LPG11 |
|---|
| M5PM1 | SCL | SDA |
| M5PM1 | PYG0 | PYG1 | PYG2 | PYG4 |
|---|
| IMU | PYG0_IMU_INT | | | |
| CHARGE | | PYG1_CHG_PROG | | |
| ESP32-P4NRW32X | | | PYG2_IRQ | |
| RTC | | | | PYG4_RTC_INT |
PYG0 (PYG0_IMU_INT): Receives the IMU interrupt for wake-on-motion. PYG1 (PYG1_CHG_PROG): Selects the battery charging current. PYG2 (PYG2_IRQ): Routes the M5PM1 interrupt to LPG0 on the ESP32-P4NRW32X. PYG4 (PYG4_RTC_INT): Receives the RTC interrupt for scheduled wake-up.
M5IOE1
| ESP32-P4NRW32X | LPG9 | LPG11 |
|---|
| M5IOE1 | SCL | SDA |
| M5IOE1 | PYG1 | PYG2 | PYG3 | PYG4 | PYG5 | PYG6 |
|---|
| Audio L3B | PYB_AU_PWR_EN | | | | | |
| USB-A | | PYB_USBA_OUT_EN | | | | |
| Speaker AMP AW8737A | | | PYB_SPK_PWR_EN | | | |
| USB-C (Host) | | | | PYB_P4USBC_OUT_EN | | |
| Grove | | | | | PYB_GROVE_PWR_EN | |
| CHARGE | | | | | | PY_CHG_STAT |
| M5IOE1 | PYG8 | PYG9 | PYG10 | PYG11 | PYG12 | PYG13 |
|---|
| Touch | PYB_TP_RST | | | | | |
| LCD | | PYB_LCD_BL_PWM | PYB_LCD_PWR_EN | PYB_LCD_RST | | |
| 3V3_L3B | | | | | PYB_L3B_EN | |
| microSD | | | | | | PYB_SD_DEC |
PYG1 (PYB_AU_PWR_EN): Controls power to the audio peripherals. PYG2 (PYB_USBA_OUT_EN): Controls the USB-A (Host) 5V output. PYG3 (PYB_SPK_PWR_EN): Controls power to the speaker amplifier. PYG4 (PYB_P4USBC_OUT_EN): Controls the USB-C (Host) 5V output. PYG5 (PYB_GROVE_PWR_EN): Controls power to the Grove port. PYG6 (PY_CHG_STAT): Reads the charging status. PYG8 (PYB_TP_RST): Resets the touch controller. PYG9 (PYB_LCD_BL_PWM): Adjusts the LCD backlight brightness via PWM. PYG10 (PYB_LCD_PWR_EN): Controls LCD power. PYG11 (PYB_LCD_RST): Resets the LCD. PYG12 (PYB_L3B_EN): Enables the L3B power domain that supplies the Ethernet PHY, IR circuitry, and microSD card. PYG13 (PYB_SD_DEC): Detects microSD card insertion.
Model Size
Structure
Datasheets
Softwares
Arduino
UiFlow2
ESP-IDF
Other
Video