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 already have the ESP8266 board URL, you can separate the URLs with commas like this:

    https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
    
  3. Download the package, and copy the unzipped packages files to the following path:
    C:\Users\username\AppData\Local\Arduino15

    L76K GPS Module ESP32204.jpg

Install Dependency Library

  • Click on the third icon on the left for the library manager, type "INA219_WE" in the search field, find the dependency library INA219_WE and click on install.

UGV01 tutorial VII01EN.png

  • Then type "Adafruit_SSD1306" in the search bar to find the dependency library Adafruit_SSD1306 and click Install.

Tutorial VIII01EN.png

  • Download and unzip the dependency library ESP32Servo, open the default installation location of Arduino C:\Users\username\AppData\Local\Arduino15\libraries, username according to their own computer's user name change, and then copy the folder in the picture to the Libraries folder.

Install Arduino IDE WAVE03.png

Upload Demo

  1. Download UGV01_BASE.zip and double-click UGV01_BASE\UGV01_BASE.ino.
    UGV1 doenload.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.