- ESP32-S2 3V to sensor VIN (red wire)
- ESP32-S2 GND to sensor GND (black wire)
- ESP32-S2 SCL to sensor SCL (yellow wire)
- ESP32-S2 SDA to sensor SDA (blue wire)
CircuitPython Installation
You will need to have CircuitPython installed and running. If you haven't set up CircuitPython on a board with an ESP32-S2 processor, the process is a little bit different than other boards.
The first step involves installing the Bootloader. We recommend starting with the Install UF2 Bootloader page of the ESP32-S2 Metro guide. After you have the bootloader installed, the other step is installing CircuitPython itself.
Library Installation
To use the internet-connectivity built into your ESP32-S2 with CircuitPython, you must first install a number of libraries.
Adafruit CircuitPython Library Bundle
Download the Adafruit CircuitPython Bundle. You can find the latest release here:
Download the adafruit-circuitpython-bundle-version-mpy-*.zip bundle zip file, and unzip a folder of the same name. Inside you'll find a lib folder. The entire collection of libraries is too large to fit on the CIRCUITPY drive. Instead, add each library as you need it, this will reduce the space usage but you'll need to put in a little more effort.
At a minimum we recommend the following libraries, in fact we more than recommend. They're basically required. So grab them and install them into CIRCUITPY/lib now!
- adafruit_minimqtt - MQTT library required for communicating with the MQTT Server
- adafruit_shtc3.py - Temperature/Humidity Sensor library
Page last edited March 08, 2024
Text editor powered by tinymce.