How To Install Arduino IDE

From Waveshare Wiki
Jump to: navigation, search

Modules Usage Tutorial

Install Arduino IDE

  1. Download the Arduino IDE installation package from Arduino website.
    RoArm-M1 Tutorial II01.jpg
  2. Click to install after downloading.
    RoArm-M1 Tutorial II02.gif
  3. Note: You will be prompted to install the driver during the installation process, we can click Install.

Install ESP32 Plug-in In Arduino IDE

  1. Open Arduino IDE, click the File on the left corner and choose "Preferences".
    RoArm-M1 Tutorial04.jpg
  2. Add the following link in the additional development board manager URL, then click OK.
    https://dl.espressif.com/dl/package_esp32_index.json

    RoArm-M1 Tutorial II05.jpg

    Note: If you need to add multiple development board URLs, you don't need to delete the URL for ESP32 development board support. You can directly add other URLs on another line. By default, URLs will be displayed separated by commas.
    For example: If you need to add the URL on the ESP8266 development board, simply add the additional URLs on separate lines, and it will display as follows:

    https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json

    M2ESP323.pngM2ESP324.png


    3. Click to download ESP32 development package and unzip. Input the following path on "my computer":

    C:\Users\username\AppData\Local\Arduino15

    The "username" needs to be changed according to your computer's username. Create a new folder named "packages" and copy the extracted folder of the ESP32 development package into the "packages" folder.

    M2ESP325.png


    You can see that the installed ESP32 development board version from "packages-esp32-hardware-esp32" is version 2.0.11, which matches the version required for the open-source demo development board ESP32 of the WAVE ROVER, UGV01, and UGV02.

    M2ESP326.png

    Install Dependency Library

    Download libraries, unzip them and open the Arduino IDE. Select "File" -> "Preferences" on the top left corner to view the default installation path of the dependencies libraries: C:\Users\username\Documents\Arduino. In that path, create a new folder called libraries, and copy the folder shown in the figure into the new libraries folder.
    General-libraries.png

    Upload Demo

    Here we take the WAVE ROVER demo as an example. After you develop the demo, you can upload it to the General Driver for Robots driver board by the following methods.

    1. Download the demo, unzip it and double-click to open WAVE_ROVER_v0.9.ino. Please note that all files are under the same file folder.
      WR-upload-demo.png
    2. Click Tool -> Port, remember the existing COM, and do not click this COM. (There are different COM ports in different computers, and you need to remember the existing COM in your computer.)
      UGV1 doenload02EN.png
    3. Connect the driver board to the computer with a USB cable, click Tools -> Port, and click the newly-appeared COM.
      UGV1 doenload03EN.png
    4. Click Tool -> Development board -> ESP32 Arduino -> ESP32 Dev Module.
      RoArm-M1 Tutorial II992.png
    5. After setting, you can click Upload to upload the demo to your device.
      UGV1 doenload04.png
    • If you encounter problems during the period and need to reinstall or change the Arduino IDE version, you need to uninstall the Arduino IDE after uninstalling the software. Then, you need to manually delete all the contents of the folder C:\Users[name]\AppData\Local\Arduino15 (Need to display hidden files to see) and then reinstall.