> For the complete documentation index, see [llms.txt](https://docs.haohaodada.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.haohaodada.cn/jiao-xue-chan-pin/nova-module/hui-du-chuan-gan-qi-mo-kuai.md).

# 灰度传感器模块

## 概述

NOVA的灰度模块具有微型化、智能化、多功能化的特点。它通过颜色采集，可以感知任意两种颜色然后输出相应的电压值。通过采集的顺序可以输出量可以根据需要在模拟量和数字量之间切换。采集到的颜色具有断电保持特性，如果是同样的两种颜色的分辨无需再次采集可直接使用。灵活的颜色采集方式可实现一次采集多次使用，亦可根据需要随时采集。

## 参数

* 尺寸：45x28mm
* 检测距离：8-20mm
* 电源要求：+3.3-5V
* 接口模式：2510-4p
* 引脚定义：1、2-控制端 3-电源 4-地

## 接口说明

* 可用端口： C0、C1、M0、M1、M2、M3

## 使用方式

![](/files/-LWJlL-OiaGC_eLjit9i)

## 示例代码

![](/files/-LWJlL-QT4E8HHftYyNS)

[灰度传感器模块示例代码](http://www.haohaodada.com/show.php?id=949877)

## 原理图

{% file src="/files/-LrCU43TJpsSRmMAtD4i" %}
灰度传感器模块原理图
{% endfile %}

## 尺寸说明

![](/files/-LWJlL-S_xDegX840KIt)

## 相关资源

{% file src="/files/-LrHIfJh2NsjlHAdmXn5" %}
SN74LVC1G14DBVR芯片说明
{% endfile %}

## 常见问题


---

# 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://docs.haohaodada.cn/jiao-xue-chan-pin/nova-module/hui-du-chuan-gan-qi-mo-kuai.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.
