Files

120 lines
4.2 KiB
Markdown
Raw Permalink Normal View History

2020-03-18 19:54:24 +08:00
# ANGLE
2018-12-25 16:04:58 +08:00
<el-tag effect="plain">SKU:U005</el-tag>
2020-03-19 14:40:22 +08:00
2020-10-27 23:34:31 +08:00
<div class="product_pic"><img src="assets/img/product_pics/unit/angle/unit_angle_01.webp"></div>
2018-12-25 16:04:58 +08:00
## 描述
2019-05-06 20:50:40 +08:00
**ANGLE** 是一款旋钮开关输入Unit,其内置了一个**10K**的电位器,通过旋转旋钮能够改变其内部的电阻值.
电位器是具有三个引出端、阻值可按某种变化规律调节的电阻元件.根据此原理,ESP32通过端口B获取电位器输出电压的大小,再经过AD转换得到对应的映射数据.在"音量,亮度调节,或是电机调速"等需要连续信号控制的应用场景中,Angle Unit会是一个不错的选择.
2020-12-10 19:02:52 +08:00
在M5Stack产品体系中,通场HY2.0-4P接口的颜色代表其使用的通信协议类型.
2019-05-06 20:50:40 +08:00
- 黑色: 单总线 (AD ,DA ,GPIO)
- 红色: I2C
- 蓝色:UART
- 白色:其他(取决于主设备)
2019-04-22 09:31:35 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/angle/unit_angle_03.webp">
2019-04-22 09:31:35 +08:00
2019-05-06 20:50:40 +08:00
## 产品特性
2018-12-25 16:04:58 +08:00
2020-12-10 19:02:52 +08:00
- HY2.0-4P 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc) .
2019-05-06 20:50:40 +08:00
- 2x LEGO 兼容孔
2019-04-17 20:04:52 +08:00
## 包含
- 1x ADC Unit
2020-12-10 19:02:52 +08:00
- 1x HY2.0-4P线缆
2018-12-25 16:04:58 +08:00
2020-04-02 11:05:52 +08:00
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>输出电压</td>
<td>0 ~ 2500mV</td>
</tr>
2020-05-28 14:23:18 +08:00
<tr>
<td>净重</td>
<td>6g</td>
</tr>
<tr>
<td>毛重</td>
<td>23g</td>
</tr>
<tr>
<td>产品尺寸</td>
<td>32*24*22mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>73*46*30mm</td>
</tr>
2020-04-02 11:05:52 +08:00
</table>
2019-06-11 19:20:48 +08:00
## EasyLoader
2018-12-25 16:04:58 +08:00
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
2019-06-13 18:06:23 +08:00
<div class="easyloader-box">
<div style="background-color:white;">
2020-04-08 14:09:44 +08:00
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_Angle_UNIT_With_M5Core.exe">Windows</a>
2020-04-14 17:55:39 +08:00
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_Angle_UNIT_With_M5Core.dmg">MacOS</a>
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/Angle_UNIT.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
<p>显示旋钮模拟值数据.</p>
</div>
</div>
</div>
2019-06-11 19:20:48 +08:00
2020-04-02 11:05:52 +08:00
### 管脚映射
<table>
2020-12-10 19:02:52 +08:00
<tr><td>M5Core(PORT B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
2020-04-02 11:05:52 +08:00
<tr><td>ANGLE Unit</td><td>Sensor Pin</td><td>/</td><td>5V</td><td>GND</td></tr>
</table>
## 原理图
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/angle_sch.webp">
2020-04-02 11:05:52 +08:00
2020-02-12 16:55:19 +08:00
## 案例程序
2019-06-06 20:01:45 +08:00
2021-02-05 16:54:45 +08:00
### 1. Arduino
2018-12-25 16:04:58 +08:00
2021-02-05 16:54:45 +08:00
- [请点击此处获取Arduino示例程序](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ANGLE)
2019-02-22 15:38:20 +08:00
2018-12-25 16:04:58 +08:00
### 2. UIFlow
2021-02-05 16:54:45 +08:00
- [请点击此处获取UIFlow示例](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ANGLE/UIFlow)
2018-12-25 16:04:58 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/unit_example/ANGLE/example_unit_angle_03.webp">
2018-12-25 16:04:58 +08:00
2020-02-11 18:00:45 +08:00
<script>
2020-02-12 17:30:08 +08:00
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/angle-unit';
2020-02-11 18:00:45 +08:00
2020-02-12 17:30:08 +08:00
anchor_search(purchase_link);
2020-02-11 18:00:45 +08:00
scrollFunc();
</script>