Setup Arduino IDE and ESP32 - IoTThinks/EasyLoraGateway GitHub Wiki

1. Install USB UART driver

Go to https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

  • Download the driver based on your operating system. My operating system is Windows 7 (64-bit). uart-driver

  • Unzip the file and run CP210x..._v64.exe (if your Windows is 64 bit). Run CP210x...v32.exe (if your Windows is 32 bit). Don't know what is 64 bit? Then use the 64 bit version. uart-driver-2

  • After finishing installing the driver, put in your UART USB to your USB port of your laptop, check the Computer management > Device Manager > Ports, you should see "Silicon Labs CP210x USB to UART Bridge". Your COM number may be different. So remmember your COM number for later section. uart-driver-3 Done.

2. Install Arduino IDE

  • Go to https://www.arduino.cc and download the latest Arduino IDE. Click "Just download" to get the installation file. ide1

  • Let everything default and finish installing the Arduino IDE ide2

Ok, click Install to install COM driver for Arduino IDE. Total is 4-5 times for many kinds of drivers. ide3

Done.

3. Install library for ESP32

We need to install ESP32 library for Easy LoRa gateway as it uses ESP32 as the core processor. ESP32 controlls GPIO, WiFi, BLE and even SPI for LoRa. We can use git to download the ESP32 library. However, let do it the simplest way.

  • Go to https://github.com/espressif/arduino-esp32, Click on "Clone and download" > Download ZIP. esp32-1

  • Go to C:\Program Files (x86)\Arduino\hardware, create a folder espressif and create a subfolder esp32 inside espressif esp32-2

  • Unzip the espressif file above and copy the content INSIDE the zip file to C:\Program Files (x86)\Arduino\hardware\espressif\esp32 esp32-3

  • After copying the files, it should be like the below. esp32-4

  • Now open Arduino IDE, click Tools > Board > (scroll down) ESP32 Dev Module. If you see a lot of ESP32 boards, you've DONE successfully. esp32-5

  • Go to C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools, click on get.exe and Run as Administrator ide4

  • After finishing download, you should see xtensa-esp32-elf folder. ide5

  • Reboot Arduino IDE.

Done.

4. Troubleshooting:

  • IF you have some warnings about "Invalid library found ... BLE or AzureIoT", the clone in step 3 doesn't get all sourcecode about BLT or AzueIoT. You can simply ignore them if you're not using BLE or AzueIoT. OR you can instead here and get all the source code as bellow INSTEAD of Step 3. git clone --recursive -j8 https://github.com/espressif/arduino-esp32.git git-esp32

References:

⚠️ **GitHub.com Fallback** ⚠️