> 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/functional_modules/outdated/light.md).

# 光度感應器模組

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

這是一隻可以感應環境光度的模組，它返回的數值是類比形式。

數值範圍由0-1023，數值越大代表環境光度越高。

### 產品參數

* 工作電壓：3.3V\~5V
* 類型：類比模組
* 接口：3Pin防反插

### 接線教學

```
由於這是類比模組，所以只能使用robotbit的PIN0-2。（使用PIN0的話需要拔除蜂鳴器跳線帽）
```

#### Robotbit Shield

將光度感應器連接到Robotbit Shield的3PIN接口。

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

#### Robotbit

將光度感應器連接到Robotbit的針線和3V接口。

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

### MakeCode編程教學

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

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

#### 此模組可供Microbit和Meowbit使用。

**讀取環境光度數值編程**

#### Microbit:

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

#### Meowbit:

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

### KittenBlock編程教學

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

#### 加載Robotbit插件

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

**讀取環境光度數值編程**

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

### Mu Editor編程教學

#### 讀取環境光度數值編程

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


---

# 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/functional_modules/outdated/light.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.
