01-Learn Arduino Tutorial Project - Beginner DIY First Steps with an RGB LED - Tiki Fire Umbrella

11 months ago
145

150123 Like and subscribe. This is an archive, check the link in the end if you are owner. Arduino Project Tutorial for Beginners. Dave uses Visual Studio Code and the Arduino SDK to light an RGB LED, then uses PWM to color cycle it. Follow alongside with the ChipCam so you can see what's happening and work with Dave right in the editor where you can see the code. This episode introduces the ESP32 microcontroller as an Atmel replacement.

Link to ESP32 hardware module if needed: http://ezsbc.com/

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
https://rumblevideoarchive.wordpress.com/

Loading comments...