> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/kits/inventorkit/iotupgrade/iot-zhi-neng-men-suo.md).

# IoT智能門鎖

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

### 組裝說明書下載

[下載組裝說明書](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/classroom_inventor/iot_instructions/images/lock.pdf)

![../../../\_images/lock\_wire.png](https://kittenbothk.readthedocs.io/en/latest/_images/lock_wire.png)

### 參考程式(MakerCloud版本)

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

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

### MakerCloud平台設定

![../../../\_images/lock\_makercloud1.png](https://kittenbothk.readthedocs.io/en/latest/_images/lock_makercloud1.png)

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

### 模型玩法

1. 填入Wifi登入資料與MakerCloud主題名稱。
2. 在MakerCloud發佈文字訊息”OPEN”或”CLOSE”，模型就會鎖上或解鎖門鎖。

### 參考程式(ObjectBlocks版本)

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

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

### ObjectBlocks平台設定

![../../../\_images/lock\_objectblocks1.png](https://kittenbothk.readthedocs.io/en/latest/_images/lock_objectblocks1.png)

![../../../\_images/lock\_objectblocks2.png](https://kittenbothk.readthedocs.io/en/latest/_images/lock_objectblocks2.png)

### 模型玩法

1. 填入Wifi登入資料、ObjectBlocks登入資料與ObjectBlocks主題名稱。
2. 在ObjectBlocks發佈文字訊息”OPEN”或”CLOSE”，模型就會鎖上或解鎖門鎖。
