Skip to content

Using MicroPython

MicroPython is a streamlined version of Python designed for microcontrollers. It is ideal for rapidly developing embedded projects, letting you write and debug firmware with familiar Python syntax.

Key features

  • Python syntax that is easy to learn and use
  • Interactive REPL (read-eval-print loop)
  • Rich standard library and hardware driver support
  • Fast prototyping without compilation

Use cases

  1. Rapid prototyping: validate ideas quickly without complex build steps
  2. Teaching and learning: friendly Python syntax for beginners
  3. IoT projects: Wi-Fi, Bluetooth, and other wireless connectivity

Montic product support

W02W04
ChipExpressif ESP32-C6WCH CH32V208
Status✔ Support❌ Not Support

Install MicroPython on Montic W02

Montic W02 uses the ESP32-C6 microcontroller, which has official MicroPython support.

Download MicroPython firmware for ESP32-C6

Prerequisites

  1. Install Python

    Download and install Python 3 from the official website.

  2. Install esptool

    Open Windows CMD.exe or PowerShell.exe and install esptool with pip:

    Terminal window
    pip install esptool
  3. Download the MicroPython firmware

    Get the latest .bin firmware from the MicroPython download page.

    We recommend downloading the latest stable release, for example: ESP32_GENERIC_C6-20251209-v1.27.0.bin.

Flash the MicroPython firmware

  1. Connect Montic W02 to your computer

    Use a USB-C data cable to connect the board. In Device Manager, locate the COM port (for example COM4).

  2. Erase flash (first installation)

    If this is your first time installing MicroPython, erase the entire flash first:

    Terminal window
    esptool --port COM4 erase_flash
  3. Flash the firmware

    Run the following command to flash MicroPython:

    Terminal window
    esptool --port COM4 --baud 460800 write_flash 0 ESP32_GENERIC_C6-20251209-v1.27.0.bin

Connect to the MicroPython REPL

After flashing, connect to the interactive MicroPython REPL over serial.

We recommend PuTTY or Thonny IDE:

Using PuTTY:

  • Connection type: Serial
  • Serial line: COM4 (your COM port)
  • Speed: 115200

Using Thonny IDE: Thonny is designed for MicroPython and supports editing, uploading, and REPL interaction.

Hello World example

After connecting, you will see the MicroPython >>> prompt. Try running:

# Print Hello World
print("Hello, Montic W02!")

FAQs

Q: What if flashing fails?

A: Try the following:

  • Remove the --baud 460800 flag to use the default speed
  • Make sure you are using a USB data cable, not a charge-only cable
  • Hold the BOOT button while flashing

Q: The serial port is missing. What should I check?

A: Depending on your OS:

  • Windows: look up the COM port in Device Manager
  • Linux: ensure your user is in the dialout group
  • macOS: check for /dev/cu.usb* devices

Q: REPL is unresponsive.

A: Press the RST button to reboot, or confirm the baud rate is 115200.

More resources