Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
    • What Is
    • News
      • EE Design News
      • DIY Reviews
      • Guest Post
      • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

How To Install and Run Arduino In Linux (Part 4/15)

November 12, 2020 By Ashish Vara

How to Install and Run Arduino in Linux

This tutorial explains how to install and run Arduino in Linux distribution such as an Ubuntu. Arduino is already available in the software center of Ubuntu which is one of the repositories of Linux.

Ubuntu needs to meet the required dependencies of Arduino. so before installing Arduino make sure that the dependencies are met.

Required dependencies of Arduino in Linux

Two dependencies are required before install Arduino in Linux:

  1. Java run time environment
  2. GCC AVR Compiler

Java run time environment

Arduino software is made in java environment  and to run the java program, we need to download and install Java run time environment. There is no need of installing java run time if it is already installed in your system.. Since Arduino software already includes java you can install  it individually from Ubuntu software center using the following command line from command terminal:

sudo apt-get install openjdk-7-jre

GCC AVR Compiler

Complier is an extended tool which converts source file to object file (machine code) so that CPU can understand it. As Arduino belongs to AVR family,  we need the AVR compiler for compiling the Arduino source code. But you don’t need to install it as the software already includes GCC AVR Compiler in it.

We can install Arduino from Ubuntu software centre if not already installed in the system.

Enter the following command from terminal and press enter key:

Arduino

If arduino is installed, it will open but if not installed the following output will be displayed on your screen:

 

Fig. 1: Screenshot of Output on Linux Console if Arduino is not Installed on Ubuntu

Enter the following command from terminal and press enter key:

            sudo apt-get install arduino

Now Arduino is starting to get installed from ubuntu software center. Wait for the installation process to be over. Now open the Arduino from command terminal by entering the following command:

            arduino

Now, arduino is opened and displays the dialout box on screen.

Note: Here you must be added to the ‘dialout’ group to be able to upload sketches to the Arduino.

After adding in dialout box , logout from system and restart the system. It will look like the following:

.

Fig. 2: Screenshot of Arduino IDE on Ubuntu

Now plug the arduino board through USB cable and check if it is connected or notby entering the following command:

            lsusb

In my system, it is connected and displays the following:

Bus 002 Device 004: ID 2341:0001 Arduino SA Uno (CDC ACM)

Now, open Arduino and go to tab Tool > Serial port > and select the arduino port.

Select the specific board from tool > board. Select simple Blink example and compile it.

Now, you can work with arduino in Ubuntu Linux.

Fig. 3: Screenshot of Arduino IDE on Ubuntu

Related Articles Read More >

Screenshot of Raspbian OS on Raspberry Pi
RPi Python Programming 03: Raspberry Pi as Linux System
Raspberry Pi Models
RPI Python Programming 02: Raspberry Pi Models
Raspberry Pi 4
RPi Python Programming 01: Introduction to Raspberry Pi 4
RPi Python Programming 05: Introduction to Python

Featured Tutorials

  • Screenshot of Raspbian OS on Raspberry Pi RPi Python Programming 03: Raspberry Pi as Linux System
  • Raspberry Pi Models RPI Python Programming 02: Raspberry Pi Models
  • Raspberry Pi 4 RPi Python Programming 01: Introduction to Raspberry Pi 4
  • RPi Python Programming 05: Introduction to Python
  • RPi Python programming 04 RPi Python programming 04: Setting up Raspberry Pi Linux computer
  • Python Basics RPi Python Programming 06: Python basics

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

Recent Articles

  • New Vishay Semiconductors increase efficiency of high-frequency applications
  • TI launches industry’s top wireless battery-management solution
  • AVX releases new series of embedded, highly sensitive Wi-Fi antennas
  • Nuvoton offers a secure storage MCU for multi-segments
  • Refrigerator Compressor Design Achieves High Energy Efficiency Ratings Using a Digital Signal Controller (DSC)
...

RSS EDABOARD.com Discussions

  • Rippe current rating of aluminium electrolytic capacitor is very low.
  • Why do some op amps have a higher GBW than what the unity gain-bandwidth is?
  • Stacked Diodes ?
  • dsPIC33f ADC reading voltage help
  • What the best way to store data of size ( 90,000 * 32) bit (taken from a text file) using VHDL?

RSS Electro-Tech-Online.com Discussions

  • Engine Temperature using an AD590 on the Oil Pressure Wire to the engine
  • Automotive 6 Volt Generator Transistor Voltage Regulator
  • Jon's Imaginarium - Microchip FilterLab Program and Graph Paper Printer Program by Dr. Philippe Marquis
  • Touch circuit sound, led. 555 timer
  • Dust extractor remote switch
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
    • What Is
    • News
      • EE Design News
      • DIY Reviews
      • Guest Post
      • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering