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.

ONET 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, ONET 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

Bash builtin examples

builtin candidate_builtin arg … in bash allows you to only call bash builtins. That is, even if an external command or...
29/12/2020

[CEPH] [LAB] [Phần2] Hướng dẫn sử dụng block storage của CEPH

Block stoarge sẽ dùng như thế nào nhỉ? Trong phần 1, Onet đã hướng dẫn bạn triển khai cluser ceph...
30/12/2020

How to Use fdisk in Linux

fdisk is a tool for partitioning hard drives (HDDs), solid state drives (SSDs), USB thumb drives etc. The best thing about...
29/12/2020
Bài Viết

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

 BitBrowser – Best Anti-Detect Browser!
26/05/2025

Dịch Vụ Xây Dựng Hệ Thống Peering Với Internet Exchange (IXP)
04/04/2025

Dịch Vụ Triển Khai VPN Site-to-Site & Remote Access
04/04/2025

Dịch Vụ Thiết Lập Hệ Thống Tường Lửa (Firewall)
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ảo Hóa & Cloud
04/04/2025