RFID Door Lock Using Arduino Project with Data Logging in Python | Arduino Projects with Source Code
1K views
·
Dec 13, 2021
RFID Door Lock Using Arduino Project with Data Logging in Python | Arduino Projects with Source Code
Subscribe here for More Source code & tutorials: https://bit.ly/2YdWUxU
LIKE our FB PAGE: https://www.facebook.com/itsourcecode
Official Website: https://itsourcecode.com/
Download the complete source code here: https://bit.ly/3zncnfE
Increase ad revenue 50-250% with Ezoic - https://bit.ly/2OIIPpD
Song: Ikson - Do It (No Copyright Music Vlog Library)
Music promoted by No Copyright Music Vlog Library.
Intro made by Prince Ly Cesar
RFID Door Lock Using Arduino Project are common security measures for granting access to persons in authority. But without any means of security log, you cannot trace the persons who accessed a secured area.
We will solve that in this project. You will learn how to create an RFID Door Lock Using Arduino Project with Data Logging in Python. This device can enroll RFID cards to grant it access and creates a CSV file to log all who have swiped an RFID.
RFID Door Lock Arduino Project with Data Logging in Python: Steps in Creating the Device
Here are the steps in creating RFID Door Lock Arduino Project with Data Logging in Python.
Gathering the Components
The first thing to do is to collect the hardware components for the Arduino device.
Arduino Uno
RFID – RC522 Module
HC-SR04 Ultrasonic Sensor
LCD with I2C interface
Mini Servo
Connecting the Components
Connect the components to the Arduino Uno. Please refer to the wiring diagram below.
Coding the Arduino
Third step is about coding the Arduino device.
Python Coding
Final step is creating a Python project that can communicate with the Arduino device.
Now you are ready to connect the components to the Arduino Uno. All components are connected to the 5V pin of the Arduino excepts for the RFID. SDA and SCL pins of the LCD is connected to pins A4 and A5 respectively. The trigger pin and echo pin of the ultrasonic sensor is attached to digital pins 6 and 5. Meanwhile, the data pin of the servo is attached to digital pin 8.
Lastly for the RFID, the first 4 pins starting from the right are connected to 10, 13, 11, and 12. The Reset pin is connected to digital pin 9.
Now the device can operate on its own. You can add RFID cards or tokens to the device using a master card. Let us proceed to the next step – connecting our device to Python.
Python Code
In this project, you can interface your newly created device to Python using PyCharm 2021 IDE. It is important to download the latest version of PyCharm to avoid problems that can occur while installing the package you need.
After installing the new version of PyCharm, open the Python Packages in View Tool Windows. Search for “pyserial” and click “install”.
PySerial is the package that lets you communicate from the Arduino serial monitor. This is why we display on the serial monitor though we have an LCD.
So there you have it! RFID Door Lock Arduino Project with Data Logging in Python. This project is intimidating at first but you will see that it is fairly easy to do. You can combine this to other Python or Arduino projects and build an awesome system!
Feel free to write your questions about the RFID Door Lock Arduino Project with Data Logging in Python in the comments below.
Show More
Show LessComments
loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text