1. Introduction
Dual check with NFC tag and voice can be much safer and easy to use.
Before the door lock, one shall call vocal signal before the board, and put the NFC tag near this reader. If the command match, the tag ID shall be checked with predefined TAGID number.
The door opened when dual check is passed.
2. Codes
2.1 Dual check part as of in the following code, if both check is OK, then the servo turns open, delay 5 seconds. Then securely closed again.
if (is_new_command) {
pos=0;
if (found_command[0] == 'y') {
pos=90;
}
if (found_command[0] == 'n') {
pos=180;
}
// Read tag if there is new command and turn the servo to open lock if tag ID match.
tag = myRfid.getTag();
Serial.println(tag);
if (tag==TAGID){
myServoA.write(pos);
delay(5000);
pos=0;
myServoA.write(pos);
}
2.2 The NFC tag part,
The SparkFun_Qwiic_Rfid library shall be imported for easy use.
#include "SparkFun_Qwiic_Rfid.h"
2.3 Lock open part
Servo control shall be used with pin 8 attached.
#include <Servo.h>
Servo myServoA;
myServoA.attach(8);
... ...
myServoA.write(pos);
3 Hardware
- NFC tag reader by SparkFun RedBoard Artemis ATP by QWIIC, unique tag ID is generated,
- parkFun Artemis Modules and ID-12LA (125kHz) modules
- Digital MEMS microphone for always-on voice commands with Tensor Flow and machine learning to generate Unique Label as Authentication to the tag ID,
4 Summary
This is different from existing solutions using in that, combined authentication with added security, Existing solution normally uses only one technology only.
SparkFun RFID Qwiic Reader can read unique data from RFID tag, and voice is unique to every person , with newly introduced tensorflow lite for Arduino, this can be used as second ID check. All these two functions provided by SparkFun RedBoard Artemis ATP.
Here is the console output from serial terminal,
While the power is on,
Comments