15. Wildcard week
Assignment
Design and produce something with a digital process not covered in another assignment, documenting the requirements that your assignment meets, and including everything necessary to reproduce it. Possibilities include but are not limited to wildcard week examples.
Running TensorFlow Lite Micro on ESP32
Things That Failed
-
The official documentation of TensorFlow Lite Micro: https://www.tensorflow.org/lite/microcontrollers
-
Using the TensorFlow Arduino library: https://ai.google.dev/edge/litert/microcontrollers/library#use_the_arduino_library
- Installing from https://github.com/tensorflow/tflite-micro-arduino-examples,
containing hardware specific code for the
Arduino Nano 33 BLE Sense
board, and the code didn't compile. - Trying to generate the library using the build scripts in the project also failed.
- Installing from https://github.com/tensorflow/tflite-micro-arduino-examples,
containing hardware specific code for the
-
Generating projects using make files in the tflite-micro repository
-
Cloning the repo and run the following command:
make -f tensorflow/lite/micro/tools/make/Makefile generate_projects
didn't generate the correct library files Arduino can use.
-
-
Following the New Platform Supprot Guide
- Using the project generation python script to generate the library file tree could not produce correct source files on git for windows environment.
Things That Actually Worked
Arduino library: MicroTFLite
Below is a program running on an ESP32 developement board that predicts the coresponding sin value of the input number using a machine learning model. It's complied and uploaded with Arduino IDE utilzing the MicroTFLite library.