> 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/arduino-kai-yuan-ying-jian/dian-wei-qi-mo-kuai.md).

# 电位器模块

## 概述

电位器式传感器是一种常用的电子元件，广泛应用于各种电器和电子设备中。它是一种把机械的线位移和角位移输入量转换为与它成一定函数关系的电阻和电压输出的传感元件。

## 参数

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

## 接口说明

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

## 使用方式

![](/files/-LWVPW0FYlFZLXcESRNU)

## 示例代码

![](/files/-LWVPW0HMF4oPD_gwzWe)

![](/files/-LXNQbTlXTpq0uWS0Chl)

[电位器模块示例代码](http://www.haohaodada.com/show.php?id=956410)

## 原理图

{% file src="/files/-LrD9f7zvTcPmec3P4xN" %}
电位器模块原理图
{% endfile %}

## 尺寸说明

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

## 相关资源

[电位器数据手册](https://github.com/Haohaodada-official/docs/blob/master/jiao-xue-chan-pin/pdf/xin-pian-shuo-ming/电位器-电位器.PDF)

## 常见问题
