add goplus pahub screw

This commit is contained in:
LiHuashen
2019-05-10 14:01:55 +08:00
parent ca5fc1a979
commit ca55055118
19 changed files with 257 additions and 2 deletions
+5 -1
View File
@@ -184,6 +184,7 @@ body[data-page="ja/README.md"] #faces-kit {
#plus,
#usb,
#bus,
#goplus,
#stepmotor,
#servo,
#lego,
@@ -250,7 +251,9 @@ body[data-page="ja/README.md"] #faces-kit {
#catear,
#hex,
#neoflash,
#butterfly {
#butterfly,
#pahub,
#pbhub {
width: 0;
height: 0;
overflow: hidden;
@@ -293,6 +296,7 @@ body[data-page="ja/README.md"] #application {
#accessory,
#grove-t,
#grove-cable,
#screw,
#usb-downloader {
width: 0;
height: 0;

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 208 KiB

+24
View File
@@ -0,0 +1,24 @@
# Accessory SCREW {docsify-ignore-all}
<img src="assets/img/product_pics/accessory/screw/screw_p1.png" width="30%" height="30%">
<img src="assets/img/product_pics/accessory/screw/screw_p2.png" width="30%" height="30%">
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-Official-New-8-PCS-M3-12-18-25-32-Screw-With-Allen-Key-For-Arduino/3226069_33006277625.html?spm=2114.12010615.8148356.2.aba627e0xBFVVt)**
## Description
**SCREW** would be a necessary tool used on M5Stack development. If you having multiple layers stacked up and you might want fix them up with something. Here comes this SCREW Accessory Kit, packed with 4 different length of M3 screws and an Allen Key. Got this sutff will definately help you making more complicated and organized work around M5Stack.
<img src="assets/img/product_pics/accessory/screw/screw_p3.png" width="30%" height="30%">
## Product Features
- Specification:
- 2x M3-12
- 2x M3-18
- 2x M3-25
- 2x M3-32
- 1x Allen Key
+87
View File
@@ -0,0 +1,87 @@
# Module GoPlus {docsify-ignore-all}
<img src="assets/img/product_pics/module/goplus/goplus_p1.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/goplus/goplus_p2.png" width="30%" height="30%">
***
: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-New-Arrival-GOPLUS-Module-with-MEGA328P-IR-Transmitter-and-Receiver-suit-for-ESP32-Kit/3226069_33010785963.html?spm=2114.12010615.8148356.2.14c97842qJv4YA)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- :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-New-Arrival-PLUS-Module-Encoder-Module-with-MEGA328P-500mAh-Battery-ISP-IR-Transmitter-UART-GPIO/3226069_32949278724.html?spm=a2g1x.12024536.productList_5885013.pic_1)**-->
## Description
**GoPlus** is a enhanced M5 module. It features an all-in-one motor driver module, provides a combination of several M5 Modules and Units(SERVO, PbHUB, IR).
comes with 2x DC motor channel, 4x Servo motor channel, IR transmitter, IR receiver, 3x extend PORT B(GPIO Port). This Module can surely help build more complicated and organized motor applications.
Communication Protocol: IIC (0x61).
## Product Features
- 2x DC motor channel
- 4x Servo motor channel
- IR transmitter & receiver
- 3x extend PORT B
- MEGA328P
- LV8548MC
## Include
- 1x M5Stack GoPlus Module
## Related Link
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- Datasheet - **[LV8548MC](https://www.onsemi.cn/PowerSolutions/document/ANDLV8548MC-D.PDF)**
- Driver firmware - **[GoPlus](https://github.com/m5stack/GoPlus/tree/master/src)**
- Test Code - **[GoPlus](https://github.com/m5stack/GoPlus/tree/master/test)**
<!-- ## Example
### Arduino IDE
*The Code below `plus_read_encoder.ino` is incomplete. To get the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/Arduino).*
```arduino
/*
* Read data from the gear potentiometer
* Send infrared light
*/
#include <Arduino.h>
#include <M5Stack.h>
#define IrPin 13
#define PLUS_ADDR 0x62
// declaration
int32_t number = 0;
uint8_t press = 0;
// initialization
M5.begin(true, false, false);
Wire.begin();
ledcSetup(1, 38000, 10); ledcAttachPin(IrPin, 1);// IR Pin setting
// read data
Wire.requestFrom(PLUS_ADDR, 2);
while(Wire.available()) {
int8_t encode = Wire.read();
uint8_t press_n = Wire.read();
number += encode;
if(press_n == 0xff) {
press = 0;//encoder was pressed
}
else {
press = 1;//encoder was releaed
}
}
``` -->
## Schematic
<img src="assets/img/product_pics/module/goplus/goplus_sch.png">
+1 -1
View File
@@ -8,7 +8,7 @@
## Description
**EXT.IO** is a GOIO Expander. With simple I2C commands you can have up to 8 GPIOs.
**EXT.IO** is a GPIO Expander. With simple I2C commands you can have up to 8 GPIOs.
Integrates PCA9554PW. This 8-bit I/O expander for the two-line bidirectionalbus (I2C) is designed for 2.3-V to 5.5-V VCC • Open-Drain Active-Low Interrupt Output operation. It provides general-purpose remote I/O expansion for most microcontroller families via the I2C interface.
+108
View File
@@ -0,0 +1,108 @@
# Unit PaHUB {docsify-ignore-all}
<img src="assets/img/product_pics/unit/pahub/pahub_p1.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/pahub/pahub_p3.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/pahub/pahub_grove_a.png" width="30%" height="30%">
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/item/New-Arrival-M5Stack-Official-I2C-Hub-1-to-6-Expansion-Grove-I2C-Interface-for-Arduino-Blockly/32998974179.html?gps-id=pcStoreJustForYou&scm=1007.23125.122752.0&scm_id=1007.23125.122752.0&scm-url=1007.23125.122752.0&pvid=0cd77ea5-52b2-4aa7-856b-0dd4e43ee0d1&spm=a2g1y.12024536.smartJustForYou_39076158.12)**
<!-- :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/item/New-Arrival-M5Stack-Official-I2C-Hub-1-to-6-Expansion-Grove-I2C-Interface-for-Arduino-Blockly/32998974179.html?gps-id=pcStoreJustForYou&scm=1007.23125.122752.0&scm_id=1007.23125.122752.0&scm-url=1007.23125.122752.0&pvid=0cd77ea5-52b2-4aa7-856b-0dd4e43ee0d1&spm=a2g1y.12024536.smartJustForYou_39076158.12)** -->
<!-- https://item.taobao.com/item.htm?spm=a1z10.1-c.w4004-21234898041.9.1a312307NvDLCF&id=590738436768 -->
## Description
**PaHUB**, is a expander for I2C GROVE PORTA(red port on M5Core). 1-to-6. If you want connect mutiple I2C slave devices and some of them may sharing the same address, this unit can resolve I2C address conflicts.
At the Unit PaHUB's heart is an **TCA9548A** produced by TI. The TCA9548A device has eight bidirectional translating switches that can be controlled through the I2C bus. The SCL/SDA upstream pair fans out to downstream pairs, or channels. Any individual SCn/SDn channel or combination of channels can beselected, determined by the contents of the
programmable control register.
Technically this Unit allows mutiple levels of nesting, for example you can wire PaHUBs to the root PaHUB to get more seats for your I2C slave devices, if you have 7 of them you can have up to 36 I2C GROVE ports, which makes it easier to get your project more organized.
The I2C address of this unit is 0x77 (changable by resistors).
*Notice: Please pay attention to the channel order while programing*
<img src="assets/img/product_pics/unit/pahub/pahub_p2.png">
## Product Features
- I2C GROVE PORTA Expander
- Two Lego-compatible holes
- Nested allowed
- 1-To-6
## Include
- 1x PaHUB Unit
- 1x Grove Cable
<!-- ## Application
- Fruit piano
<img src="assets/img/product_pics/unit/M5GO_Unit_makey_05.png" width="40%" height="40%"> -->
## Driver Protocol
<!-- - Driver firmware - -->
<!-- - Test code - -->
- protovol type - I2C
- address - 0x77
## Related Link
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- Datasheet - **[TCA9548A](http://www.ti.com/lit/ds/symlink/tca9548a.pdf)**
<!-- ## Example
### 1. Arduino IDE
*The code below is incomplete. To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/Arduino/Makey_new_version).*
```arduino
#include <M5Stack.h>
#include <Wire.h>
// initialization
M5.begin();
pinMode(21, INPUT); pinMode(22, INPUT);
Wire.begin();// Init I2C
// read data
Wire.requestFrom(MAKEY_ADDR, 2);
while (Wire.available()) {
Key1 = Wire.read();//read data from MAKEY
Key2 = Wire.read();//read data from MAKEY
tone_key = (Key2<<8) | Key1;// the following picture will explain "tone_key"
}
```
<img src="assets/img/product_pics/unit/unit_example/MAKEY/tone_key_pitch_zh_CN.png">
<img src="assets/img/product_pics/unit/M5GO_Unit_makey_04.png" width="30%" height="30%">
### 2. UIFlow
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/UIFlow).*
<img src="assets/img/product_pics/unit/unit_example/MAKEY/example_unit_makey_02.png"> -->
## Schematic
<img src="assets/img/product_pics/unit/pahub/sch_pahub.png">
### PinMap
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>PaHUB Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
</table>
<!--
<img src="assets/img/product_pics/unit/M5GO_Unit_makey_03.png" width="30%" height="30%"> -->
+32
View File
@@ -143,6 +143,7 @@
## PLUS
## USB
## BUS
## GoPlus
**Expansion Modules**
@@ -181,6 +182,13 @@
<p class="item-title" style="font-style:italic;">BUS</p>
</div>
<div class="item">
<a href="/#/en/module/goplus">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/module/module_goplus_p1.png">
</a>
<p class="item-title" style="font-style:italic;">GoPlus</p>
</div>
## STEPMOTOR
## SERVO
## LEGO+
@@ -632,6 +640,22 @@
<p class="item-title" style="font-style:italic;">BUTTERFLY</p>
</div>
<div class="item">
<a href="/#/en/">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/blank.png">
</a>
<p class="item-title" style="font-style:italic;"></p>
</div>
## PaHUB
<div class="item">
<a href="/#/en/unit/pahub">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/unit/unit_pahub_p1.png">
</a>
<p class="item-title" style="font-style:italic;">PaHUB</p>
</div>
***
# Application
@@ -687,6 +711,7 @@
## Grove-T
## Grove Cable
## SCREW
## USB Downloader
<div class="item">
@@ -703,6 +728,13 @@
<p class="item-title" style="font-style:italic;">Grove Cable</p>
</div>
<div class="item">
<a href="/#/en/accessory/screw">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/accessory/screw_p1.png">
</a>
<p class="item-title" style="font-style:italic;">SCREW</p>
</div>
<div class="item">
<a href="/#/en/tool/usb_downloader">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/tool/usb_downloader_01.png">