Skip to content

An introduction to getting started with the M5StickC-Plus development board

License

Notifications You must be signed in to change notification settings

Edinburgh-College-of-Art/m5stickc-plus-introduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with the M5StickC Plus

Contents

Introduction

What is the M5StickC Plus?

The M5StickC Plus is a compact, versatile development board created by M5Stack. Launched to enable rapid prototyping and development of electronics projects, it caters to both beginners and experts, making creating IoT projects more accessible and straightforward.

About the size of a thumb; the M5StickC Plus features an onboard ESP32-PICO-D4 microcontroller. For those of you unfamiliar with ESP32, this micrcontroller be likened to a more powerful version of the microcontrollers found on Arduino boards. This allows it to control various electronic components as well as having integrated Wi-Fi and Bluetooth capabilities for wireless communication. You can find more information on this chip by reading the ESP32-PICO-D4 Datasheet.

This board ships with several in-built sensors and components, ready for you to start programming straight out of the box. Additionally, M5Stack have released Arduino board managers and libraries that allow M5Stack boards to be programmed using the Arduino programming language.

Onboard Components

The M5StickC Plus board ships with several onboard components ready to start programming. M5Stack also provides an Arduino library for using these components. This makes it very easy to start creating projects with the M5StickC Plus.

Here are the main components you can find on an M5StickC Plus board:

As well as these components, the M5StickC Plus has three GPIO pins, power supply pins, and a Grove port for connecting even more devices.

To find out more about what the M5StickC Plus has to offer, as well as technical specifications, you can visit the M5Stack website.

Programming Options

Supported Programming Languages

The M5StickC Plus contains an ESP32 microcontroller chip that acts as the brains of the device. This chip can be programmed to control the on-board components as well as devices connected to the M5Stick via its header pins and Grove port.

We can use one of a couple of different available programming languages to write and upload code to our M5StickC Plus board, including:

For the purpose of these tutorials, we will be focusing on programming the M5StickC Plus using the C++ with Arduino framework, however, you can find out more about the other programming options by clicking the links above.

Choosing an IDE

To start programming the M5Stick with Arduino framework, you will first need to decide what Integrated Development Environment (IDE) to use. This will be where you write your code and upload it to the M5Stick.

For most beginner applications, the Arduino IDE will be a perfectly suitable choice. However, if you would like to take advantage of various extensions and a slightly more professional programming environment, you may want to opt for the PlatformIO extension for VS Code.

You will only need to choose one of these options to go start programming your M5StickC Plus board.

You can find tutorials here for installing setting up your IDE of choice:

Resources

M5Stack Examples

The M5StickCPlus library contains examples that we can use to immediately start programming the M5StickC-Plus. These examples include sketches for using some of the M5Stick's onboard components, as well as some games that you can try out.

In the Arduino IDE, these examples can be found by navigating to:

  • Windows: File -> Examples -> M5StickCPlus
  • Mac: Arduino -> Examples -> M5StickCPlus

In PlatformIO you will have to navigate into the library directory to find these examples. Make sure you have installed the M5StickCPlus.h library (see here) to your project and navigate to .pio -> libdeps -> m5stick-c -> M5StickCPlus -> examples.

Tutorial Videos

Internal UoE use only.

Useful Links

About

An introduction to getting started with the M5StickC-Plus development board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published