# 智能模擬UV消毒燈說明書

在抗疫期間，為物件消毒是重要的動作，這案例是模擬了紫外線消毒燈的操作。

![](https://kittenbothk.readthedocs.io/en/latest/_images/uvlight1.png)

### 教材資源包下載

包括說明書： [資源包下載地址](https://bit.ly/AIHealthCareSetBuildingGuide)

### 參考接線

![](https://kittenbothk.readthedocs.io/en/latest/_images/uvlightcon.png)

### 參考程式

#### 訓練程式

{% embed url="<https://makecode.microbit.org/_gPw5m292F9Eo>" %}

[訓練程式](https://makecode.microbit.org/_gPw5m292F9Eo)

#### 辨認程式

{% embed url="<https://makecode.microbit.org/_1x7R9f0FeAMW>" %}

[參考程式](https://makecode.microbit.org/_1x7R9f0FeAMW)

### 模型玩法

#### 訓練程式

1. 打開電源後，等待10秒讓KOI完全開機。
2. 按下A按鍵，對第一件物件進行訓練，重複大約3次。
3. 按下B按鍵，對第二件物件進行訓練，重複大約3次。
4. 同時按下A和B按鍵，儲存模型檔案。

#### 辨認程式

1. 打開電源後，等待10秒讓KOI完全開機。
2. 按A鍵啟動消毒燈。
3. 將訓練過的物件放在鏡頭面前，辨識到之後消毒燈會點亮和擺動。
