From fd94d7ed44f1013dc3aa5e4202825174d016b9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A1=A9=E5=85=A5=E5=AD=94=E7=AB=A0?= Date: Sat, 30 Mar 2019 10:43:55 +0800 Subject: [PATCH] update finger unit docs ja en --- docs/en/unit/finger.md | 3 +- docs/ja/unit/finger.md | 86 +++++++++++++++++++++++++++++++++++------- 2 files changed, 74 insertions(+), 15 deletions(-) diff --git a/docs/en/unit/finger.md b/docs/en/unit/finger.md index ae4e60ad..027d6773 100644 --- a/docs/en/unit/finger.md +++ b/docs/en/unit/finger.md @@ -14,7 +14,7 @@ **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) +The parameter of UART: Baudrate(**default: 19200bps**), Start bits(1 bit), Stop bits(1 bit), Parity(no) ## Feature @@ -86,6 +86,7 @@ res1 = fpm_compareFinger(); // delete all user res1 = fpm_deleteAllUser(); ``` + ## Schematic diff --git a/docs/ja/unit/finger.md b/docs/ja/unit/finger.md index b1cc473b..a9283720 100644 --- a/docs/ja/unit/finger.md +++ b/docs/ja/unit/finger.md @@ -4,27 +4,42 @@ *** -:memo:**[概要](#概要)**      :electric_plug:**[回路図](#回路図)**      🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-Official-Finger-Print-Unit-FPC1020A-Capacitive-Fingerprint-Identification-Module-Grove-Cable-UART-Interface-for-ESP32/32966642182.html)**      :clapper:**[関連動画](#関連動画)** - - +:memo:**[概要](#概要)**      :octocat:**[サンプルコード](#サンプルコード)**      :electric_plug:**[回路図](#回路図)**      🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-Official-Finger-Print-Unit-FPC1020A-Capacitive-Fingerprint-Identification-Module-Grove-Cable-UART-Interface-for-ESP32/32966642182.html)**      :clapper:**[関連動画](#関連動画)** ## 概要 -**FINGER**は指紋認識ユニットです。静電容量式指紋認識モジュール(FPC1020A)という指紋認識アルゴリズムチップを搭載しています。指紋情報入力、指紋削除、指紋検索、複数人の特徴抽出などを実現できます。 このユニットは指紋認識・比較レベルや様々なセキュリティレベルを設定することができます。 +**FINGER**は指紋認識ユニットです。静電容量方式指紋認識モジュール(FPC1020A)という指紋認識アルゴリズムチップを搭載しています。指紋情報入力、指紋削除、指紋検索、複数人の特徴抽出などを実現できます。 このユニットは指紋認識・比較レベルや様々なセキュリティレベルを設定することができます。 FINGERとM5Coreはシリアル通信(UART)で接続されます。 -USARTパラメータ: ボーレート(デフォルト: 19200bps), スタートビット(1 bit), ストップビット(1 bit), パリティ(no) +UARTパラメータ: ボーレート(デフォルト: 19200bps), スタートビット(1 bit), ストップビット(1 bit), パリティ(no) ## 特徴 +| タイプ | 仕様 | +|:-|:-| +| 指紋容量 | 1000/1700/2000/3000 ( デフォルト 1700 ) | +| 本人拒否率 | <0.001% ( セキュリティレベル 3 ) | +| 他人受入率 | <0.1% ( セキュリティレベル 3 ) | +| 比較モード | 1 : 1 検証 / 1 : N 識別 | +| セキュリティレベル | 1 ~ 5 ( デフォルト 3 ) | +| 待機電流 | < 20 uA | +| 応答時間 | 前処理時間 < 0.45s | +| 出力フォーマット | 3タイプ: ユーザー名、画像、署名 | +| 署名サイズ | 193 Byte | +| 通信インターフェース | UART | +| 通信ボーレート | 9600 ~ 115200 ( デフォルト 19200 ) | +| 動作温度 | -10° ~ 60° | +| 動作湿度 | 20% ~ 80% | -- 静電容量式指紋認識: 150 pices -- 比較モード: 1:N or 1:1 -- 比較レベル: 0 ~ 9(default: 5) -- セキュリティレベル: 1 ~ 5(default: 3) -- 応答時間: fingerprint preprocessing < 0.45s -- 入力電圧範囲: 3.3 ~ 6V -- 動作温度および湿度: -10 ~ 60°, 20% ~ 80% +## パッケージ内容 + +- 1x FINGER ユニット +- 1x Grove ケーブル + +## 応用例 + +- 指紋による出欠確認 +- 指紋認証ロック ## 関連リンク @@ -32,6 +47,49 @@ USARTパラメータ: ボーレート(デフォルト: 19200bps), スタート - **[フォーラム](http://forum.m5stack.com/)** +- **[FINGERユニット通信プロトコル](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_en.DOC)** + +## サンプルコード + +### 1. Arduino IDE + +*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/FINGER/Arduino)。* + +```arduino +/* + Connect to GRVOE C on M5Core +*/ +#include +#include "finger.h" + +uint8_t userNum; //User number +uint8_t res1; + +// result for "res1" +#define ACK_SUCCESS 0x00 +#define ACK_FAIL 0x01 +#define ACK_FULL 0x04 +#define ACK_NOUSER 0x05 +#define ACK_USER_EXIST 0x07 +#define ACK_TIMEOUT 0x08 + +// initialization +M5.begin(); +Serial2.begin(19200, SERIAL_8N1, 16, 17); +userNum = fpm_getUserNum(); +M5.Lcd.print("userNum:"); +M5.Lcd.println(userNum); + +// add a new user +res1 = fpm_addUser(userNum,1); //get function result + +// compare your finger +res1 = fpm_compareFinger(); + +// delete all user +res1 = fpm_deleteAllUser(); +``` + ## 回路図 @@ -40,13 +98,13 @@ USARTパラメータ: ボーレート(デフォルト: 19200bps), スタート - +
M5Core(GROVE C)U2RXDU2TXD5VGND
FINGER UnitTXDRXD5VGND
FINGERユニットTXDRXD5VGND
## 関連動画 - **FINGER アプリケーション** -