M5stack M5STICKC PLUS ESP32-PICO-D4 module User Manual

June 5, 2024
M5STACK

M5stack-logo

M5stack M5STICKC PLUS ESP32-PICO-D4 module

OUTLINE

StickC PLUS is an ESP32 board based on an ESP32-PICO-D4 module, with one LED and one button The board is made of PC+ABC.

Hardware Composition

The hardware of M5StickC PLUS: ESP32-PICO-D4 module, TFT screen, IMU, IR transmitter, Red LED, Button, GROVE interface, TypeC-to-USB interface, Power Management chip and battery.

  • StickT Add infrared camera.
  • ESP32- PICO-D4 is a System-in-Package (SiP) module that is based on ESP32, providing complete Wi-Fi and Bluetooth functionalities. The module integrates a 4-MB SPI flash. ESP32-PICO-D4 integrates all peripheral components seamlessly, including a crystal oscillator, flash, filter capacitors, and RF matching links in one single package.
  • TFT Screen is a 1.14-inch color screen driven by Sitronix’s ST7789 with a resolution of 135 x 240. The operating voltage range is 2.5~3.3V
  • IMU The MPU-6886 is a 6-axis motion tracking device that combines a 3-axis gyroscope and a 3-axis accelerometer in a small 3 mm x 3 mm x 0.75 mm 24-pin LGA package.
  • The power Management chip is X-Powers’s AXP192. The operating voltage range is 2.9V~6.3V and the charging current is 1.4A.
  • M5StickC PLUS equips ESP32 with everything needed for programming, everything needed for operation and development

PIN DESCRIPTION

  • USB INTERFACE

M5CAMREA Configuration Type-C type USB interface, support USB2.0 standard communication protocol.

  • GROVE INTERFACE

4p disposed pitch of 2.0mm M5CAMREA GROVE interfaces, internal wiring, and GND, 5V, GPIO32, GPIO33 connected.

FUNCTIONAL DESCRIPTION

This chapter describes the ESP32-PICO-D4 various modules and functions.

CPU AND MEMORY

ESP32-PICO-D4 contains two low-power Xtensa® 32-bit LX6 MCU. On-chip memory comprising:

  • 448-KB of ROM, and the program starts for the kernel function calls
  • For a 520 KB instruction and data storage chip SRAM (including flash memory 8 KB RTC)
  • RTC flash memory of 8 KB SRAM, when the RTC can be started in Deep-sleep mode, and for storing data accessed by the main CPU
  • RTC slow memory, of 8 KB SRAM, can be accessed by the coprocessor in Deep-sleep mode
  • Of 1 kbit of use, which is a 256-bit system-specific (MAC address and a chipset); the remaining 768 bits are reserved for the user program, these Flash programs include encryption and chip ID

STORAGE DESCRIPTION

External Flash and SRAM

ESP32 support multiple external QSPI flash and static random access memory (SRAM), having a hardware-based AES encryption to protect the user programs and data.

  • ESP32 access external QSPI Flash and SRAM by caching. Up to 16 MB of external Flash code space is mapped into the CPU, supports 8-bit, 16-bit, and 32-bit access, and can execute code.
  • Up to 8 MB of external Flash and SRAM mapped to the CPU data space, support for 8-bit, 16-bit, and 32-bit access. Flash supports only read operations, and SRAM supports read and write operations.

ESP32-PICO-D4 4 MB of integrated SPI Flash, the code can be mapped into CPU space, support for 8-bit, 16-bit and 32-bit access, and can execute code. Pin GPIO6 ESP32 of, GPIO7, GPIO8, GPIO9, GPIO10, and GPIO11 for connecting module integrated SPI Flash, not recommended for other functions.

CRYSTAL

  •  ESP32-PICO-D4 integrates a 40 MHz crystal oscillator.

RTC MANAGEMENT AND LOW POWER CONSUMPTION

ESP32 uses advanced power management techniques that may be switched between different power-saving modes. (See Table 5).

  • Power saving mode
    • Active Mode: RF chip is operating. The chip may receive and transmit a sounding signal.
    • Modem-sleep mode: The CPU can run, and the clock may be configured. Wi-Fi / Bluetooth baseband and RF
    • Light-sleep mode: CPU suspended. RTC and memory and peripherals ULP coprocessor operation. Any wake-up event (MAC, host, RTC timer or external interrupt) will wake up the chip.
    • Deep-sleep mode: only the RTC memory and peripherals are in a working state. WiFi and Bluetooth connectivity data are stored in the RTC. ULP coprocessor can work.
    • Hibernation Mode: 8 MHz oscillator and a built-in coprocessor ULP are disabled. RTC memory to restore the power supply is cut off. Only one RTC clock timer is located on the slow clock and some RTC GPIO at work. RTC RTC clock or timer can wake up from the GPIO Hibernation mode.
  • Deep-sleep mode
    • related sleep mode: power saves mode switching between Active, Modem-sleep, and Light-sleep mode. CPU, Wi-Fi, Bluetooth, and radio preset time interval to be awakened, to ensure connection Wi-Fi / Bluetooth.
    • Ultra Low-power sensor monitoring methods: the main system is Deep-sleep mode, ULP coprocessor is periodically opened or closed to measure sensor data. The sensor measures data, ULP coprocessor decides whether to wake up the main system.

Functions in different power consumption modes: TABLE 5

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-23

ELECTRICAL CHARACTERISTICS

LIMIT PARAMETERS

Table 8: Limiting values

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-24

  1. VIO to the power supply pad, Refer ESP32 Technical Specification Appendix IO_MUX, as SD_CLK of Power supply for VDD_SDIO

UIFlow Quick Start

  • This tutorial applies to M5StickC and M5StickC PLUS

Burning tool

Please click the button below to download the corresponding M5Burner firmware burning tool according to your operating system. Unzip and open the application.

Note: After the installation of macOS users, please put the application in the Application folder, as shown in the figure below.

Firmware burning

  • Double-click to open the Burner burning tool, select the corresponding device type in the left menu, select the firmware version you need, and click the download button to download

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-6

  • Then connect the M5 device to the computer through the Type-C cable, and select the corresponding COM port, the baud rate can use the default configuration in M5Burner, in addition, you can also fill in the WIFI that the device will be connected to during the firmware burning stage information. After configuration, click “Burn” to start burning

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-7

  • When the burning log prompts Burn Successfully, it means that the firmware has been burned.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-8

  • When first burning or the firmware program runs abnormally, you can click “Erase” to erase the flash memory. In the subsequent firmware update, there is no need to erase again, otherwise the saved Wi-Fi information will be deleted and the API Key will be refreshed.

Configure WIFI

UIFlow provides both offline and web versions of the programmer. When using the web version, we need to configure a WiFi connection for the device. The following describes two ways to configure WiFi connection for the device (Burn configuration and AP hotspot configuration).

Burn configuration WiFi(recommend)

UIFlow-1.5.4 and versions above can write WiFi information directly through M5Burner.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-9

AP hotspot configuration WiFi

  • Press and hold the power button on the left to turn on the machine. If WiFi is not configured, the system will automatically enter the network configuration mode when it is turned on for the first time. Suppose you want to re-enter the network configuration mode after running other programs, you can refer to the operation below. After the UIFlow Logo appears at startup, quickly click the Home button (center M5 button) to enter the configuration page. Press the button on the right side of the fuselage to switch the option to Setting, and press the Home button to confirm. Press the right button to switch the option to WiFi Setting, press the Home button to confirm, and start the configuration.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-10

  • After successfully connecting to the hotspot with your mobile phone, open the mobile phone browser to scan the QR code on the screen or directly access 192.168.4.1, enter the page to fill in your personal WIFI information, and click Configure to record your WiFi information. The device will restart automatically after successfully configuring and enter programming mode.

Note: Special characters such as “space” are not allowed in the configured WiFi information.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-11

Network Programming Mode and API KEY

Enter network programming mode

Network programming mode is a docking mode between the M5 device and the UIFlow web programming platform. The screen will show the current network connection status of the device. When the indicator is green, it means that you can receive a program push at any time. Under default situation, after the first successful WiFi network configuration, the device will automatically restart and enter the network programming mode. If you do not know how to re- enter the programming mode after running other applications, you can refer to the following operations. restarting, press button A in the main menu interface to select the programming mode and wait till the right indicator of the network indicator turns green in the programming mode page. Access the UIFlow programming page by visiting flow.m5stack.com on a computer browser.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-12

API KEY Pairing

API KEY is the communication credential for M5 devices when using UIFlow web programming. By configuring the corresponding API KEY on the UIFlow side, the program can be pushed for a specific device. The user needs to visit flow.m5stack.com in the computer web browser to enter the UIFlow programming page. Click the setting button in the menu bar at the upper right corner of the page, enter the API Key on the corresponding device, select the hardware used, click OK to save and wait till it prompts successfully connecting

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-13

Light up LED

Complete the above steps, then you can start programming with UIFlow. The following will show you a simple program to drive M5StickC to light up the LED indicator. (1. Drag the LED to light up the program block. 2. Splice to the Setup initialization program. 3 Click the Run button in the upper right corner)

UIFlow Desktop IDE

UIFlow Desktop IDE is an offline version of the UIFlow programmer which does not require a network connection and can provide you with a responsive program push experience. Please click the corresponding version of UIFlow-Desktop-IDE to download according to your operating system .

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-15

USB programming mode

Unzip the downloaded UIFlow Desktop IDE archive and double-click to run the application.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-16

After the app starts, it will automatically detect whether your computer has a USB driver (CP210X), click Install, and follow the prompts to finish the installation. (M5StickC does not require a CP210X driver, so users can choose to install or skip)

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-17

After the app starts, it will automatically detect whether your computer has a USB driver (CP210X), click Install, and follow the prompts to finish the installation. (M5StickC does not require a CP210X driver, so users can choose to install or skip)

Using UIFlow Desktop IDE requires an M5 device with UIFlow firmware and entering ** USB programming mode

Click the power button on the left side of the device to restart, after entering the menu, quickly click the right button to select USB mode.

Select the corresponding port, and the programming device, and click OK to connect.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-20

BLE UART

Function Description

Establish Bluetooth connection and enable Bluetooth passthrough service

  • Init ble uart name Initialize settings, configure Bluetooth device name.
  • BLE UART Writer Send data using BLE UART.
  • BLE UART remains cache Check the number of bytes of BLE UART data.
  • BLE UART read all data in BLE UART cache.
  • BLE UART read characters Read n data in BLE UART cache.

Instructions

Establish Bluetooth passthrough connection and send on / off control LED.

M5stack-M5STICKC-PLUS-ESP32-PICO-D4-module-fig-22

  • M5StickC IoT Getting Started Tutorial
  • UIFlow Block introduction

FCC Statement

Any changes or modifications not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment.
This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions:

  1. This device may not cause harmful interference, and
  2. This device must accept any interference received, including interference that may cause undesired operation. Exposure Statement Exposure Statement Exposure Statement Exposure Statement Note: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
  • Reorient or relocate the receiving antenna.
  • Increase the separation between the equipment and receiver.
  • Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
  • Consult the dealer or an experienced radio/TV technician for help.

FCC Radiation Exposure Statement:

This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment. This equipment should be installed and operated with a minimum distance of 20cm between the radiator& your body. Press and hold the side power button for two seconds to start the device. Press and hold for more than 6 seconds to turn off the device. Switch to the photo mode through the Home screen, and the avatar that can be obtained through the camera is displayed on the TFT screen. The USB cable must be connected when working, and the lithium battery is used for short-term storage to prevent power failure

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals