add docs of PLC

This commit is contained in:
LiHuashen
2019-01-27 17:10:17 +08:00
parent 4e6a21d88b
commit 58837b5211
10 changed files with 77 additions and 62 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 KiB

After

Width:  |  Height:  |  Size: 413 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 KiB

+19 -14
View File
@@ -1,24 +1,27 @@
# PLC-Base
<img src="assets/img/product_pics/module/module_plc_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_plc_02.png" width="30%" height="30%">
<img src="assets/img/product_pics/base/plc_01.png" width="30%" height="30%"><img src="assets/img/product_pics/base/plc_04.png" width="30%" height="30%"><img src="assets/img/product_pics/base/plc_03.png" width="30%" height="30%">
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-PLC-Proto-Industrial-Board-Module-Contains-RS485-ACS712-5B-Programmable-Logic-Controller-Relay-with-Magnet/3226069_32874916056.html?spm=2114.12010615.8148356.2.4c5b68a1WZ8sjd)**
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-PLC-Proto-Industrial-Board-Module-Contains-RS485-ACS712-5B-Programmable-Logic-Controller-Relay-with-Magnet/3226069_32874916056.html?spm=2114.12010615.8148356.2.4c5b68a1WZ8sjd)**
## Description
The M5Stack PLC Module is a prototye industrial board, including RS484
adapter and electricity meter module.
**<mark>PLC</mark>** is a Base for an industrial application. This base has power conversion and TTL level to RS485 level function so that you can realize 9-24V voltage application with it. Realize TTL level to RS485 level output function after soldering the RS485 adapter board to this base core board.
With DC9~24V power input, PLC-Proto motherboard reserved 6Pin or 4Pin
relay output, digital input, communication interface etc.
**The current sensor (ACS712TELC-05B)** is also integrated on **the RS485 adapter board** for current monitoring.
<img src="assets/img/product_pics/base/plc_02.png" width="60%" height="60%">
The following picture shows this base core board and the RS485 conversion board. You can connect the specified pin on the M-Bus bus to the 6 Pin 3.96H terminal on the right by soldering the wire. And It is also possible to solder the RS485 converter board to the lower right of the core board to achieve serial port 2 (UART2) to RS485 level. The RS485 output interface is the 4 Pin 3.96H terminal block below the core board.
<img src="assets/img/product_pics/base/plc_07.png">
## Feature
- Free DIY
- Programmable Logic Controller
- Individual package weight: 0.1kg (0.22lb.)
- Support 9-24V voltage input
- Individual package weight: 0.1kg
- Package size: 5cm \* 5cm \* 5cm (1.97in \* 1.97in \* 1.97in)
## Include
@@ -30,16 +33,18 @@ relay output, digital input, communication interface etc.
- 1x Magnet
- 1x 6 Pin 3.96 Pitch Terminal
- 1x 4 Pin 3.96 Pitch Terminal
- 3x Hex Key
- 7x Electrical Terminal
- 3x hexagonal wrench
- 7x Screw (Three models: M2x4, M3x6, M3x18)
- 1x Sticker
## Applications
<img src="assets/img/product_pics/base/plc_06.png" width="50%" height="50%"><img src="assets/img/product_pics/base/plc_05.png" width="50%" height="50%">
<!-- ## Applications
- Programmable Logic Controller
- Programmable Motion Controller
- Digital Operation Processor
- Strong Electric Controller
- Strong Electric Controller -->
## Related Link
@@ -49,4 +54,4 @@ relay output, digital input, communication interface etc.
## Schematic
<img src="assets/img/product_pics/base/plc_sch.png">
<img src="assets/img/product_pics/base/plc_sch.png">
+1 -1
View File
@@ -28,7 +28,7 @@ unit通过GROVE线连接至m5core的接口A后,烧录[例程](https://github.c
- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- Two Lego installation holes
## APPLICATION
## Application
- Fruit piano
- RGB Application with Adafruit Library
+32 -32
View File
@@ -8,46 +8,46 @@
## Description
**<mark>WEIGHT</mark>** 是一款集成了专用于计重秤设计的ADC芯片 **HX711** 的计重 Unit。
**<mark>WEIGHT</mark>** is a metering unit that integrates an ADC chip dedicated to the scale design.
* 因为 Unit 接的 GROVE 口,所以相对 Unit 里的 HX711 来说,激励电压 (Positive Supply Voltage) 是 +5V,信号输出给M5Core的电压范围是 0 ~ 5mV,施加的压力越大,对应输出的电压值越大。
* Because the Unit is connected to the GROVE port (the GRVOE port is a 5V supply voltage), the positive supply voltage is +5V for the HX711 in Unit. Output voltage range is 0 ~ 5mV. The greater the applied pressure, the greater the voltage value of the corresponding output.
* HX711 有两个输入通道A, B。相比通道 B,通道A具有可编程信号放大倍数,该 Unit 的电路设计中,使用了通道A,所以这个Unit具有可编程的放大功能。
* HX711 has two input channels A, B. Compared to channel B, Channel A has programmable signal amplification. Channel A is used in the circuit design of this Unit, so this unit has programmable amplification.
unit 一端连接压力传感器,另一端通过 GROVE 线连接 M5Core,下图是连接示意
The unit is connected to the pressure sensor at one end and the M5Core is connected to the other end through the GROVE line.
<img src="assets/img/product_pics/unit/unit_weight_04.png">
<img src="assets/img/product_pics/unit/unit_weight_03.png">
## 特性
## Feature
- 可编程放大倍数:32, 64, 128
- HX711内部ADC精度:24位
- Unit输出电压范围:0 ~ 5mV
- GROVE 接口,支持 [UiFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
- Programmable magnification: 32, 64, 128
- ADC accuracy inside the HX711: 24 bits
- Output voltage range: 0 ~ 5mV
- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- Two Lego installation holes
## 应用
## Application
- 微型重量计
- 厨房秤
- Micro weight meter
- Kitchen Scale
## 相关链接
## Related Link
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[官方论坛](http://forum.m5stack.com/)**
- **[Forum](http://forum.m5stack.com/)**
- **数据手册** - [HX711](http://www.dfrobot.com/image/data/SEN0160/hx711_english.pdf)
- **Datasheet** - [HX711](http://www.dfrobot.com/image/data/SEN0160/hx711_english.pdf)
## Example
### 1. Arduino IDE
本例程使用10Kg量程的传感器。(单位:克)
This example uses a 10Kg range sensor. (Unit: gram)
*如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/WEIGHT/Arduino/weight)。*
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/WEIGHT/Arduino/weight)。*
```arduino
/*
@@ -94,35 +94,35 @@ void loop(){
### 2. UIFlow
每次下载程序之后,需要在不放置被测物体到电子称上的情况下,按下按键A,来零点校验。然后再放被测量物体上去,屏幕上就会显示物体重量(单位是克)。
After each download of the program with nothing on the electronic scale, you need to press the button A for calibration. Then put the object to be measured and the weight of the object will be displayed on the screen. (Unit: gram)
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/WEIGHT/UIFlow)。*
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/WEIGHT/UIFlow)。*
<img src="assets/img/product_pics/unit/unit_example/WEIGHT/example_unit_weight_01.png">
## 原理图
## Schematic
<img src="assets/img/product_pics/unit/weight_sch.png">
### 管脚映射
### Pinmap
**如果WEIGHTGROVE A**
**If WEIGHT was connected to GROVE A**
<table>
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>WEIGHT Unit</td><td>数据引脚 DAT</td><td>时钟引脚 CLK</td><td>5V</td><td>GND</td></tr>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>WEIGHT Unit</td><td>DATA Pin (DAT)</td><td>CLOCK Pin (CLK)</td><td>5V</td><td>GND</td></tr>
</table>
**如果WEIGHTGROVE B**
**If WEIGHT was connected to GROVE B**
<table>
<tr><td>M5Core(GROVE接口B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>WEIGHT Unit</td><td>数据引脚 DAT</td><td>时钟引脚 CLK</td><td>5V</td><td>GND</td></tr>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>WEIGHT Unit</td><td>DATA Pin (DAT)</td><td>CLOCK Pin (CLK)</td><td>5V</td><td>GND</td></tr>
</table>
**如果WEIGHTGROVE C**
**If WEIGHT was connected to GROVE C**
<table>
<tr><td>M5Core(GROVE接口C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
<tr><td>WEIGHT Unit</td><td>数据引脚 DAT</td><td>时钟引脚 CLK</td><td>5V</td><td>GND</td></tr>
<tr><td>M5Core(GROVE C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
<tr><td>WEIGHT Unit</td><td>DATA Pin (DAT)</td><td>CLOCK Pin (CLK)</td><td>5V</td><td>GND</td></tr>
</table>
+2 -2
View File
@@ -71,7 +71,7 @@
&nbsp;
[![lan_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_lan_01.png)](en/base/lan_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![node_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_node_01.png)](en/base/node_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![btc_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_btc_01.png)](en/base/btc_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[![lan_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_lan_01.png)](en/base/lan_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![node_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_node_01.png)](en/base/node_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![btc_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_btc_01.png)](en/base/btc_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![plc_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_plc_01.png)](en/base/plc_base)
&nbsp;
@@ -95,7 +95,7 @@
&nbsp;
[![unit_esp32cam.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_esp32cam_01.png)](en/unit/esp32cam)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_m5camera.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_m5camera_01.png)](en/unit/m5camera)
[![unit_esp32cam.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_esp32cam_01.png)](en/unit/esp32cam)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_m5camera.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_m5camera_01.png)](en/unit/m5camera)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_weight.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_weight_01.png)](en/unit/weight)
&nbsp;
+1 -1
View File
@@ -67,7 +67,7 @@
&nbsp;
[![lan_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_lan_01.png)](zh_CN/base/lan_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![node_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_node_01.png)](zh_CN/base/node_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![btc_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_btc_01.png)](zh_CN/base/btc_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[![lan_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_lan_01.png)](zh_CN/base/lan_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![node_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_node_01.png)](zh_CN/base/node_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![btc_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_btc_01.png)](zh_CN/base/btc_base)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![plc_01.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/base/base_plc_01.png)](zh_CN/base/plc_base)
&nbsp;
+22 -12
View File
@@ -1,24 +1,28 @@
# PLC 底座
<img src="assets/img/product_pics/module/module_plc_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_plc_02.png" width="30%" height="30%">
<img src="assets/img/product_pics/base/plc_01.png" width="30%" height="30%"><img src="assets/img/product_pics/base/plc_04.png" width="30%" height="30%"><img src="assets/img/product_pics/base/plc_03.png" width="30%" height="30%">
***
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[例程](#例程)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[原理图](#原理图)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.9.4f73425ewv8Jgu&id=569322040719)**
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[原理图](#原理图)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.9.4f73425ewv8Jgu&id=569322040719)**
## 描述
**<mark>PLC</mark>** is a prototye industrial board,
这个底座还集成了**电流传感器**和 **RS485 转接板**。支持9-24V的输入
**<mark>PLC</mark>** 是一个工业应用领域的底座。底座有电源转换功能和 TTL 电平转 RS485 电平功能,方便您通过这个底座做 9-24V 方面的应用。焊接 **RS485 转接板**到底座核心板上之后,可以实现 TTL 电平转 RS485 电平输出。
With DC9~24V power input, PLC-Proto motherboard reserved 6Pin or 4Pin
relay output, digital input, communication interface etc.
**RS485 转接板**上还集成了**电流传感器 (ACS712TELC-05B)**,以便做电流监控。
<img src="assets/img/product_pics/base/plc_02.png" width="60%" height="60%">
下图是底座核心板和 RS485 转换板。您可以通过焊接导线,定义 M-Bus 总线上的指定管脚连接到右侧的6 Pin 3.96H接线端子上,也可以焊接 RS485 转换板到核心板的右下方,实现串口2(UART2)转 RS485 电平,输出为核心板下方的4 Pin 3.96H 接线端子。
<img src="assets/img/product_pics/base/plc_07.png">
## 特性
- Free DIY
- Individual package weight: 0.1kg (0.22lb.)
- 尺寸: 5cm \* 5cm \* 5cm (1.97in \* 1.97in \* 1.97in)
- 支持9-24V的电压输入
- 重量: 0.1kg
- 尺寸: 5cm \* 5cm \* 5cm (1.97in \* 1.97in \* 1.97in)
## 包含
@@ -33,11 +37,13 @@ relay output, digital input, communication interface etc.
- 7x 螺丝(三种型号:M2x4M3x6M3x18
- 1x 贴纸
## 应用
<img src="assets/img/product_pics/base/plc_06.png" width="50%" height="50%"><img src="assets/img/product_pics/base/plc_05.png" width="50%" height="50%">
<!-- ## 应用
- Programmable Motion Controller
- Digital Operation Processor
- Strong Electric Controller
- Strong Electric Controller -->
## 相关链接
@@ -47,4 +53,8 @@ relay output, digital input, communication interface etc.
## 原理图
<img src="assets/img/product_pics/base/plc_sch.png">
<img src="assets/img/product_pics/base/plc_sch.png">
<!-- ## PCB图
<img src="assets/img/product_pics/base/plc_pcb.png"> -->