EasyLoader (beta)

Current Product Don't Have Test Firmware

Note: pls, use PC chrome/edge browser, if can't connect, refresh the webpage.

1. Click connect button

2. After connected successfully, pick a firmware

3. Click the burn button

4. After burning successfully, Unplug the device and restart.

0%

GRAY

SKU:K002

Tutorial

This tutorial will show you how to control Gray devices through the UIFlow graphical programming platform
This tutorial will show you how to program and control Gray devices through Arduino IDE
This tutorial will show you how to control Gray devices through Micropython programming

Description

M5Stack GRAY Kit is one of the M5Stack development kit series, which is a upgrade from the Basic kits. In comparison, Gray kit provides an extra IMU sensor, BMM150 + MPU6886. Gray kit is a nice choice for users who just get started or in progress.

With a IMU posture sensor, there are a lot of situations which u can apply this kit to: detecting acceleration, angulation, and trajectory. You can make relative products like sports data collector, 3D remote gesture controller and more base on the above functions.

GRAY is M5 Core device. Its modular, stackable, scalable, and portable device is powered with an ESP-32 core, which makes it open source, low cost, full-function, and easy for developers to handle new product development on all stages include circuit design, PCB design, software, mold design and production.

If you want to explore the fastest way of IoT prototyping, M5Stack development board is the perfect solution. Not like others, M5Stack development board is highly efficient, covered with industrial grade case and ESP32-based development board. It integrates with Wi-Fi modules and contains a dual-core and 16MB of SPI Flash . Together with 30+ M5Stack stackable modules , 40+ extendable units and different levels of program language, you can create and verify your IoT product in a very short time.

Supportive development platforms and programming languages: Arduino, Blockly language with UIFlow , Micropython. Regardless of what level programming skill you have, M5Stack would guide you in every step of the way to realize your idea as well as to the final productization.

If you ever played with ESP8266, you would realize that ESP32 is a perfect upgrade out of ESP8266. In comparison, ESP32 has more GPIOs, more analog inputs and two analog outputs, multiple extra peripherals( like a spare UART ). Official developing platform ESP-IDF has transplanted with FreeRTOS. With dual-core and real time OS you can get more organized code and much high speed processor.

Power on/off:
Power on: click the red power button on the left
Power off: Quickly double-click the red power button on the left
Note: By default, when USB is powered, it cannot be shut down**

Product Features

  • ESP32-based
  • Built-in Speaker, Buttons, LCD
  • TF card slot (Up to 16GB support)
  • Battery Socket & Lithium Polymer Battery
  • Extendable Pins & Holes
  • M-Bus Socket & Pins
  • Compatible with multi-platform development:

Include

  • 1x Gray
  • 10x Female-male Dupont
  • 1x Type-C USB(20cm)
  • 1x User Manual
  • 1x Sticker

Applications

  • Internet of things terminal controller
  • Stem education product
  • DIY creation

Specification

Resources Parameter
ESP32 240MHz dual core, 600 DMIPS, 520KB SRAM, Wi-Fi
Flash Memory 16MB (old: 4MB)
Power Input 5V @ 500mA
Port TypeC x 1, GROVE(I2C+I/0+UART) x 1
IPS Screen 2 inch, 320x240 Colorful TFT LCD, ILI9342C, max brightness 853nit
Speaker 1W-0928
Button Custom button x 3
Core Bottom Port PIN (G1,G2,G3,G16, G17, G18, G19, G21, G22, G23, G25, G26, G35, G36)
MEMS BMM150 + MPU6886
Battery 110mAh @ 3.7V
Antenna 2.4G 3D Antenna
Operating Temperature 0°C to 60°C
Net weight 49.2g
Gross weight 93g
Product Size 54 x 54 x 18.9 mm
Package Size 95 x 65 x 25mm
Case Material Plastic ( PC )

USB Driver

Click the link below to download the driver that matches the operating system. There are currently two driver chip versions (CP210X/CH9102). Please download the corresponding driver compressed package according to the version you are using. After decompressing the compressed package, select the installation package corresponding to the number of operating systems to install. (If you are not sure of the USB chip used by your device, you can install both drivers at the same time. During the installation process of CH9102_VCP_SER_MacOS v1.7, an error may occur, but the installation is actually completed, just ignore it.)

Driver name Applicable driver chip Download link
CP210x_VCP_Windows CP2104 Download
CP210x_VCP_MacOS CP2104 Download
CP210x_VCP_Linux CP2104 Download
CH9102_VCP_SER_Windows CH9102 Download
CH9102_VCP_SER_MacOS v1.7 CH9102 Download

EasyLoader

EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification.

Download Windows Version Easyloader Download MacOS Version Easyloader

Description:
This case will perform hardware running tests for speakers, wifi, buttons, accelerometer, TF-card(microSD), screen, etc.

Peripherals Pin Map

LCD & TF card

LCD :320x240 TF card Maximum size 16GB

ESP32 Chip GPIO23 GPIO19 GPIO18 GPIO14 GPIO27 GPIO33 GPIO32 GPIO4
ILI9342C MOSI/MISO / CLK CS DC RST BL
TF Card MOSI MISO CLK CS

Button & Speaker

ESP32 Chip GPIO39 GPIO38 GPIO37 GPIO25
Button Pin BUTTON A BUTTON B BUTTON C
Speaker Speaker Pin

GROVE Port A & IP5306

We've use the customized I2C version of IP5306, on power management.

Its I2C address is 0x75. Click here to check its datasheet

ESP32 Chip GPIO22 GPIO21 5V GND
GROVE A SCL SDA 5V GND
IP5306 SCL SDA 5V GND

IP5306 charging/discharging,Voltage parameter

charging discharging
0.00 ~ 3.40V -> 0% 4.20 ~ 4.07V -> 100%
3.40 ~ 3.61V -> 25% 4.07 ~ 3.81V -> 75%
3.61 ~ 3.88V -> 50% 3.81 ~ 3.55V -> 50%
3.88 ~ 4.12V -> 75% 3.55 ~ 3.33V -> 25%
4.12 ~ / -> 100% 3.33 ~ 0.00V -> 0%

6-Axis MotionTracking Sensor MPU6886

MPU6886 I2C address 0x68

ESP32 Chip GPIO22 GPIO21 5V GND
MPU6886 SCL SDA 5V GND

3-Axis Geomagnetic Sensor BMM150

BMM150 I2C address 0x10

ESP32 Chip GPIO22 GPIO21 5V GND
BMM150 SCL SDA 5V GND

M5PORT DEFINE

PORT PIN Note:
PORT-A(Red) G21/22 I2C
PORT-B(Black) G26/36 DAC/ADC
PORT-C(Blue) G16/17 UART

ESP32 ADC/DAC

ADC1 ADC2 DAC1 DAC2
8 channels 10 channels 2 channels 2 channels
G32-39 G0/2/4/12-15/25-27 G25 G26

Charging current measured value

charging current Fully charged current(Power OFF) Fully charged current(Power ON)
1.069A - 0.073A

M-BUS

M_BUS

For more information about Pin assignment and Pin Remapping, Please refer to ESP32 Datasheet

M-BUS BUS(compared to M5Core2)

Schematic

Learn

How to control Dji Tello drone by M5stack and Uiflow blocks at your wrist!. A base for STEM projects
Simple GPS tracker for M5Stack with informative display and several display options using the Tiny GPS ++ library.
Using the M5Stack to visualize time series data of the Covid-19 pandemic.
Modern times make modern solutions possible. Therefore, the step to a digital snow globe is not that far.
The objective is to decompress clinics and hospitals to reduce the time of exposure of health personnel to the COVID-19 virus(Based M5Stack)
Based on a LEGO NXT Mindstorm base for movement, and a M5Stack Grey Core for brains. Controlled by a simple web interface
A project to prevent access of suspect Covid-19 positive in office or community. M5Stack Core Grey, RFID unit and NCIR body temp measure
GPS logger that stores your location into a GPX file with a back end web server to view daily rides, add comments and multi-media files.
Change relationship between plants and human and make much deeper relationship.
An indoor positioning system based on Wi-Fi RSSI data to return to the right room of a hotel corridor. Maybe useless, but it works just fine!
Building a smart planting system using M5Stack to monitor the lights, humidity, temperature, watering your plant automatically.
Pretty accurate port of Sonic the Hedgehog from Sega Mega Drive to M5Stack. (But only first act of first zone.)
M5Stick V + Adafruit Thermal Printer + M5Stack Gray = Instant Camera Printer
A project to monitor Covid-19 disease, based on M5Stack Core Grey, show data rolling the relevant informations for each Italy region.
An ultimate low cost device to track symptoms of menopause and keep data in the cloud allowing doctors to have a better patient history.

Example

ArduinoIDE

  • Click here to download Arduino code

Video

m5stack introduce

Version Change

Release Date Product Change
2017.9 Initial public release
2017.12 MPU6050+MAG3110 is changed to MPU9250, IP5306 is connected to I2C bus
2019.6 MPU9250 changed to MPU6886+BMM150
2019.7 TN screen changed to IPS screen
2020.3 Battery capacity changed from 150mAh to 110mAh /

Note: 2018.2A PCB version of the device does not support C2C (TypeC to TypeC) connection and PD power supply.

FAQ

Q1: How do I remove the speaker floor noise when the M5Core is on or running?

Execute the following statement in Setup() of the Arduino program

Q2: How does M5Core2 stack modules?

When M5Core2 is stacked with other M5 modules, you need to remove the battery base of Core2, which does not support module stacking.

Q3: A timeout error is displayed when uploading the program to the device

Reason and solution: The power supply current of the port is insufficient, which can cause the device to not enter the download mode normally. You can try to connect a capacitor (>0.1uF) between the RST pin and the GND pin, or when uploading the program, set the G0 Short-circuit to GND, so that G0 can be set to a low level state normally

Q4: How to solve the phenomenon of automatic signal triggering of M5Core button A

Add the header file #include <driver/adc.h> and the function adc_power_acquire(); in the Arduino program

Q5: M5 device battery life

The battery life of the controller is affected by various factors such as battery capacity, operating status, and load, so there is no fixed value. Reducing the load and adopting a sleep strategy can effectively increase the battery life.

Q6: Can multiple modules with batteries be stacked at the same time?

Support multiple stacks, the total capacity of the batteries in parallel increases, and the voltage remains unchanged. However, since the discharge of each battery is not balanced during use, there is a voltage difference between the batteries, which may cause the battery to charge backwards. .(will lose part of the battery capacity)

Q7: M5 master supports WiFi connection to 5G frequency band

ESP32 module currently does not support WiFi in 5G band, only 2.4G.

Q8: The RS485 device cannot communicate normally/data is garbled. Packet loss, etc.

Confirm whether the TX/RX pin on the TTL side of the pin is correct, try to add two 120Ω terminal resistors at the beginning and end of the device line to reduce signal reflection interference

Q9: The difference between different masters and camera products

Click the link below to view the product comparison table

Q10: M5 camera image blur, how to adjust the focal length

Rotate the lens to adjust the focal length within a certain range

Q11: The control RGB LED pin of FACE II BOTTOM conflicts with the I2S DOUT pin of CORE2

FACE II BOTTOM NOT CORE2 COMPATIBLE

Q1: How to read the programmed firmware?

Use esptool to read the flash content of esp32 and export the bin file. Refer to the detailed operation

Q2: Several solutions for esp32 board download failure in Arduino IDE board management

Restart the Arduino IDE, the computer uses the mobile AP mobile network to download.

Method 3: Download the resource package provided by M5Stack for direct installation, and extract the contents to the board management path of Arduino, such as (C:\Users\Sean\AppData\Local\Arduino15\packages), https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/packages/m5stack_v2.0.0.zip
Q3: Arduino SPIFFS file upload operation

Refer to the Github link below, use arduino-esp32fs-plugin for file upload

Q4: When M5Burner burns firmware, an error pop-up window or exception occurs

Check if the COM of the corresponding device is selected and if the M5Burner is the latest version

Q5: Does the M5 master device support multi-language display (Chinese, English, Japanese, Russian, etc.)?

UIFlow users can switch the Label font to Unicode, Arduino users can use the Chinese font library provided in the M5GFX driver library

Q6: The program cannot load the SD card normally

Confirm whether the SD card format is FAT32, and no partitions exist.

Q7: How to use Bluetooth, HTTP, SD, WebServer, FreeRTOS and other features in Arduino IDE

You can refer to the following link for other ESP32 users to share the case program

Q8: How to download programs for STAMP C3U

STAMP C3U enters program download mode operation: 1. Long press the center button (G9) of STAMP C3U when the power is off. 2. Connect to the computer, after the port is successfully identified, program burning.

Q9: How STAMP C3U defines UART0 output mode

By default, USB CDC is not enabled, the serial port output started by C3U will be output through the default pins (G20, G21) of UART0. If you want to output through USB, please use the IDE to output Its USB CDC option is enabled. (Arduino users can enable it through Tools->USB CDC on Boot-Enabled. For IDF users, please refer to the ESP IDF official documentation.)

Q10: Unable to connect to UIFlow Desktop IDE

Refer to the UIFlow documentation of the corresponding device to check whether the device has entered the USB programming mode.

Q11: NBIoT devices cannot connect to the network normally

Make sure that the NBIoT used is not locked. Frequent device replacement or after activating the IoT card, using traffic in different places may cause the card to be locked. If the above situation occurs, please contact the IoT card supplier. If you are using the IoT card matching M5, please contact M5 after-sales through e-commerce or email. (provide the ICCID of the IoT card)

COMMON

Q1: Consultation for after-sales problems of products

Describe the problems encountered in detail. Screenshots of the programs involved or files can be added as attachments and sent to M5Stack's official after-sales email

Q2: Code Resources, Cases, User Communication