Skip to content

Instantly share code, notes, and snippets.

@chrisdiana
Last active September 18, 2025 16:31
Show Gist options
  • Select an option

  • Save chrisdiana/a089ba5f0b8ed96ddb80518b371e45f3 to your computer and use it in GitHub Desktop.

Select an option

Save chrisdiana/a089ba5f0b8ed96ddb80518b371e45f3 to your computer and use it in GitHub Desktop.
Connect to MicroHydra (MicroPython) on M5Stack Cardputer

Connect to MicroHydra (MicroPython) on M5Stack Cardputer

Connect to the Cardputer running MicroHydra using UART REPL via serial

  1. Plug in and find the serial port
ls /dev/cu.*

Typical outputs:

/dev/cu.usbserial-1410
/dev/cu.usbmodem2101

That’s the device you’ll connect to.

  1. Connect with a serial terminal

You can use several tools:

Option A: screen

screen /dev/cu.usbserial-1410 115200

Exit with: Ctrl+A then K then y.

Option B: mpremote (recommended)

Install:

pip install mpremote
brew install mpremote

Connect:

mpremote connect /dev/cu.usbserial-1410

or just:

mpremote

(it will auto-detect if only one device is connected).

# List files on the device
mpremote ls

# Copy file from Mac to ESP32
mpremote cp myscript.py :

# Copy file from ESP32 to Mac
mpremote cp :main.py .

# Run a script directly on device
mpremote run myscript.py

Option C: minicom / picocom

brew install minicom
minicom -D /dev/cu.usbserial-1410 -b 115200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment