Arduino PlatformIO: Five Minute Zero to Hero - From Install to Compile to Flashing

Published: 27 October 2020
on channel: Dave's Garage
19,777
1.3k

Curious about PlatformIO and how to install and run it for Arduino development? Join Dave in his Shop as he first installs, builds and flashes with the Arduino IDE before he shows you how to add PlatformIO to the mix!

A good "Boards Manager" Url to use in Preferences is:
https://dl.espressif.com/dl/package_e..., http://arduino.esp8266.com/stable/pac...

The Heltec ESP32 module used in the video is available at the following link:
https://www.amazon.com/HiLetgo-Displa...

Software Prerequisites: Install the following!

(1) Install the Arduino DESKTOP IDE (not the Web Editor) from https://www.arduino.cc/en/Main/Software

Even though we will not be actively using their IDE, the Arduino software must be installed on the machine even though we'll be using VS Code. Thus, we install the desktop IDE and then never use it. You may wish to launch it and install the ESP32 platform to make it useful for quick scratch projects, etc.

(2) Install Visual Studio Code from
https://code.visualstudio.com/download

Visual Studio Code will be our editor and IDE.

(3) Install the PlatformIO IDE
https://platformio.org/install

PlatformIO IDE is an "environment" for VSCode that includes the compilers, tools, and everything you need to compile, build, and run projects for many systems. The Arduino ESP32 is but one of those, so we must install the ESP32 platform within PlatformIO:

(4) Within PlatformIO/VSCode, install the Espressif ESP32 Platform for Arduino

With those four, you should be able to go to the PlatformIO home page in VSCode and click on "New Project". Enter a project name, select "ESP32 Dev Module" as the board, and Arduino as the framework. You should be greeted with a working, building, deployable project consisting of a single file, main.cpp


Watch video Arduino PlatformIO: Five Minute Zero to Hero - From Install to Compile to Flashing online without registration, duration hours minute second in high quality. This video was added by user Dave's Garage 27 October 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 19,777 once and liked it 1.3 thousand people.