Chapter 0 Installation of Arduino IDE

Arduino Software

Arduino Software (IDE) is used to write and upload the code for Arduino Board.

First, install Arduino Software (IDE): visit https://www.arduino.cc/en/software/

../../../_images/Preface03.png

Select and download corresponding installer based on your operating system. If you are a Windows user, please select the “Windows” to download and install the driver correctly.

../../../_images/Preface04.png

After the downloading completes, run the installer. For Windows users, there may pop up an installation dialog box of driver during the installation process. When it is popped up, please allow the installation.

After installation is completed, an shortcut will be generated in the desktop.

../../../_images/Preface05.png

Run it. The interface of the software is as follows:

../../../_images/Preface06.png

Programs written with Arduino IDE are called sketches. These sketches are written in a text editor and are saved with the file extension.ino. The editor has features for cutting/pasting and for searching/replacing text. The console displays text output by the Arduino IDE, including complete error messages and other information. The bottom right-hand corner of the window displays the configured board and serial port. The toolbar buttons allow you to verify and upload programs, open the serial monitor, and access the serial plotter.

Preface07

Verify

Checks your code for errors compiling it.

Preface08

Upload

Compiles your code and uploads it to the configured board.

Preface09

Debug

Troubleshoot code errors and monitor program running status.

Preface10

Serial Plotter

Real-time plotting of serial port data charts.

Preface11

Serial Monitor

Used for debugging and communication between devices and computers.

Environment Configuration

First, open the software platform arduino, and then click File in Menus and select Preferences.

../../../_images/Chapter00_09.png

Second, click on the symbol behind “Additional Boards Manager URLs”.

../../../_images/Chapter00_10.png

Third, fill in https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json in the new window, click OK, and click OK on the Preferences window again.

../../../_images/Chapter00_11.png ../../../_images/Chapter00_12.png

Fourth, click “Boards Manager”.

../../../_images/Chapter00_13.png

Fifth, input “Raspberry Pi Pico” in the window below, and press Enter. Click “Install” to install.

../../../_images/Chapter00_14.png

When finishing installation, click Tools in the Menus again and select Board: “Raspberry Pi Pico/RP2040”, and then you can see information of Raspberry Pi Pico (W). Click “Raspberry Pi Pico W” so that the Raspberry Pi Pico W programming development environment is configured.

../../../_images/Chapter00_15.png

Additional Remarks

To finish this tutorial, you can use a Raspberry Pi Pico W or a Raspberry Pi Pico. The two boards have the same form factor, and their only difference is that Pico W features with an onboard single-band 4.802GHz wireless interface using Infineon CYW2. That is to say, the hardware Raspberry Pi Pico W is almost the same as the normal pico except for the wireless interface, which enables Pico W to work with WiFi

No matter which board you use, the procedure for each project is the same. You only need to select the correct board and upload the corresponding code based on the board you use.

In this book, we use Raspberry Pi Pico W to illustrate the operation.

The followings show the configuration on Arduino for the use of each board.

For Raspberry Pi Pico:

Click Tools on Menu bar, click Board, select “Raspberry Pi Pico/RP2040”, and select Raspberry Pi Pico.

../../../_images/Chapter00_16.png

For Raspberry Pi Pico W:

Click Tools on Menu bar, click Board, select “Raspberry Pi Pico/RP2040”, and select Raspberry Pi Pico W.

../../../_images/Chapter00_17.png