ocrobot:peripheral_module:potentiometer:main
电位器模块
电位器模块用于调节输入模拟量。
特点
- 四个M2.5螺丝孔
- 平面外壳固定设计
- PH2.0防呆接口
参数
| < 30% 20% 80% > | |
| 长 | 33.02mm(1300mil) |
|---|---|
| 宽 | 33.02mm(1300mil) |
参考图片
示例程序
/* AnalogReadSerial 读取A0口的模拟输入,并显示在串口监视器 */ void setup() { Serial.begin(9600);// 初始化串口通信速率为9600 : } void loop() { int sensorValue = analogRead(A0); // 读取A0口输入: Serial.println(sensorValue, DEC); // 打印: delay(1); // 延时1毫秒 }
下载
数据手册: 原理图:
ocrobot/peripheral_module/potentiometer/main.txt · 最后更改: 2025/10/11 02:55 由 127.0.0.1
