Merge branch 'master' of github.com:m5stack/m5-docs

This commit is contained in:
Gitshaoxiang
2020-03-20 10:18:24 +08:00
103 changed files with 404 additions and 3271 deletions
+3 -18
View File
@@ -1,41 +1,26 @@
# 18650C HAT {docsify-ignore-all}
# 18650C HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U080</div>
<img src="assets\img\product_pics\hat\18650C_hat\18650C_01.webp" width="30%"><img src="assets\img\product_pics\hat\18650C_hat\18650C_02.webp" width="30%"><img src="assets\img\product_pics\hat\18650C_hat\18650C_03.webp" width="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\18650C_hat\18650C_01.webp"><img src="assets\img\product_pics\hat\18650C_hat\18650C_02.webp"></div>
## Description
**18650C HAT** is a rechargeable battery base designed for M5SticKC with built-in 18650 large capacity rechargeable lithium battery.It can provide long-term endurance for the equipment. The base is designed with the plug-in structure of the HAT series, which can be used to maintain reliable connection with the M5StickC. The bottom is equipped with a USB interface charging interface, which is convenient and quick for the battery. The USB port of the battery base is only used as a charging interface, and does not have UART function.There are many types of mounting holes on the back of the base,which can be easily installed by the user into all types of planes.
<mark>Note: The M5StickC produced after October 2019 has a new fixing hole design. If your M5StickC is an old device (no fixing hole), you cannot use screws to fix it to the 18650CHAT, but this does not affect Functional use of modules</mark>
<img src="assets\img\product_pics\hat\18650C_hat\18650C_04.webp" width="30%">
## Product Features
- Chargable
- Chargable
- Battery replaceable
## Weight & Dimension
- Product Dimension150mm x 25mm x 25mm
- Product Weight277g
## Include
- 1x 18650 HATinclude 2000mAh battery)
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/18650C_HAT.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/products/m5stickc-18650';
+3 -15
View File
@@ -15,11 +15,6 @@
- 16340 battery base
- I2C protocol for comunication and control (0x38)
## Weight and Size
- Product Size55mm * 25mm * 20mm
- Proudct weight33g(include battery)
## Applications
- Multiple servo control
@@ -60,13 +55,13 @@
## Example
- **UIFlow**
### UIFlow
<img src="assets\img\product_pics\hat\8servos_hat\8servos.png" width="30%" height="30%">
### 1. Arduino IDE
### Arduino IDE
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/8servos-hat/Arduino)*
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/8servos-hat/Arduino)
## 8Servos HAT Instructions
@@ -166,13 +161,6 @@
2RGB888
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/8Servos_hat.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/products/m5stickc-8servos-hat';
+5 -56
View File
@@ -1,8 +1,8 @@
# ADC HAT {docsify-ignore-all}
# ADC HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U069</div>
<img src="assets\img\product_pics\hat\adc_hat\adc_hat_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\adc_hat\adc_hat_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\adc_hat\adc_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\adc_hat\adc_hat_01.jpg"><img src="assets\img\product_pics\hat\adc_hat\adc_hat_02.jpg"></div>
## Description
@@ -12,8 +12,6 @@ The ADS1100 consists of a delta-sigma A/D converter core with adjustable gain, a
<br>
ADS1100 itself is able to accept a differential input from -5 ~ +5 V, but we have limited the input to 0~12V by adding on the peripheral circuit design of this IC.
### Product Features
- Input: 0-12V
@@ -33,26 +31,18 @@ ADS1100 itself is able to accept a differential input from -5 ~ +5 V, but we hav
- 1x ADC HAT
- 1x 2 Pin 3.96 Pitch Terminal
## Weight and Size
- Package size:40mm x 42mm x 30mm
- Package weight:14g
## Applications
- Analog Signal Capture
## Links
- **Datasheet** - [ADS1100](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/ads1100_en.pdf)
## Schematic
<img src="assets/img/product_pics/hat/adc_hat/adc_hat_04.jpg" width="80%" height="80%">
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo.png" width="100px" style="margin-top:20px">
@@ -65,48 +55,15 @@ ADS1100 itself is able to accept a differential input from -5 ~ +5 V, but we hav
## Example
- **UIFlow**
### UIFlow
Open http://flow.m5stack.com and Load Demo
<img src="assets/img/product_pics/hat/adc_hat/adc.png">
### Arduino IDE
*To get complete code, please click [here](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ADC).*
```arduino
#include <M5StickC.h>
#include <Wire.h>
#include "ADS1100.h"
ADS1100 ads;
#define REF_VOL 3.3
#define ADC_BASE REF_VOL/32768
void setup(void)
{
M5.begin(true,true,false);
// The address can be changed making the option of connecting multiple devices
ads.getAddr_ADS1100(ADS1100_DEFAULT_ADDRESS); // 0x48, 1001 000 (ADDR = GND)
// The ADC gain (PGA), Device operating mode, Data rate
// can be changed via the following functions
ads.setGain(GAIN_ONE); // 1x gain(default)
ads.setMode(MODE_CONTIN); // Continuous conversion mode (default)
ads.setRate(RATE_8); // 8SPS (default)
ads.setOSMode(OSMODE_SINGLE); // Set to start a single-conversion
ads.begin();
}
void loop() {
byte error;
int8_t address;
address = ads.ads_i2cAddress;
// The i2c_scanner uses the return value of
// the Write.endTransmisstion to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();
result = ads.Measure_Differential();
}
```
To get complete code, please click [here](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ADC)
### Pin Map
@@ -115,14 +72,6 @@ byte error;
<tr><td>HAT ADC</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/ADC-DAC-HAT.mp4" type="video/mp4" >
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/m5stickc-adc-hat-ads1100';
+4 -25
View File
@@ -1,10 +1,8 @@
# BeetleC {docsify-ignore-all}
# BeetleC
<div class="badge badge-pill badge-primary product_sku_tag">SKU:K030</div>
<img src="assets\img\product_pics\hat\beetlec_hat\beetlec_hat_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\hat\beetlec_hat\beetlec_hat_02.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\beetlec_hat\beetlec_hat_01.jpg"><img src="assets\img\product_pics\hat\beetlec_hat\beetlec_hat_02.jpg"></div>
## Description
@@ -14,9 +12,6 @@ BeatleC works together with M5StickC controller. On the base, we have two DC ge
The body of the robotic car is inclined because the wheels we put on front and back are different sizes as you can see from the pictures.
Besides, a power switch is placed at the front.
<img src="assets\img\product_pics\hat\beetlec_hat\beetlec_hat_03.jpg" width="30%" height="30%">
## Product Feature
- Small Robotic Car
@@ -27,7 +22,6 @@ Besides, a power switch is placed at the front.
- Concise design
- Smooth control
## Weight and Size
- Size: 70mm * 50mm * 25mm
@@ -35,13 +29,11 @@ Besides, a power switch is placed at the front.
- Back-wheel diameter:⌀14mm
- Package weight:102g
## Applications
- Remote Motor control
- Wireless Robotic control
## Package Includes
- 1x BeetleC bottom
@@ -56,7 +48,6 @@ Besides, a power switch is placed at the front.
>2. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click **"Burn"** to start burning. (**For M5StickC burning, please Set the baud rate to 750000 or 115200**)
## Operation Steps
### How to set up beetlec
@@ -75,27 +66,15 @@ Besides, a power switch is placed at the front.
- Push upwards the control bar to speed up the wheel and push down to slow down.
- There are four color bolcks at the bottom. The colorful blocks are used to turn on all RGB LEDs at the bottom to the specified color. Block with black will turn off the light.
## Example
- **UIFlow**
### UIFlow**
<img src="assets\img\product_pics\hat\beetlec_hat\beetlec.png" width="60%" height="60%">
### Arduino IDE
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/beetleC/stickC/beetleC).*
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/BeetleC_01.mp4" type="video/mp4">
</video>
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/BeetleC_02.mp4" type="video/mp4">
</video>
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/beetleC/stickC/beetleC)
<script>
+3 -18
View File
@@ -1,19 +1,14 @@
# BugC {docsify-ignore-all}
# BugC
<div class="badge badge-pill badge-primary product_sku_tag">SKU:K033</div>
<img src="assets\img\product_pics\hat\bugc_hat\bugc_hat_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\hat\bugc_hat\bugc_hat_02.jpg" width="30%" height="30%">
<img src="assets\img\product_pics\hat\bugc_hat\bugc_hat_04.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\bugc_hat\bugc_hat_01.jpg"><img src="assets\img\product_pics\hat\bugc_hat\bugc_hat_02.jpg"></div>
## Description
**BugC** is a programmable robot base compatible with the M5StickC. This has four DC motors, motor driver, two RGB LEDs, battery holder and a switch.
The Bugc base needs to be used in conjunction with the M5StickC controller. The base comes with an STM32F030F4 micro controller which controls all the motors and LEDs and this is controlled through I2C protocol(0x38) by the M5StickC which sits on top of the base.
<img src="assets\img\product_pics\hat\bugc_hat\bugc_hat_03.jpg" width="30%" height="30%">
## Product Features
- remote control
@@ -25,7 +20,6 @@ The Bugc base needs to be used in conjunction with the M5StickC controller. The
- Equipped with a battery holder
- Flexible movement in all directions
## Weight and Size
- Size: 55mm * 40mm * 25mm
@@ -52,7 +46,6 @@ The Bugc base needs to be used in conjunction with the M5StickC controller. The
- Robot control
- Smart and cognitive toys
## Package Includes
- 1x BugC base
@@ -68,7 +61,6 @@ The Bugc base needs to be used in conjunction with the M5StickC controller. The
>2. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click **"Burn"** to burn the program (**For M5StickC, set the baud rate to 750000 or 115200**)
## Example
- **UIFlow**
@@ -77,14 +69,7 @@ The Bugc base needs to be used in conjunction with the M5StickC controller. The
**Arduino**
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/BugC/bugC)*
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/bugC.mp4" type="video/mp4">
</video>
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/BugC/bugC)
<script>
+4 -60
View File
@@ -1,9 +1,8 @@
# CardKB HAT{docsify-ignore-all}
# CardKB HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U077</div>
<img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat_01.jpg" width="30%" height="30%"><img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat_02.jpg" width="30%" height="30%"><img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat_01.jpg"><img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat_02.jpg"></div>
## Description
@@ -20,7 +19,6 @@ The CardKB HAT also offers support for several button combinations (Shift+Key, F
* **Fn+Key**(custom function key combination), led flashing green,keyboard will output the third key value, which you can customize based on the requirement.
* **Double-click Shift or fn** to lock Shift(red always on) or Fn(green always on) and output the second value or third value multiple times.
<img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat_04.jpg">
@@ -29,9 +27,6 @@ The CardKB HAT also offers support for several button combinations (Shift+Key, F
- Full-function keyboard with multi-key combination support
- IIC Address : 0X5F(I2C)
## Size and Weight
- Product Size84.6mm x 54.2mm x 6.5mm
- weight 21g
@@ -43,16 +38,10 @@ The CardKB HAT also offers support for several button combinations (Shift+Key, F
- Keyboard peripheral
## Related Link
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- **[CardKB HAT Firmware](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT/firmware_328p/cardKB_HAT)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -71,62 +60,17 @@ The CardKB HAT also offers support for several button combinations (Shift+Key, F
<img src="assets\img\product_pics\app\mega328_isp.png" width="30%" height="30%">
## Example
### Arduino IDE
*To get the code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT)*
```arduino
#include <M5StickC.h>
#include <Wire.h>
#define CARDKB_ADDR 0x5F
void setup()
{
M5.begin();
Wire.begin(0, 26);
M5.Lcd.setRotation(3);
M5.Lcd.fillScreen(BLACK);
M5.Lcd.setCursor(0, 0, 2 );
M5.Lcd.setTextColor(YELLOW);
M5.Lcd.println("IIC Address: 0x5F\n");
M5.Lcd.println(">>");
}
void loop()
{
Wire.requestFrom(CARDKB_ADDR, 1);
while(Wire.available())
{
char c = Wire.read(); // receive a byte as characterif
if (c != 0)
{
M5.Lcd.printf("%c", c);
Serial.println(c, HEX);
Serial.println(char(c));
}
}
// delay(10);
}
```
To get the code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT)
### UIFLOW
<img src="assets/img/product_pics/hat/cardkb_hat/cardkb_hat.jpg" width="30%" height="30%">
*To get the uiflow code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT/UIFLOW)*
## Video
- **CardKB HAT**
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/CardKB_HAT.mp4" type="video/mp4">
</video>
To get the uiflow code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT/UIFLOW)
<script>
+4 -41
View File
@@ -1,8 +1,8 @@
# DAC HAT {docsify-ignore-all}
# DAC HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U068</div>
<img src="assets\img\product_pics\hat\dac_hat\dac_hat_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\dac_hat\dac_hat_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\dac_hat\dac_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\dac_hat\dac_hat_01.jpg"><img src="assets\img\product_pics\hat\dac_hat\dac_hat_02.jpg"></div>
## Description
@@ -13,7 +13,6 @@ Packed with a DAC converter chip MCP4725, which is low-power, high accuracy, sin
The DAC input and configuration data can be programmed to the non-volatile memory (EEPROM) by the user using the I2C interface command.
I2C address: 0x60
## Product Features
- Output: 03.3V
@@ -35,11 +34,6 @@ I2C address: 0x60
- 1x DAC HAT
- 1x 2 Pin 3.96 Pitch Terminal
## Weight and Size
- Package size:40mm x 42mm x 30mm
- Package weight:14g
## Applications
- SetPointorOffsetTrimming
@@ -48,7 +42,6 @@ I2C address: 0x60
- LowPowerPortableInstrumentation • PCPeripherals
- DataAcquisitionSystems
## Links
- **Datasheet** - [MCP4725](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/MCP4725_en.pdf)
@@ -69,7 +62,7 @@ I2C address: 0x60
## Example
- **UIFlow**
### UIFlow*
Open http://flow.m5stack.com and Load Demo
@@ -77,29 +70,7 @@ Open http://flow.m5stack.com and Load Demo
### Arduino IDE
*To get complete code, please click [here](https://github.com/m5stack/M5StickC/blob/master/examples/Hat/DAC).*
```arduino
#include <M5StickC.h>
#include <Wire.h>
#include "Adafruit_MCP4725.h"
#define DAC_ADDR
Adafruit_MCP4725 dac;
void setup(void) {
M5.begin(true,true,false);
dac.begin(0x60);
dac.setVoltage(2048, false);
}
void loop(void) {
// 12bit value , false mean not write EEPROM
dac.setVoltage(1024, false);
dac.setVoltage(2048, false);
}
```
To get complete code, please click [here](https://github.com/m5stack/M5StickC/blob/master/examples/Hat/DAC)
### Pin Map
@@ -108,14 +79,6 @@ void loop(void) {
<tr><td>HAT ADC</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/ADC-DAC-HAT.mp4" type="video/mp4" >
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/m5stickc-dac-hat-mcp4725';
+4 -11
View File
@@ -1,15 +1,13 @@
# ENV HAT {docsify-ignore-all}
# ENV HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U053</div>
<img src="assets\img\product_pics\hat\env_hat\env_hat_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\env_hat\env_hat_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\env_hat\env_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\env_hat\env_hat_01.jpg"><img src="assets\img\product_pics\hat\env_hat\env_hat_02.jpg"></div>
## Description
**Hat ENV** It is able to detect the temperature, humidity, air pressure and magnetic field. This product relates via I2C protocol which allows you to obtain 4 types of environment data thru just 2pins, together with the tiny body, makes it a powerful application for envitonment data collecting.
## Product Feature
- temperature:
@@ -22,13 +20,9 @@
- Typical Magnetic Field
- ±1300μTxy-axis),±2500μTz-axis
- magnetic field resolution: 0.3μT
## Weight & Dimension
- Dimension24mm x 20.3mm x 13.8mm
- Weight3g
## Package Includes
- 1x ENV Hat
@@ -54,7 +48,6 @@
- **[BMM150 Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/BMM150_datasheet_en.pdf)**
## EasyLoader
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
@@ -83,13 +76,13 @@
## Example
- **UIFlow**
### UIFlow
Open http://flow.m5stack.com and Load Demo
<img src="assets/img/product_pics/hat/env_hat/env.png">
- **Arduino**
### Arduino
Please click [here](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ENV) to get complete code
+2 -19
View File
@@ -1,15 +1,12 @@
# FINGER HAT {docsify-ignore-all}
# FINGER HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U074</div>
<img src="assets\img\product_pics\hat\finger_hat\finger_hat_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\finger_hat\finger_hat_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\finger_hat\finger_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\finger_hat\finger_hat_01.jpg"><img src="assets\img\product_pics\hat\finger_hat\finger_hat_02.jpg"></div>
## Description
**FINGER Hat** comes with "FPC1020SC" fingerprint sensor inside. This all-in-one fingerprint sensor makes adding, verification and management of fingerprints super easy.
Compact size, serial protocol and 'ultra-low power consumption'- all make this M5 Unit very attractive to be used along with the M5StickC. It performs fast fingerprint matching with the highest security level at the most optimal user convenience. The M5 Unit can be programmed to set customized fingerprint recognition comparison levels and security levels. if you ever consider to make your project more secure with biometrics, dont forget to include this M5 Unit: "FINGER HAT".
UART settings:
@@ -18,7 +15,6 @@ UART settings:
- 1 Stop bit
- No parity
## Product Features
- Fingerprint: 150
@@ -33,14 +29,9 @@ UART settings:
- Supported Baudrate: 9600bps-115200bpsDefault:19200bps
- Operating temperature: -10°C - 60°C
- Operating humidity: 20% - 80%
## Weight and Size
- Size55mm * 25mm * 20mm
- weight33g(include battery)
## Included
- 1x FINGER HAT
@@ -51,7 +42,6 @@ UART settings:
- Passwordless authentication
- User identification
## Schematic
<img src="assets/img/product_pics/hat/finger_hat/finger_hat_04.jpg" width="50%" height="50%">
@@ -84,13 +74,6 @@ To get complete code, please click [here](https://github.com/m5stack/M5-ProductE
- Datasheet **[FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)**
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/FINGER-HAT.mp4" type="video/mp4" >
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/all/products/m5stickc-fingerprint-hatf1020sc';
+3 -14
View File
@@ -1,22 +1,18 @@
# JoyC {docsify-ignore-all}
# JoyC
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U079</div>
<img src="assets\img\product_pics\hat\JoyC_hat\JoyC_01.jpg" width="20%"><img src="assets\img\product_pics\hat\JoyC_hat\JoyC_02.jpg" width="20%"><img src="assets\img\product_pics\hat\JoyC_hat\JoyC_03.jpg" width="20%"><img src="assets\img\product_pics\hat\JoyC_hat\JoyC_04.jpg" width="20%">
<div class="product_pic"><img src="assets\img\product_pics\hat\JoyC_hat\JoyC_01.jpg"><img src="assets\img\product_pics\hat\JoyC_hat\JoyC_02.jpg"></div>
## Description
**JoyC** is a rocker module designed for the M5StickC.It supports two-hand operation. Embedded STM32F030F4 main control chip, using I2C communication protocol and host M5StickC for data transmission. The range of the joystick is 0~200, there are 12 RGB LEDs under the left and right joysticks, and the bottom of the joystick is equipped with a 16340 battery base for continuous battery life.
**JoyC** is a rocker module designed for the M5StickC.It supports two-hand operation. Embedded STM32F030F4 main control chip, using I2C communication protocol and host M5StickC for data transmission. The range of the joystick is 0~200, there are 12 RGB LEDs under the left and right joysticks, and the bottom of the joystick is equipped with a 16340 battery base for continuous battery life.
## Product Features
- STM32F030F4 inside
- communication protocol: I2C (address: 0x38)
- support omni-directional movement/button press
## Weight & Dimension
- Dimension200mm x 55mm x 50mm
- Weight81g(include 750mAh Battery)
@@ -52,13 +48,6 @@
- **[Arduino](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/JoyC)**
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/JoyC.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/products/m5stickc-joyc';
+4 -22
View File
@@ -1,28 +1,18 @@
# Joystick HAT {docsify-ignore-all}
# Joystick HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U073</div>
<img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_01.jpg" width="30%"><img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_02.jpg" width="30%"><img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_03.jpg" width="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_01.jpg"><img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_02.jpg"></div>
## Description
**Joystick HAT** is one of the HAT module that is specifically designed for M5StickC. We have used a STM32F030F4 microprocessor inside to implement I2C communication with M5StickC.
This mini-volume joystick module supports full angular movement and center press, and outputs angular data as well as button digital signals.
With the 'HAT' unified plug-in design it can provide reliable connection, in the most streamlined way. which allowes to get more HMI experience.
<img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_04.jpg" width="30%"><img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_05.jpg" width="30%">
**Joystick HAT** is one of the HAT module that is specifically designed for M5StickC. We have used a STM32F030F4 microprocessor inside to implement I2C communication with M5StickC.This mini-volume joystick module supports full angular movement and center press, and outputs angular data as well as button digital signals.With the 'HAT' unified plug-in design it can provide reliable connection, in the most streamlined way. which allowes to get more HMI experience.
## Product Features
- STM32F030F4 inside
- STM32F030F4 inside
- communication protocol: I2C (address: 0x38)
- support omni-directional movement/button press
## Weight & Dimension
- Dimension24mm x 30mm x 17mm
- Weight3g
@@ -30,8 +20,6 @@ With the 'HAT' unified plug-in design it can provide reliable connection, in the
- 1x Joystick HAT
<img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_06.jpg" width="30%">
## Applications
- Game Handle
@@ -104,12 +92,6 @@ To get complete code, please click [here](https://github.com/m5stack/M5-ProductE
<tr><td>Joystick HAT</td><td>SDA</td><td>SCL</td><td>3.3V</td><td>GND</td></tr>
</table>
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/Joystick_HAT.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/products/m5stickc-joystick-hat';
+6 -20
View File
@@ -1,11 +1,8 @@
# NCIR HAT {docsify-ignore-all}
# NCIR HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U061</div>
<img src="assets\img\product_pics\hat\ncir_hat\hat_ncir_01.jpg" width="30%" height="30%">
<img src="assets\img\product_pics\hat\ncir_hat\hat_ncir_02.jpg" width="30%" height="30%">
<img src="assets\img\product_pics\hat\ncir_hat\hat_ncir_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\ncir_hat\hat_ncir_01.jpg"><img src="assets\img\product_pics\hat\ncir_hat\hat_ncir_02.jpg"></div>
## Description
@@ -17,7 +14,6 @@ The MLX90614 is factory calibrated in wide temperature ranges: -40 to 125 ˚C fo
Connect with M5StickC via GOIO 0/26 (I2C add: 0x5A).<br>
## Product Features
- Operating voltage: 4.5 to 5.5V
@@ -31,11 +27,6 @@ Connect with M5StickC via GOIO 0/26 (I2C add: 0x5A).<br>
- 1x NCIR HAT
## Weight and Size
- Package size:40mm x 42mm x 30mm
- Package weight:13g
## Applications
- Body Temperature Measurement
@@ -59,15 +50,17 @@ Connect with M5StickC via GOIO 0/26 (I2C add: 0x5A).<br>
>2. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click **"Burn"** to start burning. (**For M5StickC burning, please Set the baud rate to 750000 or 115200**)
## Example
- **UIFlow**
Open http://flow.m5stack.com and Load Demo
<img src="assets\img\product_pics\hat\ncir_hat\ncir.png">
- **[Arduino](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/NCIR_HAT)**
- **Arduino**
[Click here to download Arduino code](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/NCIR_HAT)
### Pin Map
@@ -76,13 +69,6 @@ Open http://flow.m5stack.com and Load Demo
<tr><td>HAT NCIR</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## Video
**Demo**
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/NCIR-HAT.mp4" type="video/mp4" >
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/m5stickc-ncir-hatmlx90614';
+2 -16
View File
@@ -1,9 +1,8 @@
# Neoflash HAT {docsify-ignore-all}
# Neoflash HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U071</div>
<img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_01.jpg" width="30%"> <img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_02.jpg" width="30%"> <img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_05.jpg" width="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_01.jpg"><img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_02.jpg"></div>
## Description
@@ -12,8 +11,6 @@
We even prepared a dark brown acrylic board to cover on the NeoFlash board for better effection. We also provide two types of pin set with a 90-degree bend so that you can attach the NeoFlash board onto M5StickC in different ways.
If you thinking about adding a display on your project, NeoFlash is a good choice.
<img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_03.jpg" width="30%"> <img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_04.jpg" width="30%">
## Product Features
- Primordial three basic colors for each pixel
@@ -24,9 +21,6 @@ If you thinking about adding a display on your project, NeoFlash is a good choic
- Hole Distance: 0.1 in-(2.54 mm)
- Hole Dimension: 0.039 "1mm (CNC Factory)
- Assembly Approach: back to back (default) / horizontal contact
## Weight & Dimension
- Dimension58mm x 23.5mm x 1mm
- Weight2g
@@ -47,7 +41,6 @@ If you thinking about adding a display on your project, NeoFlash is a good choic
<img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_06.jpg" height="300px"><img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_07.jpg" height="300px">
## Schematic
<img src="assets\img\product_pics\hat\neoflash_hat\neoflash_hat_08.jpg" width="30%">
@@ -75,13 +68,6 @@ To get complete code, please click [here](https://github.com/m5stack/M5-ProductE
<tr><td>Neoflash HAT</td><td>DATA</td><td>5V</td><td>GND</td></tr>
</table>
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/Neoflash_HAT.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/products/m5stickc-neofalsh-hat';
+2 -15
View File
@@ -1,13 +1,11 @@
# PIR HAT {docsify-ignore-all}
# PIR HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U054</div>
<img src="assets\img\product_pics\hat\pir_hat\pir_hat_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\pir_hat\pir_hat_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\pir_hat\pir_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\pir_hat\pir_hat_01.jpg"><img src="assets\img\product_pics\hat\pir_hat\pir_hat_02.jpg"></div>
## Description
**Hat PIR** is an M5StickC compatible human body induction sensor, it belongs to "Passive pyroelectric infrared detector", that detect the infrared come from the human body. When the infrared is detected, the sensor will output HIGH and last for two seconds until the next detecting round.
*Notice: There exist 2 seconds delay*
@@ -24,11 +22,6 @@
- 1x PIR Hat
## Weight and Size
- Package size:60mm x 57mm x 17mm
- Package weight:20g
## Applications
- Hunman body induction lamp
@@ -39,12 +32,6 @@
<img src="assets\img\product_pics\hat\pir_hat\pir_hat_04.jpg" width="50%" height="50%">
## Links
- **[Official channle](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[Official forum](http://forum.m5stack.com/)**
## EasyLoader
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
+5 -14
View File
@@ -1,13 +1,11 @@
# PowerC HAT {docsify-ignore-all}
# PowerC HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U081</div>
<img src="assets\img\product_pics\hat\PowerC_hat\powerC_01.webp" width="30%"><img src="assets\img\product_pics\hat\PowerC_hat\powerC_02.webp" width="30%"><img src="assets\img\product_pics\hat\PowerC_hat\powerC_03.webp" width="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\PowerC_hat\powerC_01.webp"><img src="assets\img\product_pics\hat\PowerC_hat\powerC_02.webp"></div>
## Description
**PowerC HAT** is a charging module specially designed for m5stickc, with built-in ip3005 high-precision lithium battery protection IC and ip5209 power management IC. It uses I2C communication protocol to carry out data transmission with m5stickc of the host computer, and can check the voltage, current and other information through programming. The back battery seat of the module can be installed with two 16340 batteries, which can be charged by the charging module, and can also be used as a charging treasure to provide external power through the battery In addition, the module provides an I2C interface for connecting I2C peripherals, a typec interface for power input, a usb-a bus for power output, with a voltage output of 5V / 1.5A and an input voltage of 5V. The module is equipped with an independent switch, which can be opened once and closed twice.
<img src="assets\img\product_pics\hat\PowerC_hat\powerC_04.webp" width="30%">
@@ -22,9 +20,8 @@
- IIC Address 0x75
## Weight & Dimension
- Dimension55mm x 35mm
- Weight19g
## Include
@@ -35,7 +32,6 @@
<mark>I2C address: 0x75</mark>
## Links
- **[IP5209 Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/IP5209.pdf)**
@@ -45,13 +41,13 @@
- **UIFlow**
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/PowerC/UIFlow).*
If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/PowerC/UIFlow)
<img src="assets\img\product_pics\hat\PowerC_hat\PowerC.png" width="80%">
- **Arduino**
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/PowerC/PowerC)*
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/PowerC/PowerC)
## EasyLoader
@@ -79,11 +75,6 @@
</div>
</div>
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/PowerC_HAT.mp4" type="video/mp4">
</video>
<script>
+2 -61
View File
@@ -1,16 +1,13 @@
# PROTO PLUS HAT {docsify-ignore-all}
# PROTO PLUS HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U060-B</div>
<img src="assets\img\product_pics\hat\proto_plus_hat\hat_proto_plus_01.jpg" width="30%"> <img src="assets\img\product_pics\hat\proto_plus_hat\hat_proto_plus_02.jpg" width="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\proto_plus_hat\hat_proto_plus_01.jpg"> <img src="assets\img\product_pics\hat\proto_plus_hat\hat_proto_plus_02.jpg"></div>
## Description
**PROTO PLUS HAT** is a universal proto board compatible with M5SticKC. Compared to the previous PROTO HAT, "PLUS" is designed to provide a larger board area. Combined with the 8 pin header, you can have more add-ons for your M5StickC. The expansion interface is fully connected to the universal board, allowing the user to freely design the circuit on the board. The 90° pin header enables the proto board to be spliced with the M5StickC at various angles. If you plan to add circuit design to your project and hope to achieve space saving by changing the way the board is spliced, HAT PROTO PLUS will be a good choice.
<img src="assets\img\product_pics\hat\proto_plus_hat\hat_proto_plus_03.jpg" width="30%">
## Product Features
@@ -24,68 +21,12 @@
- 1x PROTO PLUS HAT
- 1x 8 pin header90°)
## Weight and Size
- Package size:68mm x 53mm x 12mm
- Package weight:12g
## Applications
- Prototyping
- Related work by M5 User: [view](https://www.hackster.io/kiraku-labo/balance-robot-9009db)
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/PROTO_PLUS_HAT.mp4" type="video/mp4">
</video>
## Example
*To get complete code, please click [here](https://github.com/ShashaDDD/EC11Encoder).*
```arduino
#include <TaskScheduler.h>
#include <M5StickC.h>
#include <Arduino.h>
#include "RotaryEncoderWithButton.h"
//#include <SimpleTimer.h>
//RotaryEncoderWithButton rotary(2,3,4);
RotaryEncoderWithButton rotary(26,36,0);
uint32_t data;
int i;
void t1Callback();
Task t1(5, TASK_FOREVER, &RotaryEncoderWithButton::ReadAB);
Scheduler runner;
void setup() {
M5.begin();
Serial.begin(115200);
rotary.begin();
runner.init();
runner.addTask(t1);
delay(100);
t1.enable();
}
void loop() {
runner.execute();
}
```
<script>
var purchase_link = 'https://m5stack.com/products/m5stickc-proto-plus-hat';
+2 -31
View File
@@ -1,9 +1,8 @@
# PROTO HAT {docsify-ignore-all}
# PROTO HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U060</div>
<img src="assets\img\product_pics\hat\proto_hat\hat_proto_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\proto_hat\hat_proto_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\proto_hat\hat_proto_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\proto_hat\hat_proto_01.jpg"><img src="assets\img\product_pics\hat\proto_hat\hat_proto_02.jpg"></div>
## Description
@@ -12,8 +11,6 @@
PINs on top of the device is ported out for building more connections.<br>
For example, since m5stickc have less hardware resource than m5stack, we can make it up with this HAT module, if you want to add more buttons, you do it with PROTO_HAT. <br><br><br>
<img src="assets\img\product_pics\hat\proto_hat\hat_proto_05.jpg" width="30%">
## Product Features
@@ -25,11 +22,6 @@ For example, since m5stickc have less hardware resource than m5stack, we can mak
- 1x PROTO HAT
## Weight and Size
- Package size:40mm x 42mm x 30mm
- Package weight:13g
## Applications
- Prototyping
@@ -38,27 +30,6 @@ For example, since m5stickc have less hardware resource than m5stack, we can mak
<img src="assets\img\product_pics\hat\proto_hat\hat_proto_04.jpg" width="50%" height="50%">
## Links
- **[Official Channel](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[Official forum](http://forum.m5stack.com/)**
## Example
- **[Arduino](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ENV)**
## Video
**Demo**
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/PROTO-HAT.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/m5stickc-proto-hat';
+2 -14
View File
@@ -1,10 +1,8 @@
# PuppyC {docsify-ignore-all}
# PuppyC
<div class="badge badge-pill badge-primary product_sku_tag">SKU:K035</div>
<img src="assets\img\product_pics\hat\puppyc_hat\puppyc_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\hat\puppyc_hat\puppyc_02.jpg" width="30%" height="30%">
<img src="assets\img\product_pics\hat\puppyc_hat\puppyc_04.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\puppyc_hat\puppyc_01.jpg"><img src="assets\img\product_pics\hat\puppyc_hat\puppyc_02.jpg"></div>
## Description
@@ -14,8 +12,6 @@ PuppyC base needs to be used in conjunction with the M5StickC controller.After t
It walks slowly and is easy to control.Due to the small contact area, the movement is slow and the frictional force is as large as possible even on a soft surface.
<img src="assets\img\product_pics\hat\puppyc_hat\puppyc_03.jpg" width="30%" height="30%">
## Product Features
- Programmable robot
@@ -28,8 +24,6 @@ It walks slowly and is easy to control.Due to the small contact area, the moveme
- Weight58g
- Servo angle range0-180°
## Applications
- Robotic pet
@@ -64,12 +58,6 @@ To get complete code, please click [here](https://github.com/m5stack/M5-ProductE
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/PuppyC)
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/App/PuppyC/PuppyC.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/products/puppyc-w-o-m5stickc';
+7 -20
View File
@@ -1,10 +1,8 @@
# RoverC {docsify-ignore-all}
# RoverC
<div class="badge badge-pill badge-primary product_sku_tag">SKU:K036</div>
<img src="assets\img\product_pics\hat\roverc_hat\roverc_hat_01.jpg" width="20%" height="30%"> <img src="assets\img\product_pics\hat\roverc_hat\roverc_hat_02.jpg" width="20%" height="30%">
<img src="assets\img\product_pics\hat\roverc_hat\roverc_hat_03.jpg" width="20%" height="30%"> <img src="assets\img\product_pics\hat\roverc_hat\roverc_hat_04.jpg" width="20%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\roverc_hat\roverc_hat_01.jpg"> <img src="assets\img\product_pics\hat\roverc_hat\roverc_hat_02.jpg"></div>
## Description
@@ -23,6 +21,8 @@
- Extra Grove ports for expansion
- Equipped with 16340 battery holder
- Flexible movement in all directions
- Size: 75mm * 75mm * 55mm
- Weight213g(include Battery)
## Instructions
Before use, please make sure that the roverc is fully charged. Charging method: insert m5stickc into the roverc, and connect the USB cable for charging.
@@ -41,7 +41,6 @@ MotorControl
<tr><td>04</td><td>0x03</td><td>-127~127</td></tr>
</table>
### Pin Map
<table>
@@ -57,12 +56,6 @@ MotorControl
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/RoverC_USER.MP4" type="video/mp4">
</video>
## Weight and Size
- Size: 75mm * 75mm * 55mm
- Weight213g(include Battery)
## Applications
- Autonomous Rover
@@ -85,22 +78,16 @@ MotorControl
## Example
- **UIFlow**
### UIFlow
<img src="assets\img\product_pics\hat\roverc_hat\roverC.png" width="40%" height="30%">
### Arduino IDE
*Use with JoyC HAT, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/RoverC).*
Use with JoyC HAT, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/RoverC).*
*Use alone [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Application/RoverC_Arduino_Alone
).*
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/RoverC.mp4" type="video/mp4">
</video>
)
<script>
+3 -44
View File
@@ -1,9 +1,8 @@
# RS485 HAT {docsify-ignore-all}
# RS485 HAT
<div class="badge badge-pill badge-primary product_sku_tag">SKU:U067</div>
<img src="assets\img\product_pics\hat\rs485_hat\rs485_hat_01.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\rs485_hat\rs485_hat_02.jpg" width="30%" height="30%"><img src="assets\img\product_pics\hat\rs485_hat\rs485_hat_03.jpg" width="30%" height="30%">
<div class="product_pic"><img src="assets\img\product_pics\hat\rs485_hat\rs485_hat_01.jpg"><img src="assets\img\product_pics\hat\rs485_hat\rs485_hat_02.jpg"></div>
## Description
@@ -31,17 +30,11 @@ It is used to convert the TTL standard to the RS485 standard. If the outside ser
- 1x RS485 HAT
- 1x 4 Pin 3.96 Pitch Terminal
## Weight and Size
- Package size:40mm x 42mm x 30mm
- Package weight:17g
## Applications
- RS485 multipoint systems
- Serial communication in industrial field.
## Links
- **Datasheet** - [SP485EEN](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/SP485EEN_en.pdf)
@@ -67,33 +60,7 @@ It is used to convert the TTL standard to the RS485 standard. If the outside ser
### Arduino IDE
*To get complete code, please click [here](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/RS485).*
```arduino
#include <M5StickC.h>
/* This demo is for RS485 Hat uart write and read ,
AutoSend Hello M5! AutoReceive and diaplay on screen */
void setup() {
M5.begin(true,true,true);
Serial.begin(115200);
// Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
Serial2.begin(115200, SERIAL_8N1, 26, 0);
Serial.println("RS485");
}
void loop() {
Serial2.print("Hello M5!");
if(Serial2.available()) {
char ch = Serial2.read();
M5.Lcd.setTextSize(2);
}
}
```
To get complete code, please click [here](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/RS485)
### Pin Map
@@ -102,14 +69,6 @@ void loop() {
<tr><td>HAT ADC</td><td>TX</td><td>RX</td><td>5V</td><td>GND</td></tr>
</table>
## Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/RS485_HAT.mp4" type="video/mp4" >
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/m5stickc-rs485-hat-aoz1282ci';

Some files were not shown because too many files have changed in this diff Show More