[Arduino] Capacitive Fingerprint Reader 电容式指纹模块

参考

模块外观

整体:

主控板: 

传感器:

接口介绍

由上图可以看到,该模块有6个接口:

  • VCC - 3.3V或5V
  • GND - 接地
  • TXD - 指纹模块串口发送,对应单片机串口接收
  • RXD - 指纹模块串口接收,对应单片机串口发送
  • WAKE - 指纹头唤醒,可不接,IO
  • RST - 指纹模块复位,可不接,IO

连接Arduino

各接口对应的连接情况如下:

传感器模块Arduino
VCC3.3V或5V
GNDGND
TXDD10
RXDD11
WAKED8
RSTD9
#include <SoftwareSerial.h>
#include "finger.h"


void setup() 
{
	// Open serial communications (connect to PC) and wait for port to open:
	Serial.begin(115200);
	while (!Serial)
	{
		; // wait for serial port to connect. Needed for native USB port only
	}
	
	pinMode(Finger_RST_Pin  , OUTPUT);
  digitalWrite(Finger_RST_Pin , LOW);
  delay(100);
	digitalWrite(Finger_RST_Pin , HIGH);
	pinMode(Finger_WAKE_Pin , INPUT);
	Finger_SoftwareSerial_Init();	
	Finger_Wait_Until_OK();
}


void loop()
{ 	
	Analysis_PC_Command();
	
	// If in sleep mode, turn on the auto wake-up function of the finger, 
	//begin to check if the finger is pressed, and wake up the module and match it
	if(Finger_SleepFlag == 1)
	{
		Auto_Verify_Finger();
	}	
}

 

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值