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
RFID Based Door Lock (EM-18)
Just Do Electronics
April 17, 2020
RFID Based Door Lock
CIRCUIT DIAGRAM :-
CODE :-
//Prateek //www.prateeks.in #define RELAYPIN 2 #define WARNLEDPIN 2 char tag[] ="4000350ABAC5"; char input[12]; int count = 0; boolean flag = 0; void setup() { Serial.begin(9600); pinMode(RELAYPIN,OUTPUT); pinMode(WARNLEDPIN,OUTPUT); } void loop() { if(Serial.available()) { count = 0; while(Serial.available() && count < 12) { input[count] = Serial.read(); count++; delay(5); } if(count == 12) { count =0; flag = 1; while(count<12 && flag !=0) { if(input[count]==tag[count]) flag = 1; else flag= 0; count++; } } if(flag == 1) { Serial.println("Access Allowed!"); digitalWrite(RELAYPIN,HIGH); delay (5000); digitalWrite (RELAYPIN,LOW); } else { Serial.println("Access Denied"); digitalWrite(WARNLEDPIN,HIGH); delay(5000); digitalWrite(WARNLEDPIN,LOW); } for(count=0; count<12; count++) { input[count]= 'F'; } count = 0; } }
PHOTO :-
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
Smart Street Light Using Arduino
Esp32 Cam Based Face Unlock
How to Make a Conveyor Belt System | Counter Machine
IoT Based Patient Health Monitoring System Using Blynk App
How To Make RFID & Keypad Based Door Lock
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
IoT Weight Scale using Load Cell HX711 & ESP8266
ESP32 Led Blink With Push Button
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
0 Comments