Listen to arduino from linux

From cod3v
Revision as of 12:08, 25 March 2023 by Mol (talk | contribs) (→‎Theory)

Introduction

Theory

Arduino using USB cable is either

  • /dev/ttyUSBx
  • /dev/ttyACMx
> ls -l /dev/ttyACM*

crw-rw---- 1 root uucp 166, 0 Mar 25 20:16 /dev/ttyACM0

Set the permissions:

  • sudo usermod -a -G uucp


Screen command: Install screen and use it it:

screen /dev/ttyACM0 9600
  • Ctrl+a and k will kill a screen session