> 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-zha-men.md).

# IoT智能閘門

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

### 組裝說明書下載

[下載組裝說明書](https://kittenbothk.readthedocs.io/en/latest/Kits/classroom_inventor/iot_instructions/images/gate.pdf)

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

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

{% embed url="<https://github.com/kittenbothk/kittenbothk/raw/master/Kits/classroom_inventor/iot_instructions/images/gate.pdf>" %}

[參考程式](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/classroom_inventor/iot_instructions/images/gate.pdf)

### MakerCloud平台設定

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

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

### 模型玩法

1. 填入Wifi登入資料與MakerCloud主題名稱。
2. 當有人接近超聲波測距時，閘門就會打開。
3. 裝置會將經過閘門的人數上傳到物聯網平台。

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

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

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

### ObjectBlocks平台設定

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

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

### 模型玩法

1. 填入Wifi登入資料、ObjectBlocks登入資料與ObjectBlocks主題名稱。
2. 當有人接近超聲波測距時，閘門就會打開。
3. 裝置會將經過閘門的人數上傳到物聯網平台。
