ESP32

Overview of the ESP32 DevKit DOIT V1

Overview

See this excellent overview of the ESP32

Devkit vs ESP32 module
Devkit vs ESP32 module

ESP32 Installation and Setup

Install Miniconda and packages

You need to use Python on your PC to program the ESP32. This assumes that you already have miniconda installed. For more instructions, see here for detailed instructions.

MicroPython Intro

What is Python?

The #1 Programming language*

  • Python: 14.2%
  • Matlab: 0.8%
  • Labview: 0.14%

* as of March 2022, tiobe.com

Using the Pymakr Extension in VSCode

pymaker

  1. install pymakr preview

    code --install-extension Pycom.pymakr-preview
    

Getting Started with Pymakr (from here)

  1. In File explorer(ctrl+shift+e)
    1. add or create a project folder for holding your micropython code (suggestion: name it “micropython”). Consider creating one in your “code” git repository.
  2. navigate to “Pymakr: Projects” tab in the workspace explorer window on the left
    1. select “create project”. Select the same code folder as above and specify a project name (like “hello-world”). Select the option to create a subdirectory with the micropython folder.

VSCode Setup and Usage

Installation

Download from here

Installation Options

  • Accept the default installation path
  • keep “Register Code as an editor for supported file types” checked
  • keep “Add to PATH” checked
  • other options: set to your preference

Ubuntu-specific

cd ~/Downloads
sudo dpkg -i code_1.7* #.... tab complete
sudo apt install -yf

Video

Thanks to Wyatte for this helpful video

Working with Thonny

File

File Menu
File Menu