I have an arduino uno connected via USB to a raspberry pi, the raspi is accessible via ssh only.

Just started a bit with arduino-cli ; I upload a sketch which reads my analog pins. How can I access the serial monitor to get the data??


minicom and screen are useful if you want bidirectional communication between the Arduino and the host computer. If you only want to read what the Arduino sends, that can be done with cat:

stty -F /dev/ttyACM0 raw 115200
cat /dev/ttyACM0

I use minicom.

$ sudo apt-get install minicom
... blah blah blah ...
$ minicom -D /dev/ttyACM0 -b 115200

Minicom can take a bit of getting used to. Use CTRL-A to initiate a command sequence. CTRL-A X is exit. CTRL-A O is configuration ("Options") where you can configure flow control and such.

Many people also use screen to do the same job, but I like the interface that minicom gives - it's more terminal-like.

  • thx! Forgot about that, I knew it and also screen. Obviously did a bad job at web search on the topic :P – groovehunter Nov 3 '20 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.