Raspberry Raspberry Pi Practice Note-Install the Arduino IDE

Source: Internet
Author: User

With a limited number of Raspberry Pi Gpio ports, you can easily extend more GPIO interfaces by connecting the Arduinuo.

In general, the Arduino IDE is developed using an ordinary PC or laptop.

This article describes how to install the Arduino IDE on raspberry, and all of the operations are done in the Raspberry Pi.

0. Practical environment Basic Configuration instructions

Raspberry:

Hardware: Raspberry Pi 3B

Software: Raspbain Jessie (2017-1-11 img, the official website download very slow, can go to the network disk: Http://pan.baidu.com/s/1i5HVDIX)

Arduino:

Hardware: Arduino UNO R3

Software: Arduino IDE 1.8.2 (currently the latest version)

1. Download

There are three methods, the last of which is the quickest.

A. Use the built-in browser to access the Arduino official website to download HTTPS://WWW.ARDUINO.CC/EN/MAIN/SOFTWARE?SETLANG=CN, select "Linux ARM" version.

B. Using the wget command: wget-s https://downloads.arduino.cc/arduino-1.8.2-linuxarm.tar.xz #这个下载速度很慢, estimated to be half an hour

C. Using the Axel command: Axel-n https://downloads.arduino.cc/arduino-1.8.2-linuxarm.tar.xz #这个速度就快至少5倍以上, 100 seconds to get it done!

There is no axel in the system, you need to download the installation by yourself.

2. Installation

Downloaded after the file is arduino-1.8.2-linuxarm.tar.xz, need to decompress, the specific steps are as follows:

Cd/home/pi/downloads # Go to the file download directory

xz-d arduino-1.8.2-linuxarm.tar.xz #解压得到文件: Arduino-1.8.2-linuxarm.tar, this command takes 30 seconds, you need to wait a moment

TAR-XVF Arduino-1.8.2-linuxarm.tar # Unzip to get folder arduino-1.8.2, file more, need to brush screen a minute

CD arduino-1.8.2

./arduino #运行Arduino IDE, the familiar IDE interface appears

3. Use

1. Plug the Arduino Development Board into the raspberry any USB port

Recommended for subsequent use the Arduino board is powered by an external 9-12v power adapter

2. Configure the communication port

Main Menu: Tools, Port: "/dev/ttyxxx", select "/dev/ttyacm0 (Arduino/genuino Uno)"

3. Verify the effect

3.1 Main Menu: Blink, 01.Basics, Examples, File--

3.2 Click on the toolbar Second person button (Upload)

Automatically after compiling and downloading to the board, see the interface below the "done uploading" can appear.

--The end of this article--

Raspberry Raspberry Pi Practice Note-Install the Arduino IDE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.