Hey guys, I am trying to install TensorflowLite on Arduino IDE. I want to download from the link below, but however i try to extract+copy or add .zip file, they don't seem to work. Can anyone help me on this?
Hi @anhkhoi041. That is not an Arduino library, so it is normal and expected that it will fail to install.
The Arduino library is here:
The first thing you should take note of is this statement in the documentation:
https://github.com/tensorflow/tflite-micro-arduino-examples#compatibility
This library is designed for the
Arduino Nano 33 BLE Senseboard. The framework code for running machine learning models should be compatible with most Arm Cortex M-based boards, such as theRaspberry Pi Pico, but the code to access peripherals like microphones, cameras, and accelerometers is specific to theNano 33 BLE Sense.
So if you have a Nano 33 BLE Sense board, the library should be reasonably easy to use. But if you have any other board, you must expect to have a very challenging time using the library. In this case, you might want to look around for a library that explicitly supports the board you are using.
Assuming you do want to use the library, the next thing to note is that the library developers were not kind enough to add it to Library Manager to make the installation simple, so you will need to manually install the library. I'll provide instructions you can follow to do that:
- Click the following link to open the library's GitHub repository homepage in your web browser:
https://github.com/tensorflow/tflite-micro-arduino-examples - Click the "Code ▾" button you see on that page.
- Select Download ZIP from the menu.
A download of the ZIP file of the library will start. - Wait for the download to finish.
- Select Sketch > Include library > Add .ZIP Library from the Arduino IDE menus.
The "Select the zip file containing the library you'd like to add" dialog will open. - Select the downloaded file from the dialog.
- Click the "Open" button.
The dialog will close. - Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
ⓘ Successfully installed library from ...
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.