Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,32 @@ Uploading a sketch is quick and easy, but let's take a look at what we need to d

Congratulations, you have now uploaded a sketch to your Arduino board!

### Please Read (Only Linux Users)

It might happen that when you upload a sketch - after you have selected your board and the serial port -, you get an error such as **"... Permission denied"**. If you get this error, you need to set serial port permission.

To do this, open your 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.**

![Adding user to the group.](assets/Ubuntu_Serial.jpeg)

After this procedure, you should be able to proceed normally and upload the sketch to your board or use the Serial Monitor.