Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Latest commit

 

History

History
59 lines (37 loc) · 3 KB

esp32-setup.md

File metadata and controls

59 lines (37 loc) · 3 KB

ESP32 Arduino Setup

ESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth. You can develop for it using Azure IoT Device Workbench to take advantage of Microsoft Azure services.

Install development environment

We recommend Azure IoT Device Workbench extension for Visual Studio Code to develop on the ESP32 devices.

Azure IoT Device Workbench provides an integrated experience to develop IoT solutions. It helps both on device and cloud development using Azure IoT and other services. You can watch this Channel9 video to have an overview of what it does.

Follow these steps to prepare the development environment for ESP32 devices:

  1. Download and install Arduino IDE. It provides the necessary tool chain for compiling and uploading Arduino code.

Note: Arduino IDE 1.8.7 has breaking changes, causing board package and library installation failures. It is recommended to that you install version 1.8.6

  • Windows: Use Windows Installer version
  • macOS: Drag and drop the Arduino into /Applications
  • Ubuntu: Unzip it into $HOME/Downloads/arduino-1.8.5
  1. Install Visual Studio Code, a cross platform source code editor with powerful developer tooling, like IntelliSense code completion and debugging.

  2. Install Arduino for Visual Studio Code.

  3. Look for Azure IoT Device Workbench in the extension marketplace and install it. Install IoT Device Workbench Together with Azure IoT Device Workbench, other dependent extensions will be installed.

  4. Open File > Preference > Settings and add following lines to configure Arduino.

  • Windows

    "arduino.path": "C:\\Program Files (x86)\\Arduino",
    "arduino.additionalUrls": "https://dl.espressif.com/dl/package_esp32_index.json"
  • macOS

    "arduino.path": "/Application",
    "arduino.additionalUrls": "https://dl.espressif.com/dl/package_esp32_index.json"
  • Ubuntu

    "arduino.path": "/home/{username}/Downloads/arduino-1.8.5",
    "arduino.additionalUrls": "https://dl.espressif.com/dl/package_esp32_index.json"
  1. Use F1 or Ctrl+Shift+P (macOS: Cmd+Shift+P) to open the command palette, type and select Arduino: Board Manager. Search for esp32 and install the latest version.

    Install DevKit SDK

Problems and feedback

If you encounter problems, you can reach out to us from: