Bike anti theft system using MFRC522 RFID module

(Last Updated On: October 1, 2019)

RFID

Description:

This Project is based on the RFID based Bike Anti Theft security system. the bike switch is controlled by the RFID card. The bike switch can only be turned ON and turned Off using the authorized RFID card. To cut the overall cost of this project, I designed my own PCB board. I will be using the same micro-controller which is used in Arduino Uno “Atmega328”.

This Bike Anti Theft security system is entirely based on the Atmega328 and the famous MFRC522 RFID module. For the step by step explanation, you can watch a video at the end of this Article.

After I designed my PCB, using Cadsoft eagle 9.1.0 version.


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno: https://amzn.to/2tVz1vu
Mega 2560: https://amzn.to/2ze1kdu
MFRC522 RFID module and tags: best deal: https://amzn.to/2PD9Ref
12v 10A SPDT relay: https://amzn.to/2MThQBK
1n4007 diode: https://amzn.to/2lVC6an
terminal block connector: https://amzn.to/2KSNtuH
atmega328 microcontroller: https://amzn.to/2KPprR1
lm7805 Voltage Regulator: https://amzn.to/2IZEl5x
330-ohm resistors pack: https://amzn.to/2NtlAeh
female DC power jack socket: https://amzn.to/2KEo1gt
470 uf capacitors: https://amzn.to/2xDCOzf
5×7 cm Vero board: https://amzn.to/2OHGbvn
female headers: https://amzn.to/2zqmtiJ
connection wires: https://amzn.to/2DpBuW7
Super Starter kit for Beginners: https://amzn.to/2KJvmKG
Jumper Wires: https://amzn.to/2KMoVXs
Bread Board: https://amzn.to/2MS4q8X
12v Adaptor: https://amzn.to/2Ntr6h1
PCB plate: https://amzn.to/2IUwpCt
Variable Supply: https://amzn.to/2MT4Qfj
Digital Multimeter: https://amzn.to/2Nvft9i
Vero Board / stripboard: https://amzn.to/2MTf9jD
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2zfoNuJ
Solder wire: https://amzn.to/2ufUMWf
Wire Stripper: https://amzn.to/2KOqxfU
wirecutter: https://amzn.to/2ucIq14
PCB small portable drill machine: https://amzn.to/2Nu62XF

 

RFID

Then I sent my PCB Gerber files to WellPCB company, and make an order of 50 PCB’s. these are the PCB’s which I

just received.

RFID

properly documented containing all the information about the PCB’s.  As you can see the quality is really great. I am 100% satisfied with their work.


Download this PCB board:

bike security

PCB connections explanation:

RFID

Let’s start with the power supply, this is the terminal block where we connect the 12v and GND. wires. The 1n4007 diode is connected which protect the circuit if in case you connect the wires in a wrong way. The cathode side of the diode is connected with the input pin of the 7805 voltage regulator. As you can see clearly in the PCB design the Middle leg of the voltage regulator “7805” is connected with the ground.

 RFID

A 330-ohm resistor is connected with the output of the regulator, this resistor is connected in series with the led anode side, this is a current limiting resistor, the other leg of the led is connected with the ground. A 10uf capacitor is also connected at the output of the voltage regulator.


 RFID

A 10k resistor is connected with pin number 1 of the atmega328 controller and the other side of the 10-kilo ohm resistor is connected with the 5 volts. a 5-volt wire is also connected with pin number 7 of the controller. Pin number 8 of the controller is connected with the ground. A 16 MHz crystal is connected with pin 9 and pin 10 of the controller. 22pf capacitors are connected with the 16 MHz crystal.

 RFID

Pin number 11 which is the digital pin 5 is connected with the 10-kilo-ohms resistor, and the other side of the 10-kilo ohm resistor is connected with the base of 2n2222 NPN transistor, the emitter is connected with the ground, while the collector is connected with the ground pin of the buzzer. This transistor will be used to control this buzzer.


 RFID

While the buzzer positive pin is connected with the 5 volts. pin number 12 which is the digital pin 6 will be used to control a relay. The emitter is connected with the ground, while the collector is connected with one side of the relay coil while the other side of the relay coil is connected with 12 volts. This transistor is selected after the calculations, if you want to learn how to perform the relay driver circuit design calculation then you should watch my tutorial on relay driver circuit design calculations, You can find this tutorial on my YouTube channel “Electronic Clinic”. A diode is used across the relay coil for back emf protection. A terminal block is connected at the output of the relay. Digital pins 9 to 13  are connected with the RFID module. So that’s.

Soldering:

For the step by step explanation watch video at the end of this Article

 RFID

 RFID

MFRC522 RFID Module used in Bike Anti Theft system:

 RFID

A few days back I posted a tutorial on ” Arduino MFRC522  RFID module Pinouts, Interfacing, how to read RFID tags  identity number and use”


 RFID

in this tutorial I covered all the basics, like interfacing, finding the identity numbers of the tags, I am using the same RFID tag. So if you don’t know how to find the RFID tag identity number then you should watch this tutorial. You can check out this video on my YouTube channel.

Programming:

Watch Video Tutorial:

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Close