Sei sulla pagina 1di 5

instructables

Arduino Interface With MySQL(PHPMYADMIN) for Storing RFID Access


Details

by deligence

We Start our project with RFID-RC522 and Arduino.

Step 1: Introduction to Our Project

Here we are going to connect Arduino UNO , we are going to send that data to our MYSQL
Ethernet Shield and RFID- RC522 with MYSQL Database which is connect through a php page.
Database. So for that first we should connect our
Arduino UNO which is already connected to our In this case we are using php script as well. From
ethernet shield with RFID Module. By using the RFID arduino code we are making a get request to our php
Module as you can see in above image.we are going page. Make sure that php page you have to put inside
to scan our RFID card and tag which are allow or not. /var/www/html.
And by using our Arduino UNO with Ethernet Shield

Arduino Interface With MySQL(PHPMYADMIN) for Storing RFID Access Details: Page 1
Step 2: Installation of All Software

a) Installation of LAMP Server and PHPMYADMIN: 4. Restart Server:


First of all let us clear one thing that we are using
LAMP Server for this project. In case if you don't sudo /etc/init.d/apache2 restart
know what is LAMP, it is an abbreviation of Linux,
Apache, MySQL and PHP. So if you have windows 5. Check Apache
or may be MAC then you have to install WAMP and
MAMP respectively. http://localhost/

So what we are explaining that is only for LAMP if you install these steps successfully then you will get
server: the apche page like the image above

and here are the steps for installing LAMP server Here we are using PHPMYADMIN that is the web
interface of MySQL so for that you have to install that
1. Install Apache also

sudo apt-get install apache2 and the command for that is:

2. Install MySQL: sudo apt-get install phpmyadmin

sudo apt-get install mysql-server b) Installation of Arduino IDE:


You can download the latest Arduino IDE from this
3. Install PHP: link:

sudo apt-get install php5 libapache2-mod-php5 https://www.arduino.cc/en/Main/Software

Arduino Interface With MySQL(PHPMYADMIN) for Storing RFID Access Details: Page 2
Step 3: Component Used:

For this project you need : with an RJ45 cable and follow a few simple steps to
start controlling your world pharmacy through the
1) Arduino UNO internet. As always with Arduino, every element of the
platform – hardware, software and documentation – is
2) Ethernet Shield freely available and open-source. This means you
can learn exactly how it's made and use its design as
3) RFID RC522 Reader with Tag the starting point for your own circuits. Hundreds of
thousands of Arduino Boards are already fueling
4) Jumper Wire people’s creativity all over the world, every day.

1) Arduino UNO: 3) RFID RC522 Reader with Tag:


Arduino/Genuino Uno is a microcontroller board There are cheap RFID modules that can read and
based on the ATmega328P (datasheet). It has 14 write Mifare's tags and being sold at several web
digital input/output pins (of which 6 can be used as stores, like eBay and included with many "starter kits"
PWM outputs), 6 analog inputs, a 16 MHz quartz nowadays. Simply search RFID-RC522 (MF-RC522).
crystal, a USB connection, a power jack, an ICSP The microcontroller and card reader uses SPI for
header and a reset button. communication (chip supports I2C and UART
protocols but not implemented on library). The card
2) Ethernet Shield: reader and the tags communicate using a 13.56MHz
The Arduino Ethernet Shield 2 connects your Arduino electromagnetic field.
to the internet in mere minutes. Just plug this module
onto your Arduino Board, connect it to your network

Arduino Interface With MySQL(PHPMYADMIN) for Storing RFID Access Details: Page 3
Step 4: Circuit Diagram

Circuit Diagram of this project is given above. SCK 13 52


before connecting Rfid -RC522 connect ethernet
shield as shown in previous image VCC 3.3 v 3.3v

Here are the connections of our circuit: GND GND GND

RFID-RC522 Arduino UNO Arduino Mega IRQ not connected not connected

RST 9 9 NOTE: As we are using two SPI devices so SDA(SS)


is already taken by Ethernet shield so we have to use
SDA(SS) 4/10 4/53 separate pin for SDA(SS) in case of RFID-RC522 so
that there will not be any conflict between SPI
MOSI 11 51 devices

MISO 12 50

Arduino Interface With MySQL(PHPMYADMIN) for Storing RFID Access Details: Page 4
Step 5: Importing Necessary Library for Arduino

Here we are using RFID RC522. So you have to import MFRC522. Here is a GitHub link :here

Step 6: Code for Project

We already posted our source code and documentation of this project in github you can check it out: here

Step 7: Video of Project

The whole project description are given in the above comment us below or you can mail us on
video info@deligence.com

And if you want to learn about how to make php And if you want to learn more about these type of
program and where to put that file you can go to project then feel free to visit our youtube channel :
another video: here here

Congratulations you have successfully finished your Thanks & Regards,


project;
Deligence Technologies
If have any doubt regarding this project feel free to

https://www.youtube.com/watch?v=JQv7_nu6G8o&feature=youtu.be

Arduino Interface With MySQL(PHPMYADMIN) for Storing RFID Access Details: Page 5

Potrebbero piacerti anche