PlatformIO Community

Write to Serial Monitor

How to send some text to the Arduion via a Serial monitor?
The Arduino IDE has a “Serial monitor” with an input line, and in VS Code + platformio I can’t enter anything there. Ctrl + C/T/H key combinations do not work.

The serial monitor is just miniterm.py that is auto-started by PlatformIO. Read its documentation to get familiar with it: https://pyserial.readthedocs.io/en/latest/tools.html#miniterm

In the platformio.ini, you can configure several options for miniterm, as they are documented here: https://docs.platformio.org/en/latest/projectconf/section_env_monitor.html

In miniterm.py, the characters are sent as you type (by default; this is also changable, see post below). The line ending is controlled by the --eol option, which is by default "ENTER sends CRLF" (\r\n), as per docs above.

Ctrl + 5 to exit. Can also be controlled by the --exit-char=<num> parameter.

You are also always free to use a different serial monitor tool like hterm.

Have a read here: Is there anyway to send manually typing messages to arduino through serial port in platformio?

And also here, further up the thread: Is there anyway to send manually typing messages to arduino through serial port in platformio?

Those should help. As indeed the whole thread will.

Failing that, pop back again.

Cheers,
Norm.

Thanks for help <3
Solved.

1 Like