Setup Arduino IDE and ESP32 - IoTThinks/EasyLoraGateway GitHub Wiki
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).
-
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.
-
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. Done.
-
Go to https://www.arduino.cc and download the latest Arduino IDE. Click "Just download" to get the installation file.
-
Let everything default and finish installing the Arduino IDE
Ok, click Install to install COM driver for Arduino IDE. Total is 4-5 times for many kinds of drivers.
Done.
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.
-
Go to C:\Program Files (x86)\Arduino\hardware, create a folder espressif and create a subfolder esp32 inside espressif
-
Unzip the espressif file above and copy the content INSIDE the zip file to C:\Program Files (x86)\Arduino\hardware\espressif\esp32
-
After copying the files, it should be like the below.
-
Now open Arduino IDE, click Tools > Board > (scroll down) ESP32 Dev Module. If you see a lot of ESP32 boards, you've DONE successfully.
-
Go to C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools, click on get.exe and Run as Administrator
-
After finishing download, you should see xtensa-esp32-elf folder.
-
Reboot Arduino IDE.
Done.
- 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
References:
- We would like to thanks IoTMaker.vn for their clear documents at https://esp32.vn/arduino/install.html#chuan-bi. We have used it for our very first use of ESP32 some time back.