M5Core2 Library
English | 中文
Description
M5Core2 is the second generation core device in the M5Stack development kit series, which further enhances the functions of the original generation of cores.
The MCU is an ESP32 model D0WDQ6-V3 and has dual core Xtensa® 32-bit 240Mhz LX6 processors that can be controlled separately. WiFi and Bluetooth are supported as standard and it includes an on board 16MB Flash and 8MB PSRAM, USB TYPE-C interface for charging, downloading of programs and serial communication, a 2.0-inch integrated capacitive touch screen, and a built-in vibration motor.
M5Core2 also features a built-in RTC module which can provide accurate timing. The power supply is managed by an AXP192 power management chip, which can effectively control the power consumption of the base and a built-in green LED power indicator helps to notify the user of battery level. The battery capacity has been upgraded to 390mAh, which can power the core for much longer than the previous model.
The M5Core2 retains the SD card slot and speakers. However, in order to ensure higher quality sound output, the I2S digital audio interface power amplifier chip is used to effectively prevent signal distortion. There are independent power and reset buttons on the left side and bottom of the base.
The 3 icons on the front of the screen are capacitive buttons which are programmable. There is a small expansion board on the back of the base with a 6-axis IMU sensor and microphone.
PinMap
LCD & TF card
LCD :320x240 TF card Maximum size 16GB
ESP32 Chip | GPIO38 | GPIO23 | GPIO18 | GPIO5 | GPIO15 | |||
AXP192 Chip | AXP_IO4 | AXP_DC3 | AXP_LDO2 | |||||
ILI9342C | MISO | MOSI | SCK | CS | DC | RST | BL | PWR |
ESP32 Chip | GPIO38 | GPIO23 | GPIO18 | GPIO4 |
TF Card | MISO | MOSI | SCK | CS |
CAP.TOUCH
ESP32 chip | GPIO21 | GPIO22 | GPIO39 | |
AXP192 | AXP_IO4 | |||
FT6336U | SDA | SCL | INT | RST |
Mic & NS4168
ESP32 Chip | GPIO12 | GPIO0 | GPIO2 | AXP_IO2 | GPIO34 |
NS4168 | BCLK | LRCK | DATA | SPK_EN | |
Mic | CLK | DATA |
AXP Power Indicator Light & Vibration motor
AXP192 | AXP_IO1 | AXP_LDO3 |
Green LED | Vcc | |
Vibration motor | Vcc |
RTC
ESP32 Chip | GPIO21 | GPIO22 | |
AXP192 | AXP_PWR | ||
BM8563 | SDA | SCL | INT |
IMU(3-axis gyroscope & 3-axis accelerometer)
ESP32 Chip | GPIO21 | GPIO22 |
MPU6886 | SDA | SCL |
USB to serial chip
ESP32 Chip | GPIO1 | GPIO3 |
CP2104 | RXD | TXD |
Internal I2C connection
ESP32 Chip | GPIO21 | GPIO22 |
MPU6886 | SDA | SCL |
AXP192 | SDA | SCL |
BM8563 | SDA | SCL |
FT6336U | SDA | SCL |
M5Core2 M-BUS Schematic diagram
M5PORT EXPLAIN
PORT | PIN | Note: |
---|---|---|
PORT-A(Red) | G32/33 | I2C |