Difference between revisions of "Install Arduino Software"

From Wiki
Jump to: navigation, search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
=='''Preparations'''==
+
=='''Preparations'''==  
 
   
 
   
 
[[File:ide1.jpg]]
 
[[File:ide1.jpg]]
Line 11: Line 11:
 
Go to the Download page on the adruino.cc:   
 
Go to the Download page on the adruino.cc:   
  
<font color="blue">https://www.arduino.cc/en/Main/Software <br>
+
<font color="blue">https://www.arduino.cc/en/Main/Software </font>
  
 
[[File:ide2.jpg]]
 
[[File:ide2.jpg]]
Line 17: Line 17:
 
Now find the steps suitable for your operating system to install the IDE:
 
Now find the steps suitable for your operating system to install the IDE:
  
'''Windows'''
+
'''[http://wiki.sunfounder.cc/index.php?title=Install_Arduino_Software#For_Windows_users Windows]'''
'''Linux'''
+
 
'''Mac OS X'''
+
'''[http://wiki.sunfounder.cc/index.php?title=Install_Arduino_Software#For_Linux_Users Linux]'''
===For Windows users===  
+
 
 +
'''[http://wiki.sunfounder.cc/index.php?title=Install_Arduino_Software#For_Mac_OS_X_Users Mac OS X]'''
 +
 
 +
==='''For Windows users'''===
 
There are two choices for Windows version of L: Installer or ZIP file. You're recommended to use the Installer since it will automatically install the driver for Arduino IDE installation. So you can just download it and run the executable file to begin installation. If you download the zip file, you need to unzip the file and install the driver by yourself.  
 
There are two choices for Windows version of L: Installer or ZIP file. You're recommended to use the Installer since it will automatically install the driver for Arduino IDE installation. So you can just download it and run the executable file to begin installation. If you download the zip file, you need to unzip the file and install the driver by yourself.  
  
===For Installer===
+
====For Installer====
'''Step 1:''' Find the .exe file just downloaded  
+
'''Step 1:''' Find the '''.exe''' file just downloaded  
  
 
[[File:ide3.jpg]]
 
[[File:ide3.jpg]]
Line 42: Line 45:
 
'''Step 5:''' After the installation is done, click '''Close'''.
 
'''Step 5:''' After the installation is done, click '''Close'''.
  
Please note that the new IDE may prompt errors when you're compiling code under Windows XP. So if your computer is running on XP, you're suggested to install Arduino 1.0.5 or 1.0.6. Also you can upgrade your computer.  
+
Please note that the new IDE may prompt errors when you're compiling code under Windows XP. So if your computer is running on XP, you're suggested to install Arduino 1.0.5 or 1.0.6. Also you can upgrade your computer.
  
===Plug in the board===
+
====Plug in the board====
 
Connect the MCU to your computer via a USB cable (type-A to B). The cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON, will brighten. The yellow LED, labeled with L, will flicker first and then keep steady on.  
 
Connect the MCU to your computer via a USB cable (type-A to B). The cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON, will brighten. The yellow LED, labeled with L, will flicker first and then keep steady on.  
  
===Install the driver===
+
====Install the driver====
 
If you downloaded the installer, upon your connecting the board to the computer, the system will help you install the driver automatically. After a while, a prompt may appear in the taskbar indicating the driver is installed successfully. It depends on computers. So if you don't see it in yours, it's still OK.  
 
If you downloaded the installer, upon your connecting the board to the computer, the system will help you install the driver automatically. After a while, a prompt may appear in the taskbar indicating the driver is installed successfully. It depends on computers. So if you don't see it in yours, it's still OK.  
  
Line 64: Line 67:
 
D: A window pops up then. Click '''Browse'''. Then go to the folder where you just extracted the file. Go to the drivers folder and click '''OK''' -> '''Next'''. It may need a sec. Then the system prompts you the driver has been installed successfully. And the driver is for Uno. So the computer can recognize the board now. Click '''Close'''.
 
D: A window pops up then. Click '''Browse'''. Then go to the folder where you just extracted the file. Go to the drivers folder and click '''OK''' -> '''Next'''. It may need a sec. Then the system prompts you the driver has been installed successfully. And the driver is for Uno. So the computer can recognize the board now. Click '''Close'''.
 
   
 
   
===Open the Arduino Software (IDE)===
+
====Open the Arduino Software (IDE)====
 
Double-click the Arduino icon (arduino.exe) created by the installation process
 
Double-click the Arduino icon (arduino.exe) created by the installation process
  
Line 104: Line 107:
 
[[File:ide13.jpg]]
 
[[File:ide13.jpg]]
  
If "<font color="red">Done uploading<br>" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.
+
If "<font color="red">Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.</font>
  
For more details about Arduino IDE, go to '''Learning'''->'''Getting started'''->'''Foundation''' on the arduino.cc and click '''Arduino Software (IDE)''' on the page  
+
For more details about Arduino IDE, go to '''Learning'''->'''Getting started'''->'''Foundation''' on the arduino.cc and click '''Arduino Software (IDE)''' on the page.
<font color="blue">http://www.arduino.cc/en/Guide/Environment<br>
+
<font color="blue">http://www.arduino.cc/en/Guide/Environment</font>
  
 
If your sketch fails upload, on the same page click '''Troubleshooting'''
 
If your sketch fails upload, on the same page click '''Troubleshooting'''
  
<font color="blue">http://www.arduino.cc/en/Guide/Troubleshooting.  
+
<font color="blue">http://www.arduino.cc/en/Guide/Troubleshooting. </font>
  
 
[[File:ide14.jpg]]
 
[[File:ide14.jpg]]
  
 
<font color="red">'''Notes:'''  
 
<font color="red">'''Notes:'''  
-If your computer is running on the Windows XP system, the new version IDE will prompt errors when running the code. You are recommended to download the Arduino 1.0.5 or Arduino 1.0.6. Or you can also upgrade your Window system. <br>
+
-If your computer is running on the Windows XP system, the new version IDE will prompt errors when running the code. You are recommended to download the Arduino 1.0.5 or Arduino 1.0.6. Or you can also upgrade your Window system. </font>
  
===For Linux Users===  
+
==='''For Linux Users'''===  
 
On the page of '''Arduino Software''', download the package for your 32-bit or 64-bit Linux.  
 
On the page of '''Arduino Software''', download the package for your 32-bit or 64-bit Linux.  
  
Line 127: Line 130:
 
[[File:ide16.jpg]]
 
[[File:ide16.jpg]]
  
='''Install Arduino Software (IDE)'''=  
+
====Install Arduino Software (IDE)====  
1. Open the extracted folder and find the installation file install.sh. Right click on it and selected Run in Terminal in the drop-down list. Then the system will install the Arduino software. After installation, you'll see the IDE icon on your desktop.  
+
1. Open the extracted folder and find the installation file install.sh. Right click on it and selected '''Run in Terminal''' in the drop-down list. Then the system will install the Arduino software. After installation, you'll see the IDE icon on your desktop.  
  
If you don’t see any Run in Terminal when you right click on the icon, don’t worry. You still have another method to accomplish it. In the folder, right click on a blank area and select Open in Terminal in the drop-down list. Now a window pops up and you've at the folder where the file install.sh lies. Type in ./install.sh in the terminal to run the file. After a while, the software is installed successfully. You can see the IDE icon on the desktop. Now you can close the terminal and folder.  
+
[[File:ide17.jpg]]
  
Plug in the Board
+
If you don’t see any '''Run in Terminal''' when you right click on the icon, don’t worry. You still have another method to accomplish it. In the folder, right click on a blank area and select '''Open in Terminal''' in the drop-down list. Now a window pops up and you've at the folder where the file install.sh lies. Type in ./install.sh in the terminal to run the file. After a while, the software is installed successfully. You can see the IDE icon on the desktop. Now you can close the terminal and folder.
 +
 
 +
[[File:ide18.jpg]]
 +
 
 +
====Plug in the Board====
 
Connect the board with the computer via a USB cable (A to B). The USB cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON will brighten. The yellow LED labeled with L, will flicker first and then keep steady on.  
 
Connect the board with the computer via a USB cable (A to B). The USB cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON will brighten. The yellow LED labeled with L, will flicker first and then keep steady on.  
 +
 
Generally you do not need to install driver since when you plug the board in, the system will do that automatically.  
 
Generally you do not need to install driver since when you plug the board in, the system will do that automatically.  
Open the IDE
 
Double click the Arduino IDE icon and the Arduino IDE window will appear. Now check the operations in the window. They are the same with those for Windows.
 
  
1. Verify: Compile your code. Any syntax problem will be prompted with errors.
+
====Open the IDE====
2. Upload: Upload the code to your board. When you click the button, the RX and TX LEDs on the board will flicker fast and won't stop until the upload is done.   
+
Double click the Arduino IDE icon and the Arduino IDE window will appear. Now check the operations in the window. They are the same with those for Windows.
3. New: Create a new code editing window.
+
 
4. Open: Open an .ino sketch.  
+
[[File:ide19.jpg]]
5. Save: Save the sketch.  
+
 
6. Serial Monitor: Click the button and a window will appear. It receives the data sent from your control board. It is very useful for debugging.
+
1. '''Verify:''' Compile your code. Any syntax problem will be prompted with errors.<br>
7. File: Click the menu and a drop-down list will appear, including file creating, opening, saving, closing, some parameter configuring, etc.  
+
2. '''Upload:''' Upload the code to your board. When you click the button, the RX and TX LEDs on the board will flicker fast and won't stop until the upload is done.  <br>
8. Edit: Click the menu. On the drop-down list, there are some editing operations like Cut, Copy, Paste, Find, and so on, with their corresponding shortcuts.  
+
3. '''New:''' Create a new code editing window.<br>
9. Sketch: Includes operations like Verify, Upload, Add files, etc. More important function is Include Library – where you can add libraries.  
+
4. '''Open:''' Open an .ino sketch. <br>
10. Tool: Includes some tools – the most frequently used Board (the board you use) and Port (the port your board is at). Every time you want to upload the code, you need to select or check them.  
+
5. '''Save:''' Save the sketch. <br>
11. Help: If you're a beginner, you may check the options under the menu and get the help you need, including operations in IDE, introduction information, troubleshooting, code explanation, etc.  
+
6. '''Serial Monitor:''' Click the button and a window will appear. It receives the data sent from your control board. It is very useful for debugging.<br>
12. In this message area, no matter when you compile or upload, the summary message will always appear.  
+
7. '''File:''' Click the menu and a drop-down list will appear, including file creating, opening, saving, closing, some parameter configuring, etc. <br>
13. Detailed messages during compile and upload. For example, the file used lies in which path, the details of error prompts.  
+
8. '''Edit:''' Click the menu. On the drop-down list, there are some editing operations like Cut, Copy, Paste, Find, and so on, with their corresponding shortcuts. <br>
14. Board and Port: Here you can preview the board and port selected for code upload. You can select them again by Tools -> Board / Port if any is incorrect.  
+
9. '''Sketch:''' Includes operations like Verify, Upload, Add files, etc. More important function is Include Library – where you can add libraries. <br>
15. The editing area of the IDE. You can write code here.  
+
10. '''Tool:''' Includes some tools – the most frequently used Board (the board you use) and Port (the port your board is at). Every time you want to upload the code, you need to select or check them. <br>
 +
11. '''Help:''' If you're a beginner, you may check the options under the menu and get the help you need, including operations in IDE, introduction information, troubleshooting, code explanation, etc.<br>
 +
12. In this message area, no matter when you compile or upload, the summary message will always appear. <br>
 +
13. Detailed messages during compile and upload. For example, the file used lies in which path, the details of error prompts. <br>
 +
14. '''Board and Port''': Here you can preview the board and port selected for code upload. You can select them again by '''Tools''' -> '''Board''' / '''Port''' if any is incorrect. <br>
 +
15. The editing area of the IDE. You can write code here. <br>
 
Now let's some basic operations in IDE with an example code.  
 
Now let's some basic operations in IDE with an example code.  
 +
 
Open a file in the Examples and check the details. There are many example sketches under the Examples which are built-in code files in the Arduino software. You can start from these files if you're just starting to learn Arduino.  
 
Open a file in the Examples and check the details. There are many example sketches under the Examples which are built-in code files in the Arduino software. You can start from these files if you're just starting to learn Arduino.  
 +
 +
[[File:ide20.jpg]]
  
 
Select the correct board before uploading.  
 
Select the correct board before uploading.  
 +
 +
[[File:ide21.jpg]]
  
 
and Port (/dev/ttyACM0)
 
and Port (/dev/ttyACM0)
  
Click the Upload icon to upload the code to the board. And the icon Compile to compile sketches (usually used to refer to a code file), which always checks the code. Also when you click Upload, the code will be compiled. The sketches can be uploaded to the board when there is nothing wrong with them. Therefore, generally you just need to click Upload.  
+
[[File:ide22.jpg]]
During the upload, the TX LED and the RX LED will be alternately flickering. It means the board is sending signal to the computer and then receives the signal from the latter. After upload is completed, the two LEDs will go out.  
+
 
 +
Click the Upload icon to '''upload''' the code to the board. And the icon Compile to compile sketches (usually used to refer to a code file), which always checks the code. Also when you click '''Upload''', the code will be compiled. The sketches can be '''uploaded''' to the board when there is nothing wrong with them. Therefore, generally you just need to click '''Upload.'''
 +
 
 +
During the upload, the TX LED and the RX LED will be alternately flickering. It means the board is sending signal to the computer and then receives the signal from the latter. After upload is completed, the two LEDs will go out.
 +
 
 +
[[File:ide23.jpg]]
 +
 
 +
If you get an error message:
 +
avrdude:ser_open():cann’t open device”/dev/ttyACM0”:Permission denied
 +
it means you need to enable the permission for port. Take the following steps:
  
If you get an error message: avrdude:ser_open():cann’t open device”/dev/ttyACM0”:Permission denied, it means you need to enable the permission for port. Take the following steps:
 
 
Open a terminal and type in the command:   
 
Open a terminal and type in the command:   
ls –l /dev/ttyACM*   
+
ls –l /dev/ttyACM*   
 
Then you will see:  
 
Then you will see:  
crw-rw---- 1 root dialout 166,0 May 11 17:52 /dev/ttyACM0
+
crw-rw---- 1 root dialout 166,0 May 11 17:52 /dev/ttyACM0
 
The data we need is "dialout" (the group owner of the file).
 
The data we need is "dialout" (the group owner of the file).
 +
 
Now we just need to add our user to the group:
 
Now we just need to add our user to the group:
sudo usermod -a -G dialout <username>
+
sudo usermod -a -G dialout <username>
 
where <username> is your linux user name. Then type in the password.  
 
where <username> is your linux user name. Then type in the password.  
  
Note: After the modification, you need to log out and log in to take it into effect.  
+
[[File:ide24.jpg]]
 +
 
 +
<font color="red">'''Note:''' After the modification, you need to log out and log in to take it into effect. </font>
 +
 
 
Now open the Arduino IDE again. Upload the code. If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.
 
Now open the Arduino IDE again. Upload the code. If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.
  
For Mac OS X Users  
+
[[File:ide25.jpg]]
On the page of Arduino Software, download the package for Mac OS X. After download is done, double click the zip file to unzip.  
+
 
Install the Arduino software (IDE)
+
===For Mac OS X Users===
No installation procedures on Mac OS X – just open it and apply after download.  
+
====Downlaod the IDE====
Plug in the Board
+
1) On the page of Arduino Software, download the package for Mac OS X. After download is done, double click the zip file to unzip. <br>
Connect the board with the computer via a USB cable (A to B). The USB cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON will brighten. The yellow LED labeled with L, will flicker first and then keep steady on.  
+
Generally you do not need to install driver since when you plug the board in, the system will do that automatically.  
+
[[File:Mac install.png]]<br>
Open the IDE
+
2) Following that, you’ll need to copy the Arduino into your applications folder to complete installation.<br>
Double click the Arduino IDE icon to open the software.
+
[[File:Screen Shot 2016-09-08 at 10.30.11 AM.png]]<br>
 +
 
 +
====Plug in the Board====
 +
Connect the board with the computer via a USB cable (A to B). The USB cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON will brighten. The yellow LED labeled with L, will flicker first and then keep steady on. <br>
 +
 
 +
Generally you do not need to install driver since when you plug the board in, the system will do that automatically.<br>
 +
 
 +
====Using the IDE====
 +
Double-click the Arduino icon (arduino.exe) created by the installation process<br>
 +
Then the Arduino IDE will appear.
 +
Now let's some basic operations in IDE with an example code. Click File > Examples >01.Basics > Blink and a new window will show up. <br>
 +
[[File:Blinkmac.png]]<br>
 +
 +
1) Before uploading the code to your board, first you need to select the correct board and the correct port. (Uno, etc.)<br>
 +
[[File:Boardmac.png]]<br>
 +
then port, The port here (/dev/cu.usbmodem1411) may be different from the Arduino board name. <br>
 +
 +
[[File:Portmac.png]]<br>
 +
 
 +
4)Click the Upload icon to upload the code to the board. And the icon Compile to compile sketches (usually used to refer to a code file), which always checks the code. Also when you click Upload, the code will be compiled. The sketches can be uploaded to the board when there is nothing wrong with them. Therefore, generally you just need to click Upload.<br>
 +
During the upload, the TX LED and the RX LED will be alternately flickering. It means the board is sending signal to the computer and then receives the signal from the latter. After upload is completed, the two LEDs will go out. <br>
 +
[[File:Portmac.png]]<br>
 +
 +
5) If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.<br>
 +
[[File:Doneuploadmac.jpg]]

Latest revision as of 06:22, 9 May 2017

Preparations

Ide1.jpg

Prepare a USB cable (type A to B), a SunFounder MARS board and a computer to install the Arduino IDE. The computer may be running on an operating system such as Windows, Linux or Mac OS X. You may install the corresponding IDE based on the system type.

Download and Install the Arduino Software (IDE)

Before plugging the USB cable to your computer, you need to first install the Arduino IDE.

Go to the Download page on the adruino.cc:

https://www.arduino.cc/en/Main/Software

Ide2.jpg

Now find the steps suitable for your operating system to install the IDE:

Windows

Linux

Mac OS X

For Windows users

There are two choices for Windows version of L: Installer or ZIP file. You're recommended to use the Installer since it will automatically install the driver for Arduino IDE installation. So you can just download it and run the executable file to begin installation. If you download the zip file, you need to unzip the file and install the driver by yourself.

For Installer

Step 1: Find the .exe file just downloaded

Ide3.jpg

Step 2: Double click the file and a window will pop up as below. Click I Agree.

Ide4.jpg

Step 3: Click Next.

Ide5.jpg

Step 4: Select the path to install. By default, it's set in the C disk: C:\Program Files\Arduino. You can click Browse and choose another path. Click OK. Then click Install.

Ide6.jpg

Step 5: After the installation is done, click Close.

Please note that the new IDE may prompt errors when you're compiling code under Windows XP. So if your computer is running on XP, you're suggested to install Arduino 1.0.5 or 1.0.6. Also you can upgrade your computer.

Plug in the board

Connect the MCU to your computer via a USB cable (type-A to B). The cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON, will brighten. The yellow LED, labeled with L, will flicker first and then keep steady on.

Install the driver

If you downloaded the installer, upon your connecting the board to the computer, the system will help you install the driver automatically. After a while, a prompt may appear in the taskbar indicating the driver is installed successfully. It depends on computers. So if you don't see it in yours, it's still OK.

You can also check the port on Device Manager. Right click on your computer and click Manage. Find Device Manager under Computer Management (local). Then you can see the Mega 2560 at COM54. The other boards are similar. It's normal if yours is different from mine. So now the board is recognized by the computer.

Ide7.jpg

If you download the zip file before, when you connect the MCU to the computer, it may not be recognized (it can happen). Then you need to install the driver manually. Take the following steps.

A: Extract the zip file you downloaded. Then right click on Computer and select Management or Device Manager. Find Other Devices.

B: Right click on Unknown Devices or Arduino board (COmxx) and select Update Driver Software.

C: Choose the second option, Browse my computer for Driver software.

D: A window pops up then. Click Browse. Then go to the folder where you just extracted the file. Go to the drivers folder and click OK -> Next. It may need a sec. Then the system prompts you the driver has been installed successfully. And the driver is for Uno. So the computer can recognize the board now. Click Close.

Open the Arduino Software (IDE)

Double-click the Arduino icon (arduino.exe) created by the installation process

Ide8.jpg

Then the Arduino IDE will appear. Let's check details of the software.

Ide9.jpg

1. Verify: Compile your code. Any syntax problem will be prompted with errors.
2. Upload: Upload the code to your board. When you click the button, the RX and TX LEDs on the board will flicker fast and won't stop until the upload is done.
3. New: Create a new code editing window.
4. Open: Open an .ino sketch.
5. Save: Save the sketch.
6. Serial Monitor: Click the button and a window will appear. It receives the data sent from your control board. It is very useful for debugging.
7. File: Click the menu and a drop-down list will appear, including file creating, opening, saving, closing, some parameter configuring, etc.
8. Edit: Click the menu. On the drop-down list, there are some editing operations like Cut, Copy, Paste, Find, and so on, with their corresponding shortcuts.
9. Sketch: Includes operations like Verify, Upload, Add files, etc. More important function is Include Library – where you can add libraries.
10. Tool: Includes some tools – the most frequently used Board (the board you use) and Port (the port your board is at). Every time you want to upload the code, you need to select or check them.
11. Help: If you're a beginner, you may check the options under the menu and get the help you need, including operations in IDE, introduction information, troubleshooting, code explanation, etc.
12. In this message area, no matter when you compile or upload, the summary message will always appear.
13. Detailed messages during compile and upload. For example, the file used lies in which path, the details of error prompts.
14. Board and Port: Here you can preview the board and port selected for code upload. You can select them again by Tools -> Board / Port if any is incorrect.
15. The editing area of the IDE. You can write code here.
Now let's some basic operations in IDE with an example code. Click File > Examples >01.Basics > Blink and a new window will show up.

Ide10.jpg

Click Tools ->Board and select Arduino/Genuino Uno.

Ide11.jpg

Then Tools ->Port and select the COM port you just checked on Device Manager or the system prompted you in the taskbar when you plug in the board.

Ide12.jpg

Click the Upload icon to upload the code to the board. And the icon Compile to compile sketches (usually used to refer to a code file), which always checks the code. Also when you click Upload, the code will be compiled. The sketches can be uploaded to the board when there is nothing wrong with them. Therefore, generally you just need to click Upload. During the upload, the TX LED and the RX LED will be alternately flickering. It means the board is sending signal to the computer and then receives the signal from the latter. After upload is completed, the two LEDs will go out.

Ide13.jpg

If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.

For more details about Arduino IDE, go to Learning->Getting started->Foundation on the arduino.cc and click Arduino Software (IDE) on the page. http://www.arduino.cc/en/Guide/Environment

If your sketch fails upload, on the same page click Troubleshooting

http://www.arduino.cc/en/Guide/Troubleshooting.

Ide14.jpg

Notes: -If your computer is running on the Windows XP system, the new version IDE will prompt errors when running the code. You are recommended to download the Arduino 1.0.5 or Arduino 1.0.6. Or you can also upgrade your Window system.

For Linux Users

On the page of Arduino Software, download the package for your 32-bit or 64-bit Linux.

Ide15.jpg

Extract the zip file after download. Usually the downloaded file is saved under the Download folder.

Ide16.jpg

Install Arduino Software (IDE)

1. Open the extracted folder and find the installation file install.sh. Right click on it and selected Run in Terminal in the drop-down list. Then the system will install the Arduino software. After installation, you'll see the IDE icon on your desktop.

Ide17.jpg

If you don’t see any Run in Terminal when you right click on the icon, don’t worry. You still have another method to accomplish it. In the folder, right click on a blank area and select Open in Terminal in the drop-down list. Now a window pops up and you've at the folder where the file install.sh lies. Type in ./install.sh in the terminal to run the file. After a while, the software is installed successfully. You can see the IDE icon on the desktop. Now you can close the terminal and folder.

Ide18.jpg

Plug in the Board

Connect the board with the computer via a USB cable (A to B). The USB cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON will brighten. The yellow LED labeled with L, will flicker first and then keep steady on.

Generally you do not need to install driver since when you plug the board in, the system will do that automatically.

Open the IDE

Double click the Arduino IDE icon and the Arduino IDE window will appear. Now check the operations in the window. They are the same with those for Windows.

Ide19.jpg

1. Verify: Compile your code. Any syntax problem will be prompted with errors.
2. Upload: Upload the code to your board. When you click the button, the RX and TX LEDs on the board will flicker fast and won't stop until the upload is done.
3. New: Create a new code editing window.
4. Open: Open an .ino sketch.
5. Save: Save the sketch.
6. Serial Monitor: Click the button and a window will appear. It receives the data sent from your control board. It is very useful for debugging.
7. File: Click the menu and a drop-down list will appear, including file creating, opening, saving, closing, some parameter configuring, etc.
8. Edit: Click the menu. On the drop-down list, there are some editing operations like Cut, Copy, Paste, Find, and so on, with their corresponding shortcuts.
9. Sketch: Includes operations like Verify, Upload, Add files, etc. More important function is Include Library – where you can add libraries.
10. Tool: Includes some tools – the most frequently used Board (the board you use) and Port (the port your board is at). Every time you want to upload the code, you need to select or check them.
11. Help: If you're a beginner, you may check the options under the menu and get the help you need, including operations in IDE, introduction information, troubleshooting, code explanation, etc.
12. In this message area, no matter when you compile or upload, the summary message will always appear.
13. Detailed messages during compile and upload. For example, the file used lies in which path, the details of error prompts.
14. Board and Port: Here you can preview the board and port selected for code upload. You can select them again by Tools -> Board / Port if any is incorrect.
15. The editing area of the IDE. You can write code here.
Now let's some basic operations in IDE with an example code.

Open a file in the Examples and check the details. There are many example sketches under the Examples which are built-in code files in the Arduino software. You can start from these files if you're just starting to learn Arduino.

Ide20.jpg

Select the correct board before uploading.

Ide21.jpg

and Port (/dev/ttyACM0)

Ide22.jpg

Click the Upload icon to upload the code to the board. And the icon Compile to compile sketches (usually used to refer to a code file), which always checks the code. Also when you click Upload, the code will be compiled. The sketches can be uploaded to the board when there is nothing wrong with them. Therefore, generally you just need to click Upload.

During the upload, the TX LED and the RX LED will be alternately flickering. It means the board is sending signal to the computer and then receives the signal from the latter. After upload is completed, the two LEDs will go out.

Ide23.jpg

If you get an error message:

avrdude:ser_open():cann’t open device”/dev/ttyACM0”:Permission denied

it means you need to enable the permission for port. Take the following steps:

Open a terminal and type in the command:

ls –l /dev/ttyACM*  

Then you will see:

crw-rw---- 1 root dialout 166,0 May 11 17:52 /dev/ttyACM0

The data we need is "dialout" (the group owner of the file).

Now we just need to add our user to the group:

sudo usermod -a -G dialout <username>

where <username> is your linux user name. Then type in the password.

Ide24.jpg

Note: After the modification, you need to log out and log in to take it into effect.

Now open the Arduino IDE again. Upload the code. If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.

Ide25.jpg

For Mac OS X Users

Downlaod the IDE

1) On the page of Arduino Software, download the package for Mac OS X. After download is done, double click the zip file to unzip.

Mac install.png

2) Following that, you’ll need to copy the Arduino into your applications folder to complete installation.

Screen Shot 2016-09-08 at 10.30.11 AM.png

Plug in the Board

Connect the board with the computer via a USB cable (A to B). The USB cable can be used not only to upload sketches to the board, but also supply power. After plugging in, the green LED on the board labeled with ON will brighten. The yellow LED labeled with L, will flicker first and then keep steady on.

Generally you do not need to install driver since when you plug the board in, the system will do that automatically.

Using the IDE

Double-click the Arduino icon (arduino.exe) created by the installation process
Then the Arduino IDE will appear. Now let's some basic operations in IDE with an example code. Click File > Examples >01.Basics > Blink and a new window will show up.
Blinkmac.png

1) Before uploading the code to your board, first you need to select the correct board and the correct port. (Uno, etc.)

Boardmac.png

then port, The port here (/dev/cu.usbmodem1411) may be different from the Arduino board name.

Portmac.png

4)Click the Upload icon to upload the code to the board. And the icon Compile to compile sketches (usually used to refer to a code file), which always checks the code. Also when you click Upload, the code will be compiled. The sketches can be uploaded to the board when there is nothing wrong with them. Therefore, generally you just need to click Upload.
During the upload, the TX LED and the RX LED will be alternately flickering. It means the board is sending signal to the computer and then receives the signal from the latter. After upload is completed, the two LEDs will go out.
Portmac.png

5) If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. And if you see the pin 13(L) LED starts to flicker, it means the code has been successfully run.
Doneuploadmac.jpg