Elegoo Arduino Uno IDE Installation on Zorin OS 16 (Ubuntu 20.04 LTS Based)
Installation of the Arduino IDE on Zorin OS 16. An Ubuntu 20.04 LTS based Linux Distribution.
I purchased an Elegoo Uno Most Complete Electronics Kit. This Kit is based around the Arduino Uno. The electronics kit has fairly detailed information however I found the software installation section particularly lacking especially in regards to Linux. I had numerous issues trying to communicate between Linux and the Arduino. Written Guide here:
https://dellwindowsreinstallationguide.com/arduino-ide-linux-install/
Elegoo Documentation:
https://www.elegoo.com/pages/arduino-kits-support-files
To install the Arduino IDE download the latest tar.gz file from Arduino:
https://www.arduino.cc/en/software
Extract the file. Go to the extracted folder and you should see it contains an install.sh file. Right click empty space space in the folder and select open in terminal. Type in:
sudo ./install.sh
Because you are typing in sudo (super user do), you will need to authenticate the command by supplying your user password to the terminal.
Once the Arduino IDE is installed, you can attach the Arduino Uno to your PC and launch the Arduino IDE.
Select Tools and then Board and Arduino Uno.
Select Tools and then Port and then select your Port in my case /dev/ttyACM0 (Arduino Uno)
Run the Sketch by selecting the Run Button.
You will likely get:
An error occurred while uploading the sketch avrdude: ser_open: can't open device "/dev/ttyACM0": Permission Denied.
This is because we (as a user) do not have dialout permissions to access the serial port. To rectify this open a terminal and type in:
sudo usermod -a -G dialout Philip
Where -a (append) -G (Group) and Philip should be replace with your user name (shown at the start of the prompt in the console).
Then type in:
sudo chmod a+rw /dev/ttyACM0
Where a (all options), rw (adds read and write permissions) and /dev/ttyACM0 is the name of your device (this may vary if you have multiple Arduinos, replace with the desired device).
To apply the permissions we need to reboot so type in:
sudo reboot
Once rebooted, you can reopen the Arduino IDE and retry running the blank sketch it should upload without error.
Next go to File→Examples→01. Basics→Blink
This test sketch should open and you should see the test LED blink on and off for ever second after the sketch is loaded.
#Arduino #Linux #Ubuntu