Implementation of TinyML in pure (micro)Python on ESP32. The setup collects accelerometer & gyro data. Uses ML algorithm (Random Forest Classifier) to detect gestures from the collected (acceleration & gyro) time-series data. It detects 3 types of gestures:
- Movement along X axis
- Movement along Y axis
- Circle Movement
It sends the collected data and detected gestures to backend that saves data into a database.
Blog: TinyML: Machine Learning on ESP32 with MicroPython
- v 1.14 for ESP32 (download)
- ESP32-devkitC
- MPU6500
- breadboard
- jumper wires
Pin details
SCL = pin 22
SDA = pin 21
- Check the port. On MacOS use
ls /dev/cu.*. Linux, Windows and more info on establishing connection on this site Espressif - Establish Serial Connection with ESP32 - Flash the ESP32 - Follow Installation instructions here ESP32
- For convenience use Pymakr VSCode extension Pymakr VSCode
- Upload Python scripts to ESP32 using Pymakr Extension
