Connecting Arduino IDE to Uno on Raspberry PI3B+
Today I learned…
Today I got my Arduino Uno working, programmable via Arduino IDE from a Raspbian installation on a Raspberry Pi3B+. I connected the Uno via USB and at first had some problems getting the board detected. Here’s how I resolved the issue.
After writing a simple blink application, I tried uploading it to the connected Uno, only to get this error in the Serial Monitor window:
Serial Port 'COM1' not found"
Tools -> Serial Port option in the menu was grayed out. After scouring
the internet I figured it’s likely a permissions issue. Here are the group
changes I enacted to make things work:
sudo gpasswd -a pi uucp
sudo gpasswd -a pi tty
sudo gpasswd -a pi dialout
After the changes, group membership is:
pi adm tty uucp dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi
This is on Raspbian:
pi$ echo $(uname -a); cat /etc/issue
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
Raspbian GNU/Linux 10 \n \l
Now, the Uno is detected successfully as
/dev/ttyACM0, and can be programmed
with the Arduino IDE.