Connect to the Cardputer running MicroHydra using UART REPL via serial
- 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.
- 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