Building your First IoT Application with Flask and Micro-Python
summary
Builds a working pipeline: an ESP32 dev kit flashed with MicroPython, edited via Visual Studio Code + Pymakr/mp; uses Pin and ADC to read a potentiometer every second, connects as WLAN station, and sends GET requests with microrequests — must call response.close or the device runs out of sockets (observed limit ~13). Runs a Flask app (static IP) that records readings into SQLite via Flask-SQLAlchemy; readings appear in the web table and .db file. Suggests switching to POST, MQTT/broker, cloud, dashboards, or edge ML next.
AI-written summary · about
chapters (21)
- 0:00Introduction to IoT workshop
- 1:06Workshop flow overview
- 2:09What is IoT and its power
- 2:52Setting up MicroPython environment
- 4:16Blinking LED with MicroPython
- 5:59Connecting to Wi-Fi with MicroPython
- 7:23Understanding boot.py and main.py
- 8:31Using ADC with MicroPython
- 9:34IoT protocols overview
- 10:59Making HTTP requests with MicroPython
- 11:46Setting up Flask application
- 13:08Flask app structure and templates
- 14:54Testing Flask app manually
- 15:58MicroPython class for sensor data
- 18:03MicroPython main function
- 19:50Viewing sensor data in Flask
- 20:14Adding SQLite database
- 21:40Saving data to database
- 22:45Exploring SQLite database
- 23:51Next steps for your application
- 26:02Future possibilities and Q&A
