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