pdf-icon

Gray

SKU:K002

Description

Gray is an advanced development kit in the M5Stack series. As an upgraded version of the Basic kit, it offers larger Flash memory and integrates the IMU sensor MPU6886+BMM150. Whether for beginners or advanced users, the Gray kit is an excellent choice.

The IMU attitude sensor can be used in many applications to detect data such as acceleration, angle, and trajectory extension. Based on this, you can create related products such as motion data collectors and 3D remote gesture controllers.

With rapid prototyping and a very low threshold, the M5Stack development board is your best choice for IoT development. Traditional development boards can only be used for verification and learning, but the M5Stack board offers more possibilities. It features an industrial-grade case and exquisite design, providing stable performance. Besides verification and learning, it can also accelerate development and productization. It uses the ESP32 IoT chip, integrates a Wi-Fi module, has 4MB of SPI flash, and its dual-core low-power design performs exceptionally in various applications. The hardware expansion system, consisting of over 30 stackable M5Stack modules and over 40 expandable units, can quickly help you build and verify your IoT products.

Tutorial

Supported development platforms and programming languages: Arduino, UIFlow Blockly language, Micropython. No matter your development and programming skill level, M5Stack will assist you in gradually turning your ideas into reality.

If you have developed with ESP8266, you will find that ESP32 is a perfect upgrade. Compared to ESP8266, ESP32 has more GPIOs, more analog inputs, two analog outputs, and multiple peripheral interfaces (such as spare UART). The official development platform ESP-IDF has ported FreeRTOS, which, with dual-core and real-time operating system, allows you to organize your program code more efficiently and optimize program execution efficiency.

This tutorial will introduce you to controlling the Gray device through the UIFlow graphical programming platform
This tutorial will introduce you to controlling the Gray device through the UIFlow 2.0 graphical programming platform
This tutorial will introduce you to programming the Gray device using the Arduino IDE

Features

  • Based on ESP32 development
  • Large capacity flash
  • Integrated 3-axis gyroscope, 3-axis accelerometer, and 3-axis magnetometer
  • Built-in speaker, buttons, LCD screen, power/reset button
  • TF card slot (supports up to 16GB)
  • Built-in lithium battery
  • Back magnetic design
  • Expandable pins and interfaces
  • M-Bus bus socket & pins
  • Compatible with multi-platform development:

Includes

  • 1 x Gray
  • 10 x Dupont wires
  • 1 x USB Type-C cable (20cm)
  • 1 x User manual
  • 1 x Sticker

Applications

  • IoT controllers
  • STEM education
  • DIY projects
  • Smart home devices

Specifications

Main Control Resources Parameters
ESP32 240MHz dual-core, 600 DMIPS, 520KB SRAM, Wi-Fi,
Flash Memory 16MB
Input Voltage 5V @ 500mA
Interface TypeC x 1, GROVE(I2C+I/O+UART) x 1
IPS Screen 2 inch, 320x240 Colorful TFT LCD, ILI9342C, maximum brightness 853nit
Speaker 1W-0928
Core Base Interface PIN (G1, G2, G3, G16, G17, G18, G19, G21, G22, G23, G25, G26, G35, G36)
MEMS MPU6886+BMM150
Buttons Custom buttons x 3
Battery 110mAh @ 3.7V
Antenna 2.4G 3D antenna
Operating Temperature 0 ~ 60°C
Shell Material Plastic (PC)
Product Size 54.0 x 54.0 x 17.0mm
Product Weight 47.7g
Package Size 94.8 x 65.4 x 25.3mm
Gross Weight 92.0g

Learn

Power On/Off

Power On/Off Operation
Power On: Single click the red power button on the left
Power Off: Quickly double-click the red power button on the left
Note: By default, the device cannot be turned off when powered by USB

Schematics

Peripheral Pin Mapping

LCD Screen & TF Card

LCD Pixels: 320 x 240

TF Card supports up to 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

Buttons & Speaker

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

GROVE Interface A & IP5306

The power management chip (IP5306) is a custom I2C version with an I2C address of 0x75. Click here to view the IP5306 register manual.

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

IP5306 Charge/Discharge Voltage Parameters

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 Magnetometer BMM150

BMM150 I2C address is 0x10

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

Charging Current Measurements

Charging Current Current After Full Charge (Off) Full Charge (On)
1.069A - 0.073A

PORT

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

M-BUS

M_BUS

For more information on pin allocation and pin remapping, refer to the ESP32 datasheet

M-BUS BUS (Compared with M5Core2)

Datasheets

Softwares

Arduino

USB Driver

Click the link below to download the driver for your operating system. There are currently two driver chip versions, CP210X (for CP2104 version) / CP34X (for CH9102 version) driver packages. After extracting the package, select the installation package corresponding to your operating system's bit version for installation. (If you are unsure which USB chip your device uses, you can install both drivers. CH9102_VCP_SER_MacOS v1.7 may report an error during installation, but it has actually completed installation, so you can 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
MacOS Port Selection
In MacOS, two selectable ports may appear. When using, please select the port named wchmodem.

Easyloader

Easyloader Download Link Note
Gray Factory Firmware Easyloader download /

Video

  • Hardware operation tests such as speaker, wifi, buttons, accelerometer, TF-card (microSD), screen, etc.
  • Introduction to M5Stack

Version Change

Release Date Product Changes
2017.9 First release
2017.12 MPU6050+MAG3110 changed to MPU9250, IP5306 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: Devices with 2018.2A PCB version do not support C2C (TypeC to TypeC) connection and PD power supply.