Skip to content

Instantly share code, notes, and snippets.

@nebhead
Created May 30, 2021 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nebhead/0e855dd7d73f90cdc6f3e7cb76c959a8 to your computer and use it in GitHub Desktop.
Save nebhead/0e855dd7d73f90cdc6f3e7cb76c959a8 to your computer and use it in GitHub Desktop.
Getting-USB-Ports-Working-For-Arduino
It might happen that when you upload a sketch - after you have selected your board and the serial port -, you get an error Error opening serial port ... If you get this error, you need to set serial port permission.
Open Terminal and type:
`ls -l /dev/ttyACM*`
you will get something like:
`crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0`
The "0" at the end of ACM might be a different number, or multiple entries might be returned. The data we need is "dialout" (is the group owner of the file).
Now we just need to add our user to the group:
`sudo usermod -a -G dialout <username>`
where <username> is your Linux user name. You will need to log out and log in again for this change to take effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment