# RGB灯模块

## 概述

RGB模块主要实现LED灯的各种颜色、亮度的控制，产生绚丽灯光的效果。RGB模块体积小，亮度高，拥有完美的三基色，通过组合，可以调制出各种颜色。为你的Arduino项目增添各种绚丽的动态显示。我们采用优质的RGB LED灯珠，发光角度大，并利用其内部的反射，达到最大的光藕效果。

## 参数

* 尺寸：48x24mm
* 工作电压：+3.3-5V
* 接口类型：XH2.54mm-3P
* 引脚定义：1-地 2-电源 3-信号

## 接口说明

* 可用端口：2、3、4、9、10、11、12、13、A0、A1、A2、A3

## 使用方式

![](/files/-LWVPW_l1SXubgQlM4g_)

## 示例代码

![](/files/-LWVPW_nzqTa0QDE4I3u)

![](/files/-LWVPW_pAwmLyrnwRmgM)

[RGB灯模块示例代码](http://www.haohaodada.com/show.php?id=956133)

## 原理图

{% file src="/files/-LrDA1r1pJXcZ64I5yqd" %}
RGB灯模块原理图
{% endfile %}

## 尺寸说明

![](/files/-LWVPVY3e-Jx5ZBpQh7a)

## 常见问题


---

# 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://docs.haohaodada.cn/jiao-xue-chan-pin/arduino-kai-yuan-ying-jian/rgb-deng-mo-kuai.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.
