0% found this document useful (0 votes)
7 views9 pages

2.2 Arduino IDE Instruction

The document provides instructions for setting up the Arduino IDE, including changing the interface language, downloading example programs, and importing library files. It details the steps to compile and upload a program to an Arduino board, as well as methods for importing libraries both online and locally. Additionally, it offers troubleshooting tips for common errors encountered during library imports.

Uploaded by

Ywhite Eric
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views9 pages

2.2 Arduino IDE Instruction

The document provides instructions for setting up the Arduino IDE, including changing the interface language, downloading example programs, and importing library files. It details the steps to compile and upload a program to an Arduino board, as well as methods for importing libraries both online and locally. Additionally, it offers troubleshooting tips for common errors encountered during library imports.

Uploaded by

Ywhite Eric
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Arduino IDE Instruction

1. Arduino IDE Interface Setting

1) Modify the Chinese interface: select “File -> Preferences” on the


Arduino IDE interface. Then, choose Chinese from the “Language”, and click
“OK”.

2) You can modify the project file path, editor text size, color themes, etc
by selecting “File -> Preferences” in the pop-up window.

1
2. Arduino Download Program

1) In this case, we will use an example that prints “Hiwonder” to illustrate.


Open the example program “Demo.ino” in the “Demo” folder at the same folder
as this document.

2) Connect Arduino board to the computer using Type-B cable.

3) In the “Select board” option, find the corresponding Arduino

2
development board. (Take “Arduino Uno” and “COM6” as en example to
demonstrate. The COM port is not unique. You can can check the COM port
number in the computer’s device manager. )

4) Click button to compile the program, which can check if the


program has syntax errors and other issues.

5) After the compilation is complete, click to upload the program


into the Arduino development board.

3
6) When the upload is done, click to open the serial monitor. The
word “hiwonder” is printed on the serial monitor.

3. Import Library File

If the program requires importing the library files, you can refer to the
following operations:
1) Online Importing
4
This method is usually used for importing some official Arduino library files.
For example, the library file for servo control (Servo), the library file for PID
control algorithm (PID), and the library file for driving the RGB light (FastLED).
Take the library file for driving the RGB light (FastLED) as an example to
illustrate:

1 Click at the sidebar of Arduino IDE interface.

2 In the pop-up library management bar, enter “FastLED” to


automatically search for the library files, then click “install”.

3 The prompt shown in the red box indicates the successful installation.

5
2) Local Importing:
This method is usually used for downloading library file or customizing the
library file importing. Here will take the “FastLED” library file as an example to
illustrate.
1 Select “Sketch -> Import library-> Add .ZIP library”.

2 Search for the “2.4_Demo\FastLED.zip” file and open it.

3 The prompt shown in the below red box indicates that the library file
has been installed already.

6
! In the process of importing the library file in the local, if you encounter the below

error during the process of importing library files locally, you can refer to the following

solution.

Take the library file “FastLED” as example to illustrate. In Arduino IDE


versions 1.8.5 and above, the error above may arise when importing this
library file. You can solve this problem by extracting the library file and placing
it directly into the 'libraries' folder in the path of the project. The specific
solution is as follows:
 At first, extract the library file “FastLED”.

 Click “File->Preferences” in sequence.

7
 In the opening preferences, copy the path.

 Paste it in my computer, and then press “Enter” to access the path.

 Place the previously extracted library file into the “libraries” folder.

8
 Restart Arduino IDE. The library file has been located in the library of
Arduino IDE.

You might also like