Skip to content

Install M5Stack on Windows

Marwe edited this page Mar 12, 2021 · 7 revisions

Installation of the M5 Sensor Tools -- Windows

A working internet connection is mandatory Its recommanded to download and unzip the git repository

Download software and install drivers

  • For Windows: download our bundle m5-software-w10.zip and unzip
  • Run once: driver\1_ftdi\1_CDM1228_Setup.exe
  • optionally (only, if needed later) see: driver\2_dotnet driver\3_optional_CP210x
  • Create shortcuts somewhere (Desktop?) to start these programs:
    • uiflow\UIFlow-Desktop-IDE.exe
    • m5burner\M5burner.exe

M5Burner

To flash the M5 Sensor with the required software, you need the M5Burner

  • Start M5Burner.exe
  • select ATOM in the left menu bar
  • download within UIFLOW(Matrix)
  • COM port and baud rate (115200 or 750000) settings at the top menu bar
  • Press BURN and to write the firmware image
    • Type in the credentials of your local WiFi connection
  • Burn Successfully means: the flash process is completed
  • COM Monitor, open on top right
    • reset ATOM
    • watch boot messages
    • copy and take a note of the printed YOURAPIKEY
[...]
       _  __ _               
 _   _(_)/ _| | _____      __
| | | | | |_| |/ _ \ \ /\ / /
| |_| | |  _| | (_) \ V  V / 
 \__,_|_|_| |_|\___/ \_/\_/  

APIKEY: YOURAPIKEY
MicroPython d8113bc60-dirty on 2021-01-22; M5Stack with ESP32
Type "help()" for more information.
>>> 
  • Press the close button and exit the program

UIFlow-Desktop-IDE

  • Start the UIFlow-Desktop-IDE.exe
  • Select the COM port, the device (the one with the dots in a quadriangle), your favourite language and design and press OK-Button
  • The program starts and you should see the message connected in the top right corner
  • Import an example (*.m5f File)
    • At the bottom of the UIFLow-Desktop-IDE you see a small menu reading the COM port
    • Click on the small folder symbol to import a *.m5f File
    • The explorer will open, you can choose the one from the critical-workshops git repo
      • In the explorer window, navigate to critical-workshops-main\tvoc\ and select example1.m5f and click OK-Button
      • If a java-script error window appears, ignore it by clicking the OK-Button
    • To write the code to the M5Stack, click on the small button, right to the import button in the bottom menu.
    • The program will inform you in the top right corner if everything was transferred correctly.
    • Your M5Stack will show a line in alternating colors of magenta and green.

Soft-Reset the device

  • Click and hold the black screen button (entire screen), then press the small grey button at the side
  • Release the small grey button
  • When the screen LED is blue, release the screen button (you are in the USB mode)
  • You can now upload .m5f Files from the UIFlow-Desktop-IDE again