Installing Arduino on Debian/Ubuntu

29/12/2020
Chưa phân loại
Arduino is a hardware open source project based on microcontrollers we can program to automate tasks or interact with the environment among other possible functions. It’s language is C/C++, some examples of Arduino projects can include full automated greenhouses, security systems, drones, robots and a lot more.

if you are not very familiar with Arduino’s potential check this link with a database of Arduino open source projects from which you can take codes or ideas for projects. In this tutorial you’ll see how to setup Arduino on Debian or Ubuntu Linux based distributions. For this tutorial I’m using the Arduino ONE microcontroller but it is useful for other Arduino microcontrollers.

Installing Arduino on Debian/Ubuntu based Linux distributions

To begin plug  in the Arduino USB cable to your computer as shown in the image below

Then as root or with sudo run “apt install arduino
And when asked to install dependencies press Y. You can also run “apt install arduino -y

Run “dmesg | tail” to confirm the card was detected properly. Run” usermod -a -G dialout Username” (where “Username” replace it for your user)

Now run “arduino” and the interface will show up

Select your Arduino device by clicking on Tools>Boards>
In my case I select the Arduino One board, select yours.

Then select your connection port by clicking on Tools > Serial Port

In order to check if your Arduino works properly lets try a blinking script. Open File>Examples> Basics>Blink

Edit the call delay() and upload the changes to your board  by clicking on the verification icon and then the right arrow icon located on the right top of the program, and see how the previous blinking changes. You can select other examples too, check for arduino’s output at the bottom of the program. For more information on similar scripts check https://learn.adafruit.com/introducing-circuit-playground/set-up-test-arduino .

For tutorials on programming for Arduino check this link and this one , you’ll need the proper peripherals like leds, environmental detectors, etc. to carry out your instructions.

I hope this tutorial has helped you to get started with Arduino on Linux. Keep following LinuxHint for more tips and manuals.

Sandclock IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, Sandclock IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

List of essential Linux security commands

This tutorial shows some of the most basic Linux commands oriented to security. Using the command netstat to find open...
29/12/2020

About Libvirt

Libvirt is one of most popular virtualization management tool out there. It is composed of a management API and a daemon...
29/12/2020

Install nornir Python Library on Ubnutu

Nornir is a Python library for automating network connected devices. You can compare it to Ansible, which is mainly used...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Hướng dẫn chuyển đổi windows server windows evaluation to standard và active windows server 2008 + 2012 + 2016 + 2019
26/10/2021

How to Update Ubuntu Linux
24/10/2021

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu
20/10/2021

Hướng dẫn cài đặt Apache CloudStack 4.15.2.0
19/10/2021

Hướng dẫn ký file PDF bằng chữ ký số (chữ ký điện tử) và sửa lỗi mới nhất 2021 foxit reader
19/10/2021