From 2b09ded00da81ec570f52d14bc2e1b1bb8b18973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A1=A9=E5=85=A5=E5=AD=94=E7=AB=A0?= Date: Thu, 17 Jan 2019 16:14:12 +0800 Subject: [PATCH] add units-ja --- docs/ja/README.md | 39 +++++-- docs/ja/module/encoder.md | 8 +- docs/ja/qs.md | 2 +- .../m5stick/m5stick_quick_start.md | 2 +- docs/ja/unit/cardkb.md | 90 +++++++++++++++ docs/ja/unit/esp32cam.md | 6 +- docs/ja/unit/extio.md | 36 ++++++ docs/ja/unit/finger.md | 50 +++++++++ docs/ja/unit/gps.md | 99 +++++++++++++++++ docs/ja/unit/heart.md | 102 +++++++++++++++++ docs/ja/unit/hex.md | 105 ++++++++++++++++++ docs/ja/unit/neoflash.md | 45 ++++++++ docs/ja/unit/rfid.md | 94 ++++++++++++++++ docs/ja/unit/rs485.md | 35 ++++++ 14 files changed, 694 insertions(+), 19 deletions(-) create mode 100644 docs/ja/unit/cardkb.md create mode 100644 docs/ja/unit/extio.md create mode 100644 docs/ja/unit/finger.md create mode 100644 docs/ja/unit/gps.md create mode 100644 docs/ja/unit/heart.md create mode 100644 docs/ja/unit/hex.md create mode 100644 docs/ja/unit/neoflash.md create mode 100644 docs/ja/unit/rfid.md create mode 100644 docs/ja/unit/rs485.md diff --git a/docs/ja/README.md b/docs/ja/README.md index 2dee1bd1..4ce38ee5 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -46,7 +46,7 @@ -**FACES向け** +**FACESモジュール** [![encoder_01.jpg](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/module/module_encoder_01.png)](ja/module/encoder)          @@ -60,29 +60,46 @@ -[![unit_m5camera.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_m5camera_01.png)](ja/unit/m5camera) +  -[![unit_env.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_env_01.png)](ja/unit/env)         [![unit_ir.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_ir_01.png)](ja/unit/ir)         [![unit_pir.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_pir_01.png)](ja/unit/pir)         [![unit_angle.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_angle_01.png)](ja/unit/angle) +[![unit_esp32cam.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_esp32cam_01.png)](ja/unit/esp32cam)         [![unit_m5camera.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_m5camera_01.png)](ja/unit/m5camera) -[![unit_adc.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_adc_01.png)](ja/unit/adc)         [![unit_dac.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_dac_01.png)](ja/unit/dac)         [![unit_button.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_button_01.png)](ja/unit/button)         [![unit_dual_button.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_dual_button_01.png)](ja/unit/dual_button) +  -[![unit_light.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_light_01.png)](ja/unit/light)         [![unit_makey.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_makey_01.png)](ja/unit/makey)         [![unit_ncir.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_ncir_01.png)](ja/unit/ncir)         [![unit_thermal.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_thermal_01.png)](ja/unit/thermal) +[![unit_env.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_env_01.png)](ja/unit/env)         [![unit_earth.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_earth_01.png)](ja/unit/earth)         [![unit_light.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_light_01.png)](ja/unit/light)         [![unit_angle.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_angle_01.png)](ja/unit/angle) -[![unit_joystick.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_joystick_01.png)](ja/unit/joystick)         [![unit_earth.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_earth_01.png)](ja/unit/earth)         [![unit_color.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_color_01.png)](ja/unit/color)         [![unit_tof.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_tof_01.png)](ja/unit/tof) +  - +[![unit_ir.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_ir_01.png)](ja/unit/ir)         [![unit_pir.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_pir_01.png)](ja/unit/pir)         [![unit_ncir.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_ncir_01.png)](ja/unit/ncir)         [![unit_thermal.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_thermal_01.png)](ja/unit/thermal) + +  + +[![unit_button.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_button_01.png)](ja/unit/button)         [![unit_dual_button.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_dual_button_01.png)](ja/unit/dual_button)         [![unit_joystick.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_joystick_01.png)](ja/unit/joystick)         [![unit_cardkb.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_cardkb_01.png)](ja/unit/cardkb) + +  + +[![unit_color.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_color_01.png)](ja/unit/color)         [![unit_tof.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_tof_01.png)](ja/unit/tof)         [![unit_heart.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_heart_01.png)](ja/unit/heart)         [![unit_rfid.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_rfid_01.png)](ja/unit/rfid) + +  + +[![unit_adc.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_adc_01.png)](ja/unit/adc)         [![unit_dac.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_dac_01.png)](ja/unit/dac)         [![unit_makey.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_makey_01.png)](ja/unit/makey)         [![unit_rgb.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_rgb_01.png)](ja/unit/rgb) +  -[![unit_rgb.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_rgb_01.png)](ja/unit/rgb)         [![unit_relay.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_relay_01.png)](ja/unit/relay)         [![unit_hub.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_hub_01.png)](ja/unit/hub)         [![unit_396port.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_396port_01.png)](ja/unit/396port) +[![unit_relay.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_relay_01.png)](ja/unit/relay)         [![unit_hub.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_hub_01.png)](ja/unit/hub)         [![unit_396port.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_396port_01.png)](ja/unit/396port)         [![unit_proto.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_proto_01.png)](ja/unit/proto) +  +[![unit_extio.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_extio_01.png)](ja/unit/extio)         [![unit_rs485.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_rs485_01.png)](ja/unit/rs485)         [![unit_gps.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_gps_01.png)](ja/unit/gps)         [![unit_finger.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_finger_01.png)](ja/unit/finger) -[![unit_gps.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_gps_01.png)](ja/unit/gps)         [![unit_proto.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_proto_01.png)](ja/unit/proto)         [![unit_neopixel.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neopixel_01.png)](ja/unit/neopixel) +  - +[![unit_neopixel.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neopixel_01.png)](ja/unit/neopixel)         [![unit_hex.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_hex_01.png)](ja/unit/hex)         [![unit_neoflash.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neoflash_01.png)](ja/unit/neoflash) + + *** diff --git a/docs/ja/module/encoder.md b/docs/ja/module/encoder.md index 4177e28d..9ae1a054 100644 --- a/docs/ja/module/encoder.md +++ b/docs/ja/module/encoder.md @@ -4,7 +4,7 @@ *** -:memo:**[概要](#概要)**      :octocat:**[サンプルコード](#サンプルコード)**      :electric_plug:**[回路図](#回路図)**      🛒**[購入](https://www.aliexpress.com/item/M5Stack-Encoder-Panel-for-M5Stack-FACES-ESP32-Pocket-Computer-with-12pcs-NeoPixel-LED-MEGA328-Inside-I2C/32960440900.html)** +:memo:**[概要](#概要)**      :octocat:**[サンプルコード](#サンプルコード)**      :electric_plug:**[回路図](#回路図)**      🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-Encoder-Panel-for-M5Stack-FACES-ESP32-Pocket-Computer-with-12pcs-NeoPixel-LED-MEGA328-Inside-I2C/32960440900.html)** ## 概要 @@ -70,11 +70,11 @@ void get_encoder_increment(void){ ## 関連リンク -- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** +- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** -- **[Forum](http://forum.m5stack.com/)** +- **[フォーラム](http://forum.m5stack.com/)** -- **[The Firmware of inside MEGA328](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/ENCODER/firmware_328p/FacesEncoder328)** +- **[ATmega328pファームウェア](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/ENCODER/firmware_328p/FacesEncoder328)** ## サンプルコード diff --git a/docs/ja/qs.md b/docs/ja/qs.md index b7fdc22e..3fb450bf 100644 --- a/docs/ja/qs.md +++ b/docs/ja/qs.md @@ -23,7 +23,7 @@ M5Stackを使った開発に必要なもの: ## クイックスタート -!> **注意** すでにシリアルドライバをインストールしている場合、PCとのシリアル接続が確立しているか確認してください。もしうまくいかない場合は次のページを参照してください。 [シリアル接続の確立方法](/en/related_documents/establish_serial_connection) +!> **注意** すでにシリアルドライバをインストールしている場合、PCとのシリアル接続が確立しているか確認してください。もしうまくいかない場合は次のページを参照してください。 [シリアル接続の確立方法](/ja/related_documents/establish_serial_connection) 最初に特定のファームウェアファイルを(.bin)をあなたのM5Stackに書き込む必要があります。 開発の前にこちらのページを参照してください。[ファームウェアの更新方法](/ja/related_documents/how_to_burn_firmware) diff --git a/docs/ja/quick_start/m5stick/m5stick_quick_start.md b/docs/ja/quick_start/m5stick/m5stick_quick_start.md index d399490f..adebb9e8 100644 --- a/docs/ja/quick_start/m5stick/m5stick_quick_start.md +++ b/docs/ja/quick_start/m5stick/m5stick_quick_start.md @@ -10,4 +10,4 @@ - + diff --git a/docs/ja/unit/cardkb.md b/docs/ja/unit/cardkb.md new file mode 100644 index 00000000..91aeb4e1 --- /dev/null +++ b/docs/ja/unit/cardkb.md @@ -0,0 +1,90 @@ +# CARDKB + + + +*** + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-CardKB-Mini-Keyboard-Unit-with-MEGA328P-GROVE-Port-I2C-ISP-for-M5Stack-ESP32-Arduino/3226069_32963872643.html?spm=a2g03.12010615.8148356.28.7b686481fhK2em)** + + + +## Description + +**CardKB** is a unit can achieve QWERTY full keyboard. It also can achieve button combination(Sym+Key, Shift+Key, Fn+Key) and output richer key value. This unit communicates with M5Core through GROVE A port(IIC interface), and it's IIC address is 0x5F. + +**1. Button combination description:** + +* **Single button pressed**, keyborad will output the first key value(letter button will output lower case form). E.g if "Q" was pressed, keyboard will output "q"(lower case). + +* **Sym+key**, keyborad will output the second key value. E.g if "Sym" was single pressed, then "Q" was pressed, the keyboard will output "{". If "Sym" was double clicked, then the keyboard will lock this function, all key pressed will output it's second key value. + +* **Shift+key**, if a letter button was pressed, it'll output upper case form. E.g if "Shift" was single pressed, then "Q" was pressed, the keyboard will output "Q". If "Shift" was double clicked, then the keyboard will lock this function, all letter key pressed will output it's upper case form. + +* **Fn+key(custom function key combination)**, keyborad will output the third key value. You can custom what function the key pressed corresponds. + + + +## Feature + +- GROVE interface, IIC communication + +- Full keyboard function, multi-key combination + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- **[The Firmware of inside MEGA328](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/firmware_328p)** + +## Example + +### 1. Arduino IDE + +*If you want the example code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/Arduino)。* + +```arduino +#include +#include + +#define CARDKB_ADDR 0x5F + +void setup() +{ + M5.begin(); + Serial.begin(115200); + Wire.begin(); + pinMode(5, INPUT); + digitalWrite(5, HIGH); + M5.Lcd.fillScreen(BLACK); + M5.Lcd.setCursor(1, 10); + M5.Lcd.setTextColor(YELLOW); + M5.Lcd.setTextSize(2); + M5.Lcd.printf("IIC Address: 0x5F\n"); + M5.Lcd.printf(">>"); +} +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); + // M5.Speaker.beep(); + } + } +} +``` + + + +### PinMap + + + + +
M5Core(GROVE A)GPIO22GPIO215VGND
CardKBSCLSDA5VGND
\ No newline at end of file diff --git a/docs/ja/unit/esp32cam.md b/docs/ja/unit/esp32cam.md index 86de7ea2..b6c67b19 100644 --- a/docs/ja/unit/esp32cam.md +++ b/docs/ja/unit/esp32cam.md @@ -1,6 +1,6 @@ # ESP32Cam ユニット - + *** @@ -51,7 +51,9 @@ - **[フォーラム](http://forum.m5stack.com/)** -- **データシート** - [ESP32](https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_cn.pdf) - [OV2640](https://www.uctronics.com/download/cam_module/OV2640DS.pdf) +- **データシート** + - [ESP32](https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_cn.pdf) + - [OV2640](https://www.uctronics.com/download/cam_module/OV2640DS.pdf) ## 関連情報 diff --git a/docs/ja/unit/extio.md b/docs/ja/unit/extio.md new file mode 100644 index 00000000..88ad3c37 --- /dev/null +++ b/docs/ja/unit/extio.md @@ -0,0 +1,36 @@ +# EXT.IO + + + +*** + +:memo:**[Description](#Description)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-Extend-Serial-IO-I-O-Unit-Grove-Cable-I2C-Interface-for-Arduino-Blockly-ESP32/3226069_32966582585.html?spm=a2g03.12010615.8148356.48.3b773d71o7oNY1)** + + + +## Description + +**EXT.IO** is a unit used to expand I/O port. It integrates PCA9554PW that can achieve two I/O pins expand to 8 bits of General Purpose parallel Input/Output(GPIO). + +This unit connects to GRVOE A interface on M5Core, and it communicates with M5Core through IIC(the IIC address is 0x27). + +## Feature + +- Expanded I/O number: 8 +- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc) +- Two Lego installation holes + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- Datasheet - **[PCA9554PW](https://pdf1.alldatasheet.com/datasheet-pdf/view/86709/PHILIPS/PCA9554PW.html)** + +### PinMap + + + + +
M5Core(GROVE A)GPIO22GPIO215VGND
EXT.IO UnitSCLSDA5VGND
\ No newline at end of file diff --git a/docs/ja/unit/finger.md b/docs/ja/unit/finger.md new file mode 100644 index 00000000..d6c8bdca --- /dev/null +++ b/docs/ja/unit/finger.md @@ -0,0 +1,50 @@ +# FINGER + + + +*** + +:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-Finger-Print-Unit-FPC1020A-Capacitive-Fingerprint-Identification-Module-Grove-Cable-UART-Interface-for-ESP32/3226069_32966642182.html?spm=a2g03.12010612.8148356.36.73ee56a05T9uR7)**      :clapper:**[Related Video](#Related-Video)** + + + +## Description + +**FINGER** is a fingerprint recognition unit. The unit integrates the FPC1020A capacitive fingerprint recognition module and Fingerprint recognition algorithm chip. It can realize fingerprint information entry, fingerprint deletion, fingerprint search, feature extraction for multiple people and so on. The unit also can be set fingerprint recognition comparison level and different security level. + +It's serial communication(UART Interface) between FINGER and M5Core. + +The parameter of USART: Baudrate(default: 19200bps), Start bits(1 bit), Stop bits(1 bit), Parity(no) + +## Feature + +- Fingerprint recognition capacity: 150 pices +- Comparison mode: 1:N or 1:1 +- Comparison level: 0 ~ 9(default: 5) +- Security level: 1 ~ 5(default: 3) +- Response time: fingerprint preprocessing < 0.45s +- Input voltage range: 3.3 ~ 6V +- Operating temperature and humidity: -10 ~ 60°, 20% ~ 80% + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +## Schematic + + + +### PinMap + + + + +
M5Core(GROVE C)U2RXDU2TXD5VGND
FINGER UnitTXDRXD5VGND
+ +## Related Video + +- **FINGER Application** + + \ No newline at end of file diff --git a/docs/ja/unit/gps.md b/docs/ja/unit/gps.md new file mode 100644 index 00000000..d619dc03 --- /dev/null +++ b/docs/ja/unit/gps.md @@ -0,0 +1,99 @@ +# GPS + + + +*** + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-GPS-BDS-Mini-Unit-Board-AT6558-MAX2659-with-GROVE-Port-UART-Interface-M5GO-M5Stack/3226069_32959837627.html?spm=a2g03.12010615.8148356.4.d2df160dp0aQSw)** + + + +## Description + +**GPS**with **AT6558** inside which is created and developed by a Chinese Company named Zhongkewei. AT6558 is capable of highly performance,supportting many types of satellite navigation system. It is capable of receiving GNSS signal from 6 satellite navigation system, and capable of joint location ,navigation,and timing . Therefore the module is able to obtain accurate global location information . You can connect it to M5Core port C with GROVE cable, and develope it with UART communication. Regards to the gps Unit , a signal amplifying chip is **MAX2659** integrated inside . + +## Feature + +- Supportting many types of satellite navigation system, China BDS , USA GPS, and Russia GLONASS etc +- AT6558 + - 15mA Ultra low power comsume + - integrated radio frequency,base band, flash + - working temperature:-40~85℃ + +- With two Lego plugin holes on the Unit, it could be more easier to compatable with Lego mountings + +## 应用 + +- Vehicle location +- Intelligent Law enforcement location + +## 相关链接 + +- **[Offical Video](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)** + +- **[Forum](http://forum.m5stack.com/)** + +- **[Datasheet]** - [AT6558](http://www.icofchina.com/d/file/xiazai/2016-12-05/b1be6f481cdf9d773b963ab30a2d11d8.pdf) - [MAX2659](https://datasheets.maximintegrated.com/en/ds/MAX2659.pdf) + +- **[TinyGPS++ library](http://arduiniana.org/libraries/tinygpsplus/)** + +- **[CASIC multimode satellite navigation receiver protocol specification](http://www.icofchina.com/d/file/xiazai/2017-05-02/ea0cdd3d81eeebcc657b5dbca80925ee.pdf)** + +- **[GnssToolKit3(Windows Version)](http://www.icofchina.com/d/file/xiazai/2018-05-23/2b29a8da746eec0ef1dcd9deae895298.zip)** + +## Example + +### 1. Arduino IDE + +*If you want the complete code `GPSRaw.ino`, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/GPS/Arduino).* + +```arduino +#include + +/* By default, GPS is connected with M5Core through UART2 */ +HardwareSerial GPSRaw(2); + +void setup() { + M5.begin(); + GPSRaw.begin(9600);// GPS init + Serial.println("hello"); + termInit(); +} + +void loop() { + // put your main code here, to run repeatedly: + if(Serial.available()) { + int ch = Serial.read(); + GPSRaw.write(ch); + } + if(GPSRaw.available()) { + int ch = GPSRaw.read();// read GPS information + Serial.write(ch); + termPutchar(ch); + } +} +``` + +After burnt the example code `GPSRaw.ino`, m5core and PC serial terminal will display following information + +``` +$GPGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5*02 +$BDGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5*13 +$GPGSV,1,1,00*79 +$BDGSV,1,1,00*68 +$GNRMC,,V,,,,,,,,,,M*4E +$GNVTG,,,,,,,,,M*2D +$GNZDA,,,,,,*56 +$GPTXT,01,01,01,ANTENNA OPEN*25 +``` + +## Schematic + + + +### PinMap + + + + +
M5Core(GROVE C)U2RXD(GPIO16)U2TXD(GPIO17)5VGND
GPS UnitSignal Transmitter(TXD)Signal Receiver(RXD)5VGND
diff --git a/docs/ja/unit/heart.md b/docs/ja/unit/heart.md new file mode 100644 index 00000000..56debbbd --- /dev/null +++ b/docs/ja/unit/heart.md @@ -0,0 +1,102 @@ +# HEART + + + +*** + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**       :electric_plug:**[Schematic](#Schematic)**       🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Newest-Mini-Heart-Rate-Unit-MAX30100-Module-Sensor-for-Arduino-Low-Power-Heart-Rate-Oxygen/3226069_32960528289.html?spm=a2g03.12010615.8148356.2.770159282aM5qM)** + +## Description + +**HEART** is a unit integrated **MAX30100**(pulse oximeter chip). The principle is that the amount of oxygen and non-carrying oxygen in the red blood cells can be detected by infrared LED illumination, and the ADC value of the heart rate can be obtained. MAX30100 is built in two light emitting diodes and one light detector. After the unit is connected to the GROVE A port of the M5Core, you only need to put your finger on the MAX30110 module of the unit to read the physiological information. + +## Feature + +- Low noise +- Can output specific blood oxygen value and heart rate value +- GROVE interface, support [Arduino](http://www.arduino.cc) +- Two Lego installation holes + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- **Datasheet** - [MAX30100](https://datasheets.maximintegrated.com/en/ds/MAX30110.pdf) + +- **[MAX30100lib](https://github.com/oxullo/Arduino-MAX30100)** + +## Example + +### 1. Arduino IDE + +*If you want the code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEART/Arduino).* + +```arduino +/* + Install MAX30100lib Library first. + + MAX30100_RawData.ino +*/ +#include +#include "MAX30100.h" + +#define SAMPLING_RATE MAX30100_SAMPRATE_100HZ +#define IR_LED_CURRENT MAX30100_LED_CURR_50MA +#define RED_LED_CURRENT MAX30100_LED_CURR_27_1MA +// set HIGHRES_MODE to true only +// when setting PULSE_WIDTH to MAX30100_SPC_PW_1600US_16BITS +#define PULSE_WIDTH MAX30100_SPC_PW_1600US_16BITS +#define HIGHRES_MODE true + +// new a object +MAX30100 sensor; + +void setup() +{ + Serial.begin(115200); + Serial.print("Initializing MAX30100.."); + if (!sensor.begin()) { + Serial.println("FAILED"); + for(;;); + } else { + Serial.println("SUCCESS"); + } + sensor.setMode(MAX30100_MODE_SPO2_HR); + sensor.setLedsCurrent(IR_LED_CURRENT, RED_LED_CURRENT); + sensor.setLedsPulseWidth(PULSE_WIDTH); + sensor.setSamplingRate(SAMPLING_RATE); + sensor.setHighresModeEnabled(HIGHRES_MODE); +} + +void loop() +{ + uint16_t ir, red; + sensor.update(); + while (sensor.getRawValues(&ir, &red)) { + Serial.print(ir); + Serial.print('\t'); + Serial.println(red); + } +} +``` + + + + + +## Schematic + + + +### PinMap + + + + +
M5Core(GROVE A)GPIO22GPIO215VGND
HEART UnitSCLSDA5VGND
\ No newline at end of file diff --git a/docs/ja/unit/hex.md b/docs/ja/unit/hex.md new file mode 100644 index 00000000..b2afb5d8 --- /dev/null +++ b/docs/ja/unit/hex.md @@ -0,0 +1,105 @@ +# HEX + + + +*** + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-New-HEX-NeoPixel-LED-Board-with-WS6812-37pcs-NeoPixel-Three-GROVE-Port-and-Power-Input/3226069_32961683136.html?spm=a2g03.12010615.8148356.2.d4652ef23dWS29)** + +## Description + +**HEX** is a hexagon RGB LED unit built in 37 RGB. And you can connect many HEXs in series one by one. + +This's a figure about HEX serial number. + + + +## Feature + +- The number of RGB: 37 +- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc) + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)** + +- **[FastLED Reference(Chinese version)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)** + +## Example + +### 1. Arduino IDE + +This is a HEX example that displays gradient rainbow color. Before compiling this example, you need to install FastLED library and connect HEX to GROVE A of M5Core. + +*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/Arduino)。* + +```arduino +/* + Install FastLED library first.(HEX is connected to GROVE A) + */ +#include +#include "FastLED.h" + +#define Neopixel_PIN 21 +#define NUM_LEDS 37 + +CRGB leds[NUM_LEDS]; +uint8_t gHue = 0; + +void setup() { + Serial.begin(115200); + M5.begin(); + M5.Lcd.clear(BLACK); + M5.Lcd.setTextColor(YELLOW); M5.Lcd.setTextSize(2); M5.Lcd.setCursor(40, 0); + M5.Lcd.println("HEX Example"); + M5.Lcd.setTextColor(WHITE); + M5.Lcd.setCursor(0, 25); + M5.Lcd.println("Display rainbow effect"); + + // Neopixel initialization + FastLED.addLeds/ + (leds, NUM_LEDS).setCorrection(TypicalLEDStrip); + FastLED.setBrightness(10); +} + +void loop(){ + fill_rainbow( leds, NUM_LEDS, gHue, 7); + FastLED.show();// must be executed for neopixel becoming effective + EVERY_N_MILLISECONDS( 20 ) { gHue++; } +} +``` + + + +### UIFlow + +*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/UIFlow).* + + + +### PinMap + +**If HEX was connected to GROVE A** + + + + +
M5Core(GROVE A)GPIO22GPIO215VGND
HEX Unit HEX Pin5VGND
+ +**If HEX was connected to GROVE B** + + + + +
M5Core(GROVE B)GPIO36GPIO265VGND
HEX Unit HEX Pin5VGND
+ +**If HEX was connected to GROVE C** + + + + +
M5Core(GROVE C)GPIO16GPIO175VGND
HEX Unit HEX Pin5VGND
\ No newline at end of file diff --git a/docs/ja/unit/neoflash.md b/docs/ja/unit/neoflash.md new file mode 100644 index 00000000..b6d3d8a7 --- /dev/null +++ b/docs/ja/unit/neoflash.md @@ -0,0 +1,45 @@ +# NEOFLASH + + + +*** + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Newest-NeoFlash-Light-Board-made-of-Acrylic-with-192pcs-NeoPixels-and-PIR-Sensor-compatible-with/3226069_32957760176.html?spm=a2g03.12010615.8148356.2.66ca32c6EOLxpR)** + +## Description + +**NEOFLASH**is a RGB LED panel with 192 RGB LED(24x8). The upper right corner is the first LED, and the LEDs are incremented from left to right and top to bottom. NEOFLASH is also equipped with three GROVE A interfaces (IIC interfaces) for easy integration with Neoflash. + + + +## Feature + +- The number of RGB: 192 +- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc) + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)** + +- **[FastLED Reference(Chinese version)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)** + +## Example + +### 1. Arduino IDE + +This is a example that takes real-time time from the network and displays it on NEOFLASH. Show real time when someone is shaking before NEOFLASH, otherwise the time "disappears". + +*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)。* + + + +### PinMap + + + + +
M5Core(GROVE B)GPIO36GPIO265VGND
NEOFLASH UnitPIR PinRGB Pin5VGND
\ No newline at end of file diff --git a/docs/ja/unit/rfid.md b/docs/ja/unit/rfid.md new file mode 100644 index 00000000..c8b7a20c --- /dev/null +++ b/docs/ja/unit/rfid.md @@ -0,0 +1,94 @@ +# RFID + + + +*** + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**       :electric_plug:**[Schematic](#Schematic)**       🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Newest-Mini-RFID-Unit-RC522-Module-Sensor-for-Arduino-SPI-Writer-Reader-IC-Card-with/3226069_32963407976.html?spm=a2g03.12010615.8148356.2.29057436VJRuWu)** + +## Description + +**RFID** is a unit integrated **MFRC522**(which hightly integrates reader/writer IC for contactless communication at 13.56MHz). The unit can realize the function of the card reading device, can identify and record multiple card information, and establish applications such as access control system, punching system, warehouse goods storage and community vehicle access registration. + +The Unit is connected to the M5Core's GROVE A interface via the GROVE line and communicates via IIC with an IIC address of 0x28. + +## Feature + +- I2C data rate: Fast mode: up to 400 Kbit/s; High-speed mode: up to 3400 Kbit/s +- Supported protocol: ISO14443A, MIFARE and NTAG +- Operate temperature: -20℃-85℃ +- How long data be saved for: > 10 years +- GROVE interface, support [Arduino](http://www.arduino.cc) +- Two Lego installation holes + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- **Datasheet** - [MFRC522](https://www.nxp.com/docs/en/data-sheet/MFRC522.pdf) + +## Example + +### 1. Arduino IDE + +*The below code is incomplete(just for usage). If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/RFID/Arduino).* + +After programming the RFID.ino, the IC card or the mobile phone NFC, close to the unit, moves back and forth around the unit, and the UID of the IC card or the RFID chip in the mobile phone will be printed on the screen of the M5Core. + +```arduino +/* + RFID.ino +*/ +#include +#include "MFRC522_I2C.h" +#include + +// 0x28 is i2c address on SDA. Check your address with i2cscanner if not match. +MFRC522 mfrc522(0x28); // Create MFRC522 instance. + +// initialization +M5.begin(); Serial.begin(115200); Wire.begin(); +/* Init MFRC522 */ +mfrc522.PCD_Init(); +/* Show details of PCD - MFRC522 Card Reader details */ +ShowReaderDetails(); + +// get the uid of available card +mfrc522.PICC_IsNewCardPresent();// scan for a new card +mfrc522.PICC_ReadCardSerial();// read data +// a new card is selected. The UID and SAK is saved at mfrc522.uid structor. +for (byte i = 0; i < mfrc522.uid.size; i++) { + Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); + Serial.print(mfrc522.uid.uidByte[i], HEX); +} + +// other function +void ShowReaderDetails() { + /* Get the MFRC522 software version */ + byte v = mfrc522.PCD_ReadRegister(mfrc522.VersionReg); + if (v == 0x91) Serial.print(F(" = v1.0")); + else if (v == 0x92) Serial.print(F(" = v2.0")); + else Serial.print(F(" (unknown)")); +} +``` + + + + + +## Schematic + + + +### PinMap + + + + +
M5Core(GROVE A)GPIO22GPIO215VGND
RFID UnitSCLSDA5VGND
\ No newline at end of file diff --git a/docs/ja/unit/rs485.md b/docs/ja/unit/rs485.md new file mode 100644 index 00000000..0ddff9fb --- /dev/null +++ b/docs/ja/unit/rs485.md @@ -0,0 +1,35 @@ +# RS485 + + + +*** + +:memo:**[Description](#Description)**      🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-RS485-to-TTL-Unit-GROVE-Grove-Cable-UART-Interface-for-Arduino-ESP32-Development-Board/3226069_32966570641.html?spm=a2g03.12010615.8148356.2.5e6e66005SP84o)** + + + +## Description + +**RS485** is a unit used for converting TTL level to RS485 level. If the device to be controlled only can communicate with other device through RS485, you can connect this device with M5Core through this unit. In this case, you could easily control a RS485 device with [UIFlow](http://flow.m5stack.com). + +## Feature + +- Built in MAX485/SP485EEN +- Drive RS485 devices up to 12V +- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc) +- Two Lego installation holes + +## Related Link + +- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)** + +- **[Forum](http://forum.m5stack.com/)** + +- Datasheet - **[MAX485](https://pdf1.alldatasheet.com/datasheet-pdf/view/73463/MAXIM/MAX485.html)** - **[SP485EEN](https://pdf1.alldatasheet.com/datasheet-pdf/view/45954/SIPEX/SP485EEN.html)** + +### PinMap + + + + +
M5Core(GROVE C)U2RXD(GPIO16)U2TXD(GPIO17)5VGND
RS485 UnitRS485 TXDRS485 RXD5VGND
\ No newline at end of file