> 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/aiupgrade/aitrafficlight.md).

# AI道路管理系統

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

### 組裝說明書下載

[組裝說明書下載](https://drive.google.com/drive/folders/1vPB1nm2KgCbI8fHl_VWVD3YiAxTgYQWc?usp=sharing)

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

### 參考程式

#### 訓練程式

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

[參考程式下載](https://makecode.microbit.org/_AqhbAq1U6KJ9)

#### 主程式

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

[參考程式下載](https://makecode.microbit.org/_9uwACpK50L0K)

### 模型玩法

首先使用訓練程式，按A錄下長者和兒童八達通，按B錄下成人八達通和背景，按A+B儲存模型。

然後用主程式，按下按鍵辨認，假如辨認到的是長者或兒童八達通就會給予較長時間。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sharinghub.kittenbot.hk/kits/inventorkit/aiupgrade/aitrafficlight.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
