Can't connect to an Arduino board

dindibo4

New Member
Joined
Oct 4, 2018
Messages
13
Reaction score
1
Credits
0
Hello I have Ubuntu linux and I installed the Arduino IDE on the machine and tried to connect to my board but it couldn't connect. The output at the Arduino IDE was:
Code:
avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied

I also tried adding my user to the dialout group of the serial port like this:
Code:
sudo usermod -a -G dialout [my username]
after running this command nothing changed and I wasn't able to connect.
by the way, that's the permissions of the "ttyUSB0" file after running the command:
Code:
crw-rw-rw- 1 root dialout 188, 0 Jan  4 16:46 ttyUSB0
Please help me to solve this, thanks in advance.
 


bigendian

New Member
Joined
Jan 14, 2019
Messages
2
Reaction score
1
Credits
0
ls -l /dev/ttyUSB0

check that the device is set to dialout gruop

adduser <the user you want to add> dialout

after adding your user to dialout, re-login (just reboot)
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top