Micro:bit CreateAI
利用移動和機器學習 在您的 BBC micro:bit 上建立 AI
以您自己的移動數據來訓練機器學習模型並且在您的 micro:bit 上運行
4) 開始收集 數據樣本
a) 命名動作
b) 對於每一個動作錄
製至少 3 至 5 個數
據樣本,每一個樣
本是 1 秒鐘長度。
c) 檢查樣本的線性圖
表,刪除不合標準 的樣本。
d) 有需要增加樣本。
e) 按「新增動作」加
新動作,並重覆 a – d 步驟。
5) 按「訓練模型」。
6) 測試模型
7) 如果不滿意,按「編輯數據樣本」再優化樣本及再訓練模型。
8) 如果滿意,按「在 Makecode 內編輯」。
9) 加入「廣播 radio 」將 AI 結果傳送到控制 fischertechnik 工程模型的 micro:bit 。
10)下載 ML 程式到一隻 V2 的 micro:bit ( 動作收集 micro:bit) 。
11)編程另一隻接收的 micro:bit ( 根據 AI 結果,控制 fischertechnik 工程模型)
- Waving - Clapping - Stop Sender
Show Display Pict
MB face out (toward self)
Waving and stop Waving
Clapping
(b) Show Display Pict
(b) Fischertechnik light and Fan
Note what are the 3 ML Block Triggers generated?
DEMO 1
- Start Waving – light ON
- Stop Waving – Light OFF
- Clapping – Motor ON - Clapping – Motor OFF
(ML) Duration = Stop - Start
To create or edit
Sender
Micro:bit (c)
MB (V2) face out - Waving, - Clapping, - Left, - Right - Centre
micro:bit (d) Show Display Pict Point down (green Light)
Connect to trainer micro:bit
After connected, real-time data shown.
AI Model trained last time.
Added and Trained 2 new actions.
Waving/Clapping
Thumb Left
Thumb Right
Design your Hand Position
Examples:
- I use left hand
- Hold the microbit every time the same
- (or use wearable belt) with battery
Design your Movements
Examples:
- I use left hand
- Hold the microbit every time the same
- (or use wearable belt) with battery
Front-rotate 90 degree
Front-rotate 180 degree
Big Movements Running Dancing JUMPING
Example Project 1 – Good Grandson (
老人家容易跌倒,
佢。
The Code-a-Key backpack enables the micro:bit to trigger up to 6 keypresses and full mouse control on the back of your Makey Makey.
• Make-a-Sketch
• Bouncy Face
https://makeymakey .com/pages/plug-an d-play-makey-make y-apps \
Makey Makey – code-a-key Backpack (micro:bit)
Sender micro:bit
DEMO 3
Maker Makey
Make-aSketch
Micro:bit (e)
MB (V2) face out - CreateAI - Left, - Right - Up - Down - W (not used)
Receiver micro:bit
micro:bit (f)
Left – f Right –d Up – a Down s
Colour – G Reset – space
DEMO 4
Makey Makey
Runner Nil (G)
Sound Control – W On Loud
DEMO 5
Makey Makey
Bouncy Face (H)
MB face out Tilt LR (i)
Left – a Right - S