Skip to content

Arduino IDE

4m1g0 edited this page Jan 7, 2020 · 6 revisions

Build on Arduino IDE

We strongly recommend using platformio, the build process is simpler and it is less likely to have compilation errors.

You can install the Arduino IDE by downloading it from arduino.cc, we recommend the last version, but you should use v1.6 or above.

Install the Arduino Core for ESP32

First step is to install support for ESP32 based boards on the Arduino IDE through the Board Manager.

  • Start Arduino and open Preferences window.
  • Enter https://dl.espressif.com/dl/package_esp32_index.json into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
  • Open Boards Manager from Tools > Board menu and find esp32 platform.
  • Select the version you need from a drop-down box.
  • Click install button.

Installing dependencies

This project relies on several third party dependencies that must be installed in order to be able to build the binaries. You can find the dependencies list below.

To install the libraries you can simply copy all files from the GroundStation folder lib into your sketchbook\libraries folder. Make sure there are no duplicate libraries that might cause a conflict.

Note: Some of this libraries have modifications compared to the original ones, so make sure you use the version listed here or just copy the libraries from the libfolder to avoid problems. On PubSubClient it is mandatory to set MQTT_MAX_PACKET_SIZE to 1000 on the PubSubClient.h file.

Open the project in Arduino IDE

Once you have cloned this project to a local directory, you can open it from the Arduino IDE in File > Add folder to workspace. And select the .ino file which is located in FossaGroundStation > Fossa_GroundStation.ino

Open on Arduino IDE

Build and upload the project

Connect the board to the computer, select your board in the Arduino IDE Tools > Boards if you have doubts you can select Heltec Lora 32 V1 this configuration will work for most of the boards based on ESP32.

Select board on Arduino IDE

Then select the port where the board is connected to the computer in Tools > Ports

And finally click on the rounded arrow button on the top to upload the project to the board or go to Program > Upload (Ctl+U)

Clone this wiki locally