Creating an Arduino development environment under CentOS 6.X

Source: Internet
Author: User

First, install the Arduino IDE

1, download Linux under the Arduino IDE installation package, from the URL: Http://arduino.cc/en/Main/Software download, if this URL is not open, can be downloaded from the network disk: http://pan.baidu.com/s/ 1MGZAFIW, be careful to select the installation package for 32-bit or 64-bit suitable system. Here take arduino-1.0.6-linux32.tgz as an example.

2, unzip the installation package, TAR-XVF Arduino-1.0.6-linux32.tgz, will decompress the arduino-1.0.6 file + moved to the OPT directory. mv./arduino-1.0.6/opt/

3, run Sudo/opt/arduino-1.0.6/arduino, the IDE window appears to indicate the successful installation.

Second, use

In use, the main problem is serial Port is not selectable, which is primarily a permissions issue.

1, CentOS 6.x does not need to install drivers for Arduino, here with Lsusb to see.

Bus001Device001: ID 1d6b:0002Linux Foundation2.0Root Hubbus002Device001: ID 1d6b:0001Linux Foundation1.1Root Hubbus003Device001: ID 1d6b:0001Linux Foundation1.1Root Hubbus004Device001: ID 1d6b:0001Linux Foundation1.1Root Hubbus005Device001: ID 1d6b:0001Linux Foundation1.1Root Hubbus004Device002: ID 046d:c018 Logitech, Inc. Optical Wheel Mousebus003Device002: ID2341:0043Arduino SA Uno R3 (CDC ACM)

From the results you can see that the Arduino has been identified.

2. Modify the Arduino IDE port

DMESG | grep "TTY"

You can see the following results:

console [TTY0] enabled
CDC_ACM 3-1:1.0:TTYACM0:USB ACM Device


So modify ~/.arduino/preferences.txt this file

VI ~/.arduino/preferences.txt

Change serial port=com1 to serial port=ttyacm0.

3. Start the Arduino IDE as an administrator

Note This must be started as an administrator.

Sudo/opt/arduino-1.0.6/arduino

Here in the IDE that launches, Serial Port can be selected.

Creating an Arduino development environment under CentOS 6.X

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.