Arduino RFID System Based on RS485

In this DIY guide, I will show you how to make your own security check system based on Arduino!

Aug 28, 2019

4320 views

3 respects

Components and supplies

2

Transceiver RS422, RS485

2

Screw terminal 2P 2.54mm

1

Master PCB

2

RGB LCD Shield Kit, 16x2 Character Display

2

28 dip socket

2

RFID MFRC-522 Module

4

Capacitor 22 pF

2

Resistor 10k ohm

2

Real Time Clock (RTC)

2

Capacitor 100 nF

4

Pin Header 1x5 Female 2.54mm​

1

Arduino USB 2 Serial micro

1

32.768 kHz Crystal

2

Capacitor 10 µF

1

Coin Cell Battery CR2032

1

Slave PCB

1

Arduino UNO

2

16 MHz Crystal

2

ATmega328

2

Single Turn Potentiometer- 10k ohms

Tools and machines

1

Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

1

Soldering iron (generic)

1

Solder Wire, Lead Free

1

Breadboard, 270 Pin

Apps and platforms

1

Arduino IDE

Project description

Code

Master

c_cpp

Code for the master station unit. The "Master Station" is responsible for the communication between "Slave stations" via RS485 data bus. It also communicate via serial port with the software that is running to "control room" computer.

Slave

c_cpp

Code for the slave station units. Every "Slave Station" - check point unit has a unique address. Edit the variable "PORT" (line 25) with hex value of unit address - value from 01 to FE (total of 254 stations). Also change the "name" of the current station by editing the variable "point" at line 24. Every check point can store to EEPROM memory up to 10 card IDs. If the security card exist, the ID and time-stamp will be saved to EEPROM memory.

Master

c_cpp

Code for the master station unit. The "Master Station" is responsible for the communication between "Slave stations" via RS485 data bus. It also communicate via serial port with the software that is running to "control room" computer.

Slave

c_cpp

Code for the slave station units. Every "Slave Station" - check point unit has a unique address. Edit the variable "PORT" (line 25) with hex value of unit address - value from 01 to FE (total of 254 stations). Also change the "name" of the current station by editing the variable "point" at line 24. Every check point can store to EEPROM memory up to 10 card IDs. If the security card exist, the ID and time-stamp will be saved to EEPROM memory.

Downloadable files

Circuit Schematic

Circuit Schematic

Documentation

PCB Schematic

PCB Schematic

PCB Schematic

PCB Schematic

Comments

Only logged in users can leave comments

john_vslks

0 Followers

0 Projects

3

0