Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3ff5747

Browse files
Merge pull request #836 from arduino/karlsoderby/tflow-article-update
[MKC-824] Update TFLite Tutorial
2 parents 39bdbb4 + b4915a7 commit 3ff5747

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

‎content/hardware/03.nano/boards/nano-33-ble-sense-rev2/tutorials/get-started-with-machine-learning/get-started-with-machine-learning.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ software:
2020
- Google Colab
2121
---
2222
***This post was originally published by Sandeep Mistry and Dominic Pajak on the [TensorFlow blog](https://medium.com/tensorflow/how-to-get-started-with-machine-learning-on-arduino-7daf95b4157).***
23+
2324
## Introduction
2425

26+
***Important notice! The [TensorFlow Lite Micro Library](https://github.com/tensorflow/tflite-micro-arduino-examples) is no longer available in the Arduino Library Manager. This library will need to be manually downloaded, and included in your IDE.***
27+
2528
[Arduino](https://www.arduino.cc/) is on a mission to make machine learning simple enough for anyone to use. We’ve been working with the TensorFlow Lite team over the past few months and are excited to show you what we’ve been up to together: bringing TensorFlow Lite Micro to the [Arduino Nano 33 BLE Sense Rev2](https://store.arduino.cc/arduino-nano-33-ble-sense-rev2). In this article, we’ll show you how to install and run several new [TensorFlow Lite Micro](https://www.tensorflow.org/lite/microcontrollers/overview) examples that are now available in the [Arduino Library Manager](https://www.arduino.cc/en/guide/libraries).
2629

2730
The first tutorial below shows you how to install a neural network on your Arduino board to recognize simple voice commands.
@@ -82,7 +85,10 @@ On the machine learning side, there are techniques you can use to fit neural net
8285

8386
TinyML is an emerging field and there is still work to do – but what’s exciting is there’s a vast unexplored application space out there. Billions of microcontrollers combined with all sorts of sensors in all sorts of places which can lead to some seriously creative and valuable TinyML applications in the future.
8487

85-
## TensorFlow Lite for Microcontrollers Examples
88+
## TensorFlow Lite for Microcontrollers Examples
89+
90+
***The TensorFlow Lite examples are currently not compatible with the [Arduino Nano BLE Sense Rev2](/hardware/nano-33-ble-sense-rev2) board.***
91+
8692
The inference examples for TensorFlow Lite for Microcontrollers are now packaged and available through the Arduino Library Manager making it possible to include and run them on Arduino in a few clicks. In this section we’ll show you how to run them. The examples are:
8793

8894
- micro_speech – speech recognition using the onboard microphone
-79.9 KB
Binary file not shown.
801 KB
Loading[フレーム]
841 KB
Loading[フレーム]
-58.3 KB
Binary file not shown.

‎content/hardware/03.nano/boards/nano-33-ble-sense/tutorials/get-started-with-machine-learning/get-started-with-machine-learning.md‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ We’re excited to share some of the first examples and tutorials, and to see wh
4848
- An [Arduino Nano 33 BLE Sense](https://store.arduino.cc/nano-33-ble-sense) board
4949
- A Micro USB cable to connect the Arduino board to your desktop machine
5050
- To program your board, you can use the [Arduino Web Editor](https://www.arduino.cc/en/main/software) or install the [Arduino IDE](https://www.arduino.cc/en/main/software). We’ll give you more details on how to set these up in the following sections
51+
- [TensorFlow Lite Micro Library](https://github.com/tensorflow/tflite-micro-arduino-examples) (download only available via GitHub).
5152

5253
The Arduino Nano 33 BLE Sense has a variety of onboard sensors meaning potential for some cool TinyML applications:
5354

@@ -127,15 +128,19 @@ We’ve adapted the tutorial below, so no additional hardware is needed – the
127128

128129
## IDE Setup
129130

130-
**1.** First, let's make sure we have the drivers for the Nano 33 BLE boards installed. If we are using the online IDE, there is no need to install anything, if you are using the offline IDE, we need to install it manually. This can be done by navigating to **Tools > Board > Board Manager...**, search for **Arduino Mbed OS Nano Boards**, and install it.
131+
**1.** First, let's make sure we have the drivers for the Nano 33 BLE boards installed. Select the board manager in the left panel, and search for **"Nano 33 BLE"** and install the **"Arduino Mbed OS Nano Boards"**.
131132

132-
![Install Nano BLE board](assets/BoardsManager.png)
133+
![Install Nano BLE board](assets/install-board.png)
133134

134-
**2.** Also, let's make sure we have all the libraries we need installed. If we are using the online IDE, there is no need to install anything. If we are using the offline IDE, this can be done by navigating to **Tools > Manage libraries...**, search for **Arduino_TensorFlowLite** and **Arduino:LSM9DS1**, and install them both.
135+
**2.** Also, let's make sure we have all the libraries we need installed. The **Arduino_LSM9DS1** can be installed in the library manager in the IDE:
135136

136-
![Install the necessary libraries](assets/libManager.png)
137+
![Install Arduino_LSM9DS1](assets/install-lib.png)
137138

138-
There are more detailed [Getting Started](https://www.arduino.cc/en/Guide/NANO33BLESense) and [Troubleshooting](https://www.arduino.cc/en/Guide/Troubleshooting) guides on the Arduino site if you need help.
139+
**3.** Finally, we need to download the [TensorFlow Lite Micro Library](https://github.com/tensorflow/tflite-micro-arduino-examples) from the repository. It is not available in the library manager, so it needs to be installed manually.
140+
141+
Once the `.zip` has been downloaded, in the Arduino IDE, choose **Sketch > Include Library > Add .ZIP Library** and select the file.
142+
143+
You may need to restart the IDE for it to work.
139144

140145
## Streaming Sensor Data From the Arduino Board
141146

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /