Skip to content

This is an example PlatformIO project for M5Stamp C3

License

Notifications You must be signed in to change notification settings

nicolasdb/M5Stamp-C3U

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example project for M5Stamp C3U on PlatformIO

Project forked to explore how to use this board.

Work in progress:

  • Setup things with Arduino IDE 1.8.19, boards and lib.
    Here on Master branch.
  • Understand how to communicate with I2C,
    Check branch I2Cscan
  • Play with a Oled .096 display and the ENV unit DHT11,
    Check branch OledDHT11
  • Expand GPIO with MCP23017 and I2C.
    Check branch mcp23017
  • Then go back to setup the board in platform.io,
    Here on Master branch.
  • connect and log data with the "data logger shield for WIFI D1 MINI"
  • measuring of State of a battery (V) and power form solar pannel (A)
  • return the tilt values from ADXL345 on a graph with web server.

Notes:

Pay attention to the model you have.

  • C3 need a FTDI driver
  • C3U doesn't but need to be in program download mode.

For more stuff, check the issue #1

- To use with Arduino IDE

https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide

- To use with Platform.io

Clone this repo, everything is adjusted in platformio.ini
Just build and upload

- Test program

main.cpp : Internal led will change its color with each press on the button.

For ARDUINO IDE: You can copy/paste the code from main.cpp Don't forget to install libraries.

- To enter into "program download" mode operation:

  • Long press the center button (G9) of STAMP C3U under power failure condition.
  • Connect USB to the computer while holding the button,

after that, the port is successfully identified, program burning.

Windows 10, Arduino IDE image

Manjaro kernel 5.15 LTS, Arduino IDE image

About

This is an example PlatformIO project for M5Stamp C3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%