TensorFlow Lite - Hello World
材料準備
AmebaD [AMB21 / AMB22 / AMB23 / BW16] x 1
LED x 1
範例準備
步驟
从以下网址下载TensorFlow Lite for Microcontrollers的Ameba版本 https://github.com/ambiot/ambd_arduino/tree/master/Arduino_zip_libraries。
请按照以下说明进行安装操作 https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries。
确保在以下位置找到patch文件并安装 https://github.com/ambiot/ambd_arduino/tree/master/Ameba_misc/。
Open the example, "Files" → "Examples" → “TensorFlowLite_Ameba” →
“hello_world”
.
上傳代碼並在上傳完成後按Ameba上的重置按鈕。
將LED連接到引腳10並接地,確保極性正確。 您應該看到LED快速淡入和淡出。
在Arduino串行繪圖儀中,您可以看到Tensorflow模型的輸出值以圖形方式繪製,它應該類似於正弦波。
範例説明
有關TensorFlow Lite for Microcontrollers的更多信息,請參考以下網址: https://www.tensorflow.org/lite/microcontrollers 。