- 👝 Как установить программное обеспечение Arduino (IDE) на Linux
- Установка Arduino IDE в системах Linux
- Скачайте программное обеспечение Arduino (IDE)
- Запустите скрипт установки Arduino IDE
- How to Install Arduino IDE on Linux Mint 20
- Installing Arduino IDE
- Method 1: Downloading Arduino Software
- Method 2: Using Software Manager
- Accessing the application
- Uninstalling Arduino IDE
- Conclusion
- Karim Buzdar
- Arduino IDE Digispark Setup in Linux Mint
- Arduino IDE Digispark Linux Mint Setup Tutorial Steps
- 1. Install the Arduino IDE
- 2. Install the Digispark Board Support Package
- Open Preferences Dialog box
- Open Boards Manager Dialog Box
- 3. Add Linux User Name to the Dialout Group
- 4. Add udev Rules to the System
- 5. Testing the Digispark Linux Mint Installation
- Digispark Blink Sketch
- Select the Digispark Board in the Arduino IDE
- Load the Blink Sketch to the Digispark Board
👝 Как установить программное обеспечение Arduino (IDE) на Linux
Arduino – это широко используемая электронная платформа с открытым исходным кодом, используемая для создания устройств, которые взаимодействуют с окружающей средой с помощью датчиков и исполнительных механизмов.
Она состоит из программируемой аппаратной платы и программного обеспечения (интегрированная среда разработки (IDE)) для написания и загрузки программ на плату.
Прежде чем вы сможете начать создавать проекты с использованием Arduino, вам нужно настроить IDE для программирования своих плат.
Arduino (IDE) – это бесплатное кроссплатформенное настольное приложение с открытым исходным кодом, которое позволяет писать код и загружать его на плату.
Оно работает на Linux, Windows, Mac OS X и Linux.
В этой статье мы расскажем, как установить последнюю версию программного обеспечения Arduino (IDE) на компьютеры с Linux.
Установка Arduino IDE в системах Linux
Программное обеспечение Arduino (IDE) – это пакет, который не требует какого-либо конкретного процесса для различных дистрибутивов Linux.
Единственное необходимое требование – это 32-битная или 64-битная версия операционной системы.
Скачайте программное обеспечение Arduino (IDE)
Перейдите на страницу загрузки и загрузите последнюю версию (1.8.12 на момент написания) программного обеспечения Arduino (IDE) для поддерживаемой архитектуры системы.
Вы можете выбрать между 32-битной, 64-битной и ARM-версиями, поскольку очень важно выбрать правильную версию для вашего дистрибутива Linux.
Кроме того, вы можете использовать следующую команду wget для загрузки пакета программного обеспечения Arduino (IDE) непосредственно на терминал.
Затем распакуйте загруженный архив с помощью команды tar.
Запустите скрипт установки Arduino IDE
Теперь перейдите в извлеченный каталог arduino-1.8.12 и запустите скрипт установки с привилегиями root, как показано далее:
После завершения установки на рабочем столе будет создан значок.
Чтобы запустить среду IDE, дважды щелкните ее.
Источник
How to Install Arduino IDE on Linux Mint 20
The Arduino IDE software is an integrated development environment for Arduino that includes a text editor for writing code and a compiler for compiling the code for uploading to your Arduino. The Arduino IDE is supported on many operating systems, and the Linux system is no exception. Many Linux users worldwide can use this tutorial to use the Arduino IDE environment for their embedded experiments. It is available for 32-bit and 64-bit operating systems. In this tutorial, we will use Linux Mint 20 to install Arduino. Even if you do not have this latest version of Linux Mint, you can still apply these steps to your systems.
Installing Arduino IDE
We will be discussing two methods to install Arduino IDE in Linux Mint 20.
Method 1: Downloading Arduino Software
At first, download the Arduino IDE package for Arduino from their website. Click on this link for downloading the software from their official page. Once, users have selected the correct Arduino, then they can further proceed with downloading the software.
When you select the version to be downloaded, the system will prompt. Select the Save File option to save the setup into the system.
Once downloaded, you need to install the Arduino IDE in the system. For that, go to your Downloads directory. There will be a zipped file, you need to uncompress this downloaded Arduino file. First, we will launch the Terminal by using the Ctrl+Alt+T shortcut from the keyboard, then access the downloads directory using:
Once done, try to uncompress the file using the following command:
Now, you need to access the uncompressed file using the cd command:
Once you are in the correct directory, list all of the files inside the Arduino folder, use the following command:
You need to find out the install.sh installation file. This is the file that is to be installed. The next step is to install Arduino. Use the following command to do so:
Provide the password in the allocated space. The installation will begin. Wait for the completion of the process.
The installation process will be completed.
Method 2: Using Software Manager
Access the Software Manager from the Applications of Linux Mint 20 system, and then search for Arduino IDE in the search bar.
Click on the Install button against the Arduino IDE name in the Software Manager.
As soon users click on the Install button, the system will ask for the password of the user. Authenticate it to move forward.
The system might prompt and ask for relevant packages. Select the Continue button to proceed. The installation process will begin similar to the one displayed:
Accessing the application
To access the application, simply go to the main menu and then search Arduino IDE. The applications will appear in the suggestions listed below.
Double click on it to access the editor.
Users can edit the codes and connect to the hardware directly using this IDE editor.
Uninstalling Arduino IDE
To uninstall Arduino IDE, directly go to the Applications of the system and click on the application. Go to the dropdown menu, it has an Uninstall option. Click on it.
Provide the password before proceeding with the uninstallation process.
Conclusion
Arduino is one most useful kits used by embedded engineers across the world. The ease of access and communication to the hardware directly by means of the software setup for Arduino IDE. It is supported on many operating systems including Linux. Therefore, in this tutorial, we saw the methods for its installation in Linux Mint 20 system.
Karim Buzdar
About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn
Источник
Arduino IDE Digispark Setup in Linux Mint
Created on: 19 July 2020
Part 3 of the Digispark Arduino Tutorial Series
This part of the Digispark Arduino tutorial series shows how to set up the Arduino IDE to program Digispark ATtiny85 boards in Linux Mint, and should work with other Linux distributions such as Ubuntu. After setting up the software, the board is tested by loading a Blink sketch to it that blinks or flashes the on-board LED.
The basic steps that must be followed to program a Digispark board using the Arduino IDE in Linux Mint are 1) download and install the Arduino IDE, 2) install board support in the Arduino IDE, 3) add your Linux user name to the dialout group, 4) add udev rules to the system and 5) test the installation by loading a sketch to the Digispark board.
Digispark and compatible boards, as shown in the image below, can be programmed from the Arduino IDE in Linux Mint and other Linux distributions such as Ubuntu after following this tutorial.
Instructions in this tutorial and in the video that follows are based on the Digispark programming instructions on the Digistump Wiki and the Linux Troubleshooting page on the Digistump Wiki that includes Ubuntu and Arch troubleshooting steps. Either watch the video below, or follow the instructions below the video.
—>
Arduino IDE Digispark Linux Mint Setup Tutorial Steps
The following steps show how to set up a Digispark board for programming with the Arduino IDE in Linux Mint.
1. Install the Arduino IDE
Download the Linux 64 bits file for 64-bit Linux Intel systems or the Linux 32 bits file for Linux 32-bit Intel systems. There are also equivalent files for 32-bit and 64-bit ARM systems. Unzip the downloaded file, and extract the folder found in the zipped file to a convenient location, such as the Desktop. To run the Arduino IDE application, open the extracted folder and double-click the Arduino executable file.
The image below shows the contents of the folder extracted from the downloaded zipped file, with the Arduino application selected. Simply double-click this file to start the Arduino IDE application.
After double-clicking the Arduino executable file, a dialog box pops up, as shown below. Click the Run button in the dialog box to start the Arduino IDE application.
2. Install the Digispark Board Support Package
Start the Arduino IDE application that you downloaded in the previous step.
Open Preferences Dialog box
From the top menu of the Arduino IDE application, select File → Preferences to open the Preferences dialog box.
Paste the following in the Additional Boards Manager URLs: box of the Preferences dialog box.
The image below shows the Additional Boards Manager URLs field of the Preferences dialog box.
Click the OK button to close the dialog box.
Open Boards Manager Dialog Box
In the Arduino IDE, use the top menu to navigate to Tools → Board → Boards Manager. to open the Boards Manager dialog box.
Type Digispark into the search field at the top of the Boards Manager dialog box that contains the text «Filter your search. » to easily find the Digispark package.
After filtering the packages, Digistump AVR Boards is displayed in the Boards Manager dialog box. Click the Install button at the bottom right of the Digistump item in the dialog box, as shown in the image below.
After clicking the Install button, the package will start installing. This may take a while, depending on the internet speed.
When installation completes, click the Close button at the bottom right of the dialog box.
Books that may interest you:
3. Add Linux User Name to the Dialout Group
In order to be able to program any board from the Arduino IDE, the Linux user must be added to the dialout group.
Open a terminal window in Linux and enter the following command:
Enter your Linux password when prompted.
You will need to log out and then log back in, or reboot, for the changes to take effect.
4. Add udev Rules to the System
To be able to program the Digispark board from the Arduino IDE in Linux, udev rules must be added to the system. This is done by creating a file in /etc/udev/rules.d/ that contains the rules.
Create a text file called 49-micronucleus.rules in /etc/udev/rules.d/ and add the following rules to it.
In order to be able to create this file in the file system, you will need root permission. This can be done by opening a terminal window and entering:
The above line opens a new file called 49-micronucleus.rules with root permission from /etc/udev/rules.d/ in the nano command line text editor.
After running the above line to start the nano editor, copy all of the udev rules code from the listing above and paste them into the nano editor using the keyboard combination Ctrl + Shift + V.
In the nano editor, press Ctrl + O and then press the Enter key save the file and then Ctrl + X to exit the application.
Finally enter the following in the terminal window to reload the udev rules.
5. Testing the Digispark Linux Mint Installation
Uploading a sketch to a Digispark board works differently from other Arduino boards. The board must not be plugged into a USB port, but must first be selected in the Arduino IDE. No port is selected. The sketch is uploaded, and when a prompt appears in the Arduino IDE, the board is plugged into a USB port. The following tutorial steps show how to load a sketch to a Digispark board.
Digispark Blink Sketch
The following sketch works on both Model A and Model B Digispark boards. The difference is that Model A boards have the on-board LED connected to pin 1, while the Model B boards have the on-board LED connected to pin 0.
Copy the following sketch and paste it into the Arduino IDE window. Save it as digispark_blink or a name of your choice.
Select the Digispark Board in the Arduino IDE
From the top menu in the Arduino IDE, select Tools → Board → Digistump AVR Boards → Digispark (Default — 16.5MHz) to select the Digispark board.
Load the Blink Sketch to the Digispark Board
Click the Arduino Upload button on the top toolbar before plugging the Digispark board into a USB port.
Wait for the prompt at the bottom of the Arduino IDE window, as shown in the following image.
When the prompt Plug in device now. (will timeout in 60 seconds) appears, plug the Digispark board into a USB port of the computer.
After the sketch finishes uploading, a success message running: 100% complete and >> Micronucleus done. Thank you! appears at the bottom of the Arduino IDE window, as can be seen in the following image.
Источник