mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
add docs for FINGER and NEOPIXEL
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 390 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 180 KiB |
@@ -8,7 +8,7 @@
|
||||
|
||||
## Description
|
||||
|
||||
The <mark>LoRa</mark> Module is a module with small LoRa module named Ra-02.
|
||||
<mark>LoRa</mark> is a module with small LoRa module named Ra-02.
|
||||
You can program it after connected to any series of M5Stack Core through
|
||||
Blockly, Arduino or MicroPython.
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# FINGER
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_finger_01.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_finger_02.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_finger_grove_c.png" width="30%" height="30%">
|
||||
|
||||
***
|
||||
|
||||
: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)**
|
||||
|
||||
<!-- :memo:**[Description](#Description)** :octocat:**[Example](#Example)** :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
|
||||
|
||||
**<mark>FINGER</mark>** 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
|
||||
|
||||
<img src="assets/img/product_pics/unit/finger_sch.JPG">
|
||||
|
||||
### PinMap
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE C)</td><td>U2RXD</td><td>U2TXD</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>FINGER Unit</td><td>TXD</td><td>RXD</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## Related Video
|
||||
|
||||
- **FINGER Application**
|
||||
|
||||
<iframe height=498 width=510 src="http://player.youku.com/embed/XMzk5NjU4NjM3Ng==" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
+74
-13
@@ -1,4 +1,4 @@
|
||||
# Unit NEOPIXEL
|
||||
# NEOPIXEL
|
||||
|
||||
<img src="assets/img/product_pics/unit/M5GO_Unit_neopixel.png" width="30%" height="30%">
|
||||
|
||||
@@ -8,12 +8,16 @@
|
||||
|
||||
## Description
|
||||
|
||||
This is a RGB LED Cable unit. You can program it using NeoPixel Lib supported by Adafruit or using UiFlow that will be easier. The unit comunicates with M5Core with GROVE Interface.
|
||||
**<mark>NeoPixel</mark>** is a RGB LED Cable unit. You can program it using NeoPixel Lib supported by Adafruit or using [UIFlow](http://flow.m5stack.com) that will be easier. The unit comunicates with M5Core with GROVE Interface.
|
||||
|
||||
?> Be carefull that a Neopixel unit has input port and output port. When this unit is connected with M5Core, the input port must be attach with Core and it's output port can be attach with another neopixel unit as shown below.
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_neopixel_02.png">
|
||||
|
||||
## Feature
|
||||
|
||||
- the length: 10cm/20cm/0.5m/1m/2m
|
||||
- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
|
||||
- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
|
||||
- Two Lego installation holes
|
||||
|
||||
## Related Link
|
||||
@@ -22,31 +26,88 @@ This is a RGB LED Cable unit. You can program it using NeoPixel Lib supported by
|
||||
|
||||
- **[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
|
||||
|
||||
<!-- ```arduino
|
||||
float tmp = dht12.readTemperature();//temperature
|
||||
float hum = dht12.readHumidity();//humidity
|
||||
float pressure = bme.readPressure();//pressure
|
||||
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)。*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
Install FastLED library first.
|
||||
*/
|
||||
#include <M5Stack.h>
|
||||
#include "FastLED.h"
|
||||
|
||||
#define Neopixel_PIN 21
|
||||
#define NUM_LEDS 30
|
||||
|
||||
CRGB leds[NUM_LEDS];
|
||||
uint8_t gHue = 0;
|
||||
static TaskHandle_t FastLEDshowTaskHandle = 0;
|
||||
static TaskHandle_t userTaskHandle = 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("Neopixel example");
|
||||
M5.Lcd.setTextColor(WHITE);
|
||||
M5.Lcd.setCursor(0, 25);
|
||||
M5.Lcd.println("Display rainbow effect");
|
||||
|
||||
// Neopixel initialization
|
||||
FastLED.addLeds<WS2811,Neopixel_PIN,GRB>\
|
||||
(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
|
||||
FastLED.setBrightness(10);
|
||||
xTaskCreatePinnedToCore(FastLEDshowTask, \
|
||||
"FastLEDshowTask", 2048, NULL, 2, NULL, 1);
|
||||
}
|
||||
|
||||
void loop(){
|
||||
}
|
||||
|
||||
void FastLEDshowESP32(){
|
||||
if (userTaskHandle == 0){
|
||||
userTaskHandle = xTaskGetCurrentTaskHandle();
|
||||
xTaskNotifyGive(FastLEDshowTaskHandle);
|
||||
const TickType_t xMaxBlockTime = pdMS_TO_TICKS( 200 );
|
||||
ulTaskNotifyTake(pdTRUE, xMaxBlockTime);
|
||||
userTaskHandle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void FastLEDshowTask(void *pvParameters){
|
||||
for(;;){
|
||||
fill_rainbow(leds, NUM_LEDS, gHue, 7);// rainbow effect
|
||||
FastLED.show();// must be executed for neopixel becoming effective
|
||||
EVERY_N_MILLISECONDS( 20 ) { gHue++; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL)for Specific example. -->
|
||||
<img src="assets/img/product_pics/unit/unit_example/NEOPIXEL/example_unit_neopixel_02.png">
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/NEOPIXEL/example_unit_neopixel_01.png" width="60%" height="60%">
|
||||
|
||||
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/UIFlow).*
|
||||
|
||||
|
||||
<!-- ## Schematic -->
|
||||
|
||||
<!-- <img src="assets/img/product_pics/unit/neopixel_sch.JPG"> -->
|
||||
|
||||
<!-- ### PinMap -->
|
||||
### PinMap
|
||||
|
||||
<!-- <table>
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>NEOPIXEL Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table> -->
|
||||
<tr><td>NEOPIXEL Unit</td><td> </td><td>Signal Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
+1
-1
@@ -82,7 +82,7 @@
|
||||
|
||||
[](en/unit/proto) [](en/unit/gps) [](en/unit/rfid) [](en/unit/heart)
|
||||
|
||||
[](en/unit/cardkb)
|
||||
[](en/unit/cardkb) [](en/unit/finger) [](en/unit/neopixel)
|
||||
|
||||
***
|
||||
|
||||
|
||||
@@ -78,11 +78,11 @@ M5GO物联网开发套件 FACES
|
||||
|
||||
[](zh_CN/unit/rgb) [](zh_CN/unit/relay) [](zh_CN/unit/hub) [](zh_CN/unit/396port)
|
||||
|
||||
<!-- [](zh_CN/unit/neopixel) -->
|
||||
|
||||
|
||||
[](zh_CN/unit/gps) [](zh_CN/unit/proto) [](zh_CN/unit/rfid) [](zh_CN/unit/heart)
|
||||
|
||||
[](zh_CN/unit/cardkb)
|
||||
[](zh_CN/unit/cardkb) [](zh_CN/unit/finger) [](zh_CN/unit/neopixel)
|
||||
|
||||
***
|
||||
|
||||
|
||||
@@ -4,23 +4,37 @@
|
||||
|
||||
***
|
||||
|
||||
:memo:**[描述](#描述)** :octocat:**[例程](#例程)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.18.3b86425eaoE9zU&id=585289225333)**
|
||||
:memo:**[描述](#描述)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.18.3b86425eaoE9zU&id=585289225333)** :clapper:**[相关视频](#相关视频)**
|
||||
|
||||
<!-- :memo:**[描述](#描述)** :octocat:**[例程](#例程)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.18.3b86425eaoE9zU&id=585289225333)** :clapper:**[相关视频](#相关视频)** -->
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>FINGER</mark>**是一款集成FPC1220A的指纹识别Unit,连接M5Core,能实现多人的指纹信息录入、删除,实现身份识别。
|
||||
**<mark>FINGER</mark>**是一款指纹识别Unit,该unit集成了FPC1020A电容式指纹识别模块,集成了指纹识别算法芯片。连接M5Core,能实现多人的指纹信息录入、指纹删除、指纹比对、指纹搜索、特征提取等功能。可以设置指纹识别对比等级和安全级别。
|
||||
|
||||
该unit与M5Core之间通过串口(UART)通信,
|
||||
该unit与M5Core之间通过串口(UART)通信
|
||||
|
||||
串口参数:波特率(921600), 起始位(1位), 停止位(1位), 校验位(无)
|
||||
串口参数:波特率(默认为19200bps), 起始位(1位), 停止位(1位), 校验位(无)
|
||||
|
||||
## 特性
|
||||
|
||||
- 设置指纹识别比对等级
|
||||
- 指纹容量: 150枚
|
||||
- 比对模式 1:N 识别/ 1:1 验证
|
||||
- 指纹识别比对等级范围: 0 ~ 9, 默认为5
|
||||
- 安全等级范围: 1 ~ 5, 默认为3
|
||||
- 响应时间 指纹预处理< 0.45 s
|
||||
- 输入电压范围: 3.3 ~ 6V
|
||||
- 工作温湿度范围: -10 ~ 60°, 20% ~ 80%
|
||||
|
||||
## 例程
|
||||
## 相关链接
|
||||
|
||||
### 1. Arduino IDE
|
||||
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
<!-- ## 例程
|
||||
|
||||
### 1. Arduino IDE -->
|
||||
|
||||
## 原理图
|
||||
|
||||
|
||||
+69
-15
@@ -10,7 +10,9 @@
|
||||
|
||||
**<mark>NeoPixel</mark>**是带GROVE接口的NeoPixel灯带,将NeoPixel Unit与M5Core相连,可以很方便地实现控制,特别是使用[UiFlow](http://flow.m5stack.com)来编程。
|
||||
|
||||
?> **Tip** 注意NeoPixel Unit有输入和输出口,在接M5Core的时候,记得看清楚Unit上的箭头(顺序)方向,一定要输入口接M5Core,然后输出口还可以通过GROVE线,接下一条NeoPixel Unit,从而串联一起。
|
||||
?> NeoPixel Unit有输入和输出口,在接M5Core的时候,记得看清楚Unit上的箭头(顺序)方向,一定要输入口接M5Core,然后输出口还可以通过GROVE线,接下一条NeoPixel Unit,从而串联一起。
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_neopixel_02.png">
|
||||
|
||||
## 特性
|
||||
|
||||
@@ -24,34 +26,86 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **[FastLED库说明](https://github.com/FastLED/FastLED/wiki/Overview)**
|
||||
|
||||
- **[FastLED参考(中文)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
|
||||
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
<!-- ```arduino
|
||||
DHT12 dht12; //new a object
|
||||
Adafruit_BMP280 bme;
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)。*
|
||||
|
||||
float tmp = dht12.readTemperature();//temperature
|
||||
float hum = dht12.readHumidity();//humidity
|
||||
float pressure = bme.readPressure();//pressure
|
||||
```arduino
|
||||
/*
|
||||
Install FastLED library first.
|
||||
*/
|
||||
#include <M5Stack.h>
|
||||
#include "FastLED.h"
|
||||
|
||||
#define Neopixel_PIN 21
|
||||
#define NUM_LEDS 30
|
||||
|
||||
CRGB leds[NUM_LEDS];
|
||||
uint8_t gHue = 0;
|
||||
static TaskHandle_t FastLEDshowTaskHandle = 0;
|
||||
static TaskHandle_t userTaskHandle = 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("Neopixel example");
|
||||
M5.Lcd.setTextColor(WHITE);
|
||||
M5.Lcd.setCursor(0, 25);
|
||||
M5.Lcd.println("Display rainbow effect");
|
||||
|
||||
// Neopixel initialization
|
||||
FastLED.addLeds<WS2811,Neopixel_PIN,GRB>\
|
||||
(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
|
||||
FastLED.setBrightness(10);
|
||||
xTaskCreatePinnedToCore(FastLEDshowTask, \
|
||||
"FastLEDshowTask", 2048, NULL, 2, NULL, 1);
|
||||
}
|
||||
|
||||
void loop(){
|
||||
}
|
||||
|
||||
void FastLEDshowESP32(){
|
||||
if (userTaskHandle == 0){
|
||||
userTaskHandle = xTaskGetCurrentTaskHandle();
|
||||
xTaskNotifyGive(FastLEDshowTaskHandle);
|
||||
const TickType_t xMaxBlockTime = pdMS_TO_TICKS( 200 );
|
||||
ulTaskNotifyTake(pdTRUE, xMaxBlockTime);
|
||||
userTaskHandle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void FastLEDshowTask(void *pvParameters){
|
||||
for(;;){
|
||||
fill_rainbow(leds, NUM_LEDS, gHue, 7);// rainbow effect
|
||||
FastLED.show();// must be executed for neopixel becoming effective
|
||||
EVERY_N_MILLISECONDS( 20 ) { gHue++; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)。 -->
|
||||
<img src="assets/img/product_pics/unit/unit_example/NEOPIXEL/example_unit_neopixel_02.png">
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/NEOPIXEL/example_unit_neopixel_01.png" width="60%" height="60%">
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/UIFlow)。*
|
||||
|
||||
具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/UIFlow)。
|
||||
<img src="assets/img/product_pics/unit/unit_example/NEOPIXEL/example_unit_neopixel_01.png" width="60%" height="60%">
|
||||
|
||||
<!-- ## 原理图
|
||||
|
||||
<img src="assets/img/product_pics/unit/neopixel_sch.JPG"> -->
|
||||
|
||||
<!-- ### 管脚映射 -->
|
||||
### 管脚映射
|
||||
|
||||
<!-- <table>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>NEOPIXEL Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table> -->
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>NEOPIXEL Unit</td><td> </td><td>数字引脚</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user