This workshop involves programming ESP32 modules to take on different responsibilities as part of a larger network. We use PlatformIO as the development environment.
We assume you're using a Mac lappy with Brew installed.
You (or your pair) will need:
- An ESP32 module
- A laptop with a regular USB-A port (or USB-A dongle)
- Appropriate jumper cables and hardware for your project
Install CP210x drivers for the ESP32 modules.
For the next steps, feel free to use either Visual Studio Code or CLion.
- Install VS Code (if you don't already have it)
brew cask install visual-studio-code
- Install PlatformIO IDE (or search for the extension in VS Code)
code --install-extension platformio.platformio-ide
- Follow the PlatformIO VS Code Quick Start guide. When setting up a new project, use the following info:
- Board: Espressif ESP32 Dev Module
- Framework: Arduino
- Once you have completed the steps in the Quick Start Guide, delete the contents of the file
src/main.cpp
and replace it with the code from our Hello World example. - Build the code with the
✓
icon and upload the code with the➡
icon (both in the footer menu bar). You should now see a blue LED blinking on the ESP32 module.
Once you have the ESP32 module drivers installed and PlatformIO set up and ready, you can start with one of these projects.