# 搖控窗戶

透過IoT平台控制門窗的開啟或關閉。

![](https://kittenbothk.readthedocs.io/en/latest/_images/door.jpg)

### 搭建說明書

{% file src="/files/1oJocnpUG33ayspbhcEY" %}

### 參考接線

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

### MakerCloud版參考程式

#### Micro:bit

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

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

#### 未來板

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

[參考程式](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/smart_home_iot/instructions/smartWindow_makercloud.sb3)

[參考圖檔下載](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/smart_home_iot/instructions/windowpic.rar)

### ObjectBlocks版參考程式

#### Micro:bit

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

#### 未來板

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

[參考程式](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/smart_home_iot/instructions/smartWindow_objectblocks.sb3)

[參考圖檔下載](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/smart_home_iot/instructions/windowpic.rar)

### Thingspeak版參考程式

#### Micro:bit

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

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

#### 未來板

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

[參考程式](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/smart_home_iot/instructions/smartWindow_thingspeak.sb3)

[參考圖檔下載](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/smart_home_iot/instructions/windowpic.rar)

#### 手動發布ThingSpeak信息控制窗戶

將以下網址複製到瀏覽器貼上，更改為field5，將數值改為想發布的數值(0/1/2)。

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

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

### 示範短片

{% embed url="<https://www.youtube.com/watch?v=nLj0LCgN1Uk>" %}

[示範短片](https://www.youtube.com/watch?v=nLj0LCgN1Uk)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/kits/iot_make_easy/instructions/window.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
