当前位置:网站首页>Setting the Arduino environment for tinyml experiments
Setting the Arduino environment for tinyml experiments
2022-06-24 17:23:00 【flavorfan】
Studying recently edx Of HarvardX TinyML 3 - deploying TinyML. This online course greatly reduces TinyML The steepness of the learning curve , It can be used as 《TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers》 A useful addition to . The original book is TensorFlow-Lite-Micro Outline of relevant design , But from the time of writing to the time of publication ,TFLM It has been developing , The code in the book will be different in practice ;《TinyML》 Nor did they explain the practical deployment very thoroughly , Personally, I think it lies in TFLM Adopt industrialized pipeline Dependency resolution ( Compilation of different hardware platforms 、 library 、 Tool chain dependency );《TinyML》 In the chapter related to hardware platform migration , There is no tool chain from the official industry pipeline Peel it off completely , Also led to the light reading can not be reproduced . Why dare you say that ? Handlebar TFLM Migration to nrf52840 On the Taobao development board , The book ignores nrf Construction of platform tool chain , And how to deal with tf Design of compiler system linkage . No energy to continue because of work TinyML My hobby .Harvard Online courses give an opportunity to continue , After all, watching video is better than watching code And practice to save a lot of effort .
Get down to business ,《Deploying TinyML》 Use “nano ble 33 sense” Development board and Arduino As the software and hardware environment of the experiment . The individual is VS-Code、Pio The fans of , But stones from other mountains can attack jade ,Arduino IDE It's unique . Recorded in this article TinyML Experimental Arudino IDE Environment settings for .
1. install Nano 33 BLE Sense Of Board File
1 open “Boards manager”.Tools --> board --> Boards Manager
2 Search for " Nano 33 BLE", choice “ Aruduino mbed-enabled Boards" Choose the version ”1.3.1
2. Install the required libraries
Arduino Another advantage of ecosystems is that they provide a large number of libraries for performing various tasks , For example, it interfaces with sensor modules or uses common algorithms to process data .
1 open “Library Manager”.Tools --> Manage Libraries
2 Install the corresponding version of the Library
Library Name | version |
---|---|
Arduino_TensorFlowLite | 2.4.0-ALPHA |
Harvard_TinyMLx | 1.0.0 |
Arduino_LSM9DS1 | 1.1.0 |
ArduinoBLE | 1.1.3 |
3. Set preferences
adopt File --> Preference Set up :
Show verbose output during: compilation and upload.
Enable code folding.
Display line numbers.
4.Dark The theme
If the Arduino Tired of the same white edit box . You can try Dark The theme . Refer to the following link
The effect is as follows .
边栏推荐
- H265 video streaming web page without plug-in player easywasmlayer Troubleshooting and solution of JS unable to set cover photo
- Meituan financial report: making money while burning money
- To redefine the storage architecture, Huawei has used more than five "cores"
- Solutions for RTSP video streaming played by several browsers
- Yiwen teaches you to understand the stack operation in go
- Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters
- FPGA systematic learning notes serialization_ Day8 [design of 4-bit multiplier and 4-bit divider]
- Industrial security experts talk about how to guarantee the safety of data elements in the rapid development of digital economy?
- H265/webvr video web page without plug-in player easyplayer Solution to the problem of cumulative delay of FLV video played by JS
- 主链系统发展解析
猜你喜欢
随机推荐
Release! Tencent IOA and Tencent sky screen were selected into the first batch of certified products of domestic digital trusted services
[playing with Tencent cloud] a solution to the impassability of cross-border access to foreign websites using Tencent cloud CVM
Create a green city and 3D visualization of digital twin natural gas stations
Research on clock synchronization performance monitoring system based on 1588v2 Technology
Zblog system realizes the tutorial of the number of articles published on the same day when the foreground calls
zblog判断某个插件是否安装启用的内置函数代码
With the solution, the nickname of the applet suddenly becomes "wechat user", and the avatar cannot be displayed?
Coding enhances security vulnerability scanning capability and helps the team "move left safely"
Kubernetes 1.20.5 helm installation Jenkins
Quick view of product trends in February 2021
zblog系统实现前台调用当天发布文章数量的教程
How much does the page length affect the ranking?
[play Tencent cloud] experience and development of game multimedia engine (II)
NFT元宇宙源码搭建解析与介绍
让UPS“印象派用户”重新认识可靠性
Today, Tencent safety and SAIC Group officially announced!
Robot toolbox matlab robotics toolbox
IBM:以现代化架构支撑AI与多云时代的企业数字化重塑
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
[MySQL practice] binlog, a sharp tool for problem analysis