Lesson 1. Let's start! Hello world

  • Step 1. Please, visit the official website M5Stack (Fig. 1)

    alt text
    Figure 1. Official webs

    Step 2. Select the DOWNLOAD section (Fig. 1.1);
    alt text
    Figure 1.1. DOWNLOAD section from our website

    Step 3. Download the archive with SP32-Arduino-IDE 1.8.5 and extract it into a new folder (Fig. 2);

    alt text
    Figure 2. The archive with the Arduino IDE is extracted to the folder

    Step 4. Download the CP210X drivers for your operating system and extract it to a new folder (Fig. 3);

    alt text
    Figure 3. Archive of drivers extracted to a folder

    Step 5. M5Stack connect to Your computer using the USB cable C (Fig. 3.1, 3.2);

    alt text
    Figure 3.1. The connection to M5Stack

    alt text
    Figure 3.2. Connecting to a computer

    Step 6. Select the appropriate version of the drivers. If you use:

    • Windows 7, CP210xVCPInstaller_Win7_v5.40.24.exe;
    • Windows 8, x86 10, CP210xVCPInstaller_x86_v6.7.0.0.exe;
    • Windows 8, x64 10, CP210xVCPInstaller_x64_v6.7.0.0.exe.
      Note: use the most new version of the operating system and related drivers.

    Step 7. Complete all necessary steps in the installation wizard and restart the computer;
    Step 8. Go to the folder Arduino-ESP32-IDE (Fig. 2) and open the app arduino.exe (Fig. 4);

    alt text
    Figure 4. The Arduino IDE

    Step 9. In the Sketch menu, select Include Library, M5Stack (Fig. 4.1);

    alt text
    Figure 4.1. Connection library M5Stack

    Step 10. On the File menu, select Examples, M5Stack, Basics, Hello (Fig. 4.2);

    alt text
    Figure 4.2. Using the demo sketch

    Step 11. In the Tools menu, click Board index, M5Stack-Core-ESP32 (Fig. 4.3);

    alt text
    Figure 4.3. The Board selection

    Step 12. In the Tools menu, select Port that corresponds to the COM port (Fig. 4.4), where the device Silicon Labs CP210x USB to UART Bridge (you can learn with the help of the device Manager in Windows under Ports (COM & LPT)) (Fig. 4.5);

    alt text
    Figure 4.4. The choice of COM port

    alt text
    Figure 4.5. Find device using device Manager

    Step 13. Click the Upload button (Fig. 5);

    alt text
    Figure 5. Upload the firmware to the device

    Step 14. After the end of the flashing process you will receive the following text in a report field (Fig. 6);

    alt text
    Figure 6. Report about the successful completion of the firmware

    Step 15. Pay attention to the screen of the device (Fig 7).

    alt text
    Figure 7. Hello World on the screen of the device

    Step 16. Prepare software is completed.