2. Arduino Development Environment
2.1. Installing Arduino IDE
The installation package for Arduino IDE is included in the documentation bundle for the dev board. Skip to Step 5 if you have the provided installation package.
Step 1: Visit the official Arduino IDE website. Select the appropriate operating system and system type for the download.
For example, in this case, I would choose the latest Windows 10 64-bit environment.
Step 2: Download directly or choose to make a donation and download.
Step 3: Click 'Just Download.'
Step 4: Once completed, your browser will start to download.
Step 5: Double-click to run the installation package you just downloaded.
Step 6: Click 'I agree'.
Step 7: Click 'Install for me only.'
> You will need to install additional board support packages based on this path later.
Step 8: Select the installation path. In my case, I created a new folder named "arduino_IDE" on the D drive and installed the IDE in that folder. It is not recommended to use the default path, as it takes up too much space on the C drive.
Step 9: Wait for the installation to finish.
If prompted to install drivers, click 'Install.'
Step 10: Installation completed.
2.2 Setting Up the Arduino Development Environment
Step 1: Install the Drivers
For the dev board to download code properly, you need to install the port driver on your computer so that it can recognize the dev board.
Download the drives below:
Download
📌 Download Center(Click the Link)
📌 Find it in Download Center -> Beginner's Guide -> Development Tools file.
Once downloaded, unzip and run CH341SER.EXE
.
Click 'Install.'
Step 2: Test the Environment
Select a basic example. The Arduino IDE you downloaded comes with Arduino examples by default, and you can choose the basic LED blinking example Blink, to test the environment.
The code is as follows:
Connect the dev board with the data cable and plug it into your PC. Go to the Tools menu in Arduino IDE, and select the port for the dev board (you can confirm the port by plugging and unplugging; in my case it is COM51).
Go to the Tools menu, choose 'Arduino Uno' as Board (dev board).
Click the upload button to upload the code to the dev board for execution.
You will get a notification like this after the upload is finished:
Once the upload is done, you will see the LED on the dev board start blinking.
2.3 Introduction to the Basic Features and Interface of Arduino IDE
The interface generally consists of four sections:
- Menu Bar You can find File, Edit, Sketch, Tools, and Help menus here.
- Tools Bar You can compile, upload, create a sketch, open a sketch, save a sketch, and open the Serial Monitor.
- Edit Area The area for writing your program code.
- Status Bar Displays compilation and upload information, along with any error messages if the program encounters issues.