A series of labs to build a smart thermostat using MicroPython. Get started by viewing the labs.
- Introduction to microcontrollers and MicroPython programming language
- Writing code to read values from internal and external sensors
- Building a user interface with the built-in display and touch inputs
- Communicating with other devices as part of an internet of things (IoT)
- WeMos Lolin32 OLED ESP32 microcontroller (or similar clone).
- Micro-B USB cable for attaching microcontroller board to host computer.
- DHT11 (or DHT22) temperature / humidity sensor.
- Host computer with USB port capable of downloading and installing software below.
Chromebooks used in schools often have policies that prevent installation of software making them unsuitable as a host computer. Windows, Linux, or Mac should work, but check with the school's computer specialist to be sure you can install software and download firmware files from the internet.
- Thony Editor installed on host computer.
- MicroPython firmware for ESP32
- The host computer will need access to the internet for downloading host software, MicroPython firmware and modules.
- The microcontroller will need WiFi access for the internet of things (IoT) labs.
School networks may not be set up to allow access from the microcontroller. It may be possible to use an inexpensive home internet router for the purpose of connecting the microcontrollers to an isolated network.