Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • 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
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

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

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


Filed Under: Featured Contributions, Tutorials

 

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Designing Gate Driver Circuit and Switching Mechanism for Modified Sine Wave Inverter – (Part 9/17)
  • Completing Modified Sine Wave Inverter Design with Full Bridge Circuit and Step Up Transformer – (Part 10/17)
  • Designing an Offline UPS – Part (12 /17)
  • How to reduce Switching Time of a Relay – (Part 15/17)
  • Testing MOSFET – (Part 16/17)
  • Driving High Side MOSFET using Bootstrap Circuitry – (Part 17/17)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • Infineon offers DC-DC controller for full LED headlamps without a microcontroller
  • Vishay launches new high-precision, thin-film wraparound chip resistor
  • STMicroelectronics’ common-mode filters ensure signal integrity in serial interfaces
  • Renesas’ RA Family microcontrollers earn CAVP certification for cryptographic algorithms
  • MicroPython: Serial data communication in ESP8266 and ESP32 using UART

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd ldr led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics Research robot samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • RF switch selection
  • ddr3 sodimm daughter board for haps-80 system
  • 3D FDTD - how do I compute number of variables and required number of iterations?
  • IRF450 MoSFET
  • Please help to identify the signal input port on board

RSS Electro-Tech-Online.com Discussions

  • Opamp ciruit
  • DIY Mini 12v Router UPS malfunction
  • How can a 13 bit number represent 16 bit number?Or why is fragmentation offset multiple of 8?
  • Best home PCB printer and software for prototyping?
  • Passthrough charging-simple but impossible to achieve?
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 © 2022 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
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • 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
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering