Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Fingerprint And Rtc Based Biometric Attendance System
Just Do Electronics
May 10, 2020
Fingerprint And Rtc Based Biometric Attendance System
Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #include "Adafruit_Fingerprint.h" #include
#include
LiquidCrystal lcd(12,11,10,9,8,7); #include
SoftwareSerial fingerPrint(2, 3); #include
#include "RTClib.h" RTC_DS3231 rtc; uint8_t id; Adafruit_Fingerprint finger = Adafruit_Fingerprint(&fingerPrint); #define register_back 14 #define delete_ok 15 #define forward 16 #define reverse 17 #define match 5 #define indFinger 13 #define buzzer 4 #define records 10 // 10 for 10 user int user1,user2,user3,user4,user5,user6,user7,user8,user9,user10; DateTime now; void setup() { delay(1000); lcd.begin(16,2); Serial.begin(9600); pinMode(register_back, INPUT_PULLUP); pinMode(forward, INPUT_PULLUP); pinMode(reverse, INPUT_PULLUP); pinMode(delete_ok, INPUT_PULLUP); pinMode(match, INPUT_PULLUP); pinMode(buzzer, OUTPUT); pinMode(indFinger, OUTPUT); digitalWrite(buzzer, LOW); if(digitalRead(register_back) == 0) { digitalWrite(buzzer, HIGH); delay(500); digitalWrite(buzzer, LOW); lcd.clear(); lcd.print("Please wait !"); lcd.setCursor(0,1); lcd.print("Downloding Data"); Serial.println("Please wait"); Serial.println("Downloding Data.."); Serial.println(); Serial.print("S.No. "); for(int i=0;i
0) { digitalWrite(indFinger, LOW); digitalWrite(buzzer, HIGH); delay(100); digitalWrite(buzzer, LOW); lcd.clear(); lcd.print("ID:"); lcd.print(result); lcd.setCursor(0,1); lcd.print("Please Wait...."); delay(1000); attendance(result); lcd.clear(); lcd.print("Attendance "); lcd.setCursor(0,1); lcd.print("Registered"); delay(1000); digitalWrite(indFinger, HIGH); return; } checkKeys(); delay(300); } // dmyyhms - 7 bytes void attendance(int id) { int user=0,eepLoc=0; if(id == 1) { eepLoc=0; user=user1++; } else if(id == 2) { eepLoc=210; user=user2++; } else if(id == 3) { eepLoc=420; user=user3++; } else if(id == 4) { eepLoc=630; user=user4++; } else if(id == 5) { eepLoc=0; user=user5++; } else if(id == 6) { eepLoc=840; user=user5++; } else if(id == 7) { eepLoc=1050; user=user7++; } else if(id == 8) { eepLoc=1260; user=user8++; } else if(id == 9) { eepLoc=1470; user=user9++; } else if(id == 10) { eepLoc=1680; user=user8++; } /*else if(id == 5) // fifth user { eepLoc=840; user=user5++; }*/ else return; int eepIndex=(user*7)+eepLoc; EEPROM.write(eepIndex++, now.hour()); EEPROM.write(eepIndex++, now.minute()); EEPROM.write(eepIndex++, now.second()); EEPROM.write(eepIndex++, now.day()); EEPROM.write(eepIndex++, now.month()); EEPROM.write(eepIndex++, now.year()>>8 ); EEPROM.write(eepIndex++, now.year()); EEPROM.write(1000,user1); EEPROM.write(1001,user2); EEPROM.write(1002,user3); EEPROM.write(1003,user4); // EEPROM.write(4,user5); // figth user } void checkKeys() { if(digitalRead(register_back) == 0) { lcd.clear(); lcd.print("Please Wait"); delay(1000); while(digitalRead(register_back) == 0); Enroll(); } else if(digitalRead(delete_ok) == 0) { lcd.clear(); lcd.print("Please Wait"); delay(1000); delet(); } } void Enroll() { int count=1; lcd.clear(); lcd.print("Enter Finger ID:"); while(1) { lcd.setCursor(0,1); lcd.print(count); if(digitalRead(forward) == 0) { count++; if(count>records) count=1; delay(500); } else if(digitalRead(reverse) == 0) { count--; if(count<1) count=records; delay(500); } else if(digitalRead(delete_ok) == 0) { id=count; getFingerprintEnroll(); for(int i=0;i
records) count=1; delay(500); } else if(digitalRead(reverse) == 0) { count--; if(count<1) count=records; delay(500); } else if(digitalRead(delete_ok) == 0) { id=count; deleteFingerprint(id); for(int i=0;i
"); if(EEPROM.read(eepIndex)<10) Serial.print('0'); Serial.print(EEPROM.read(eepIndex++)); Serial.print(':'); if(EEPROM.read(eepIndex)<10) Serial.print('0'); Serial.print(EEPROM.read(eepIndex++)); Serial.print(':'); if(EEPROM.read(eepIndex)<10) Serial.print('0'); Serial.print(EEPROM.read(eepIndex++)); Serial.print(" D->"); if(EEPROM.read(eepIndex)<10) Serial.print('0'); Serial.print(EEPROM.read(eepIndex++)); Serial.print('/'); if(EEPROM.read(eepIndex)<10) Serial.print('0'); Serial.print(EEPROM.read(eepIndex++)); Serial.print('/'); Serial.print(EEPROM.read(eepIndex++)<<8 | EEPROM.read(eepIndex++)); } else { Serial.print("---------------------------"); } Serial.print(" "); }
Project Photo
2 Comments
Unknown
19 May 2021 at 00:19
why code invailid
Reply
Delete
Replies
Reply
Unknown
15 October 2021 at 22:06
what apps are you use to do the coding. please, i want to know
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
ESP32 Interfacing With LDR Sensor
Build Your Own Gps Tracking System using Arduino
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Ultrasonic Sensor as a Counter with Arduino
ESP32 Led Blink With Push Button
ESP32 Interfacing Potentiometer
Measure CO2 Level in Air Using Arduino
IoT Based Patient Health Monitoring System Using Blynk App
Vehicle Accident Alert System Using Accelerometer GPS And GSM
Play Audio Sound With Esp8266 With Blink App
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
2 Comments
why code invailid
ReplyDeletewhat apps are you use to do the coding. please, i want to know
ReplyDelete