-
1Install TensorFlow Lite Library
Install TensorFlow Lite Library
Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at https://github.com/ambiot/ambd_arduino/tree/master/Arduino_zip_libraries. Follow the instructions at https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries to install it. Ensure that the patch files found at https://github.com/ambiot/ambd_arduino/tree/master/Ameba_misc/ are also installed.
-
2Open Hello World Example
Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “hello_world”.
-
3Upload code and run
Upload the code and press the reset button on the Ameba board once the upload have completed.
Connect the LED to digital pin 10 and ground, ensuring that the polarity is correct. You should see the LED fade in and out rapidly. -
4Outcome
In the Arduino serial plotter, you can see the output value of the Tensorflow model plotted as a graph, it should resemble a sine wave.
You can take a look at the outcome at the back of the video as well.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.