EM-18 RFID Reader Interfacing with Arduino Uno

In this tutorial we are going to interface EM-18 RFID Reader with Arduino Uno.

Components Required :

EM-18 RFID Reader

EM-18 RFID Reader | Alpha Electronz
EM-18 RFID Reader

EM18 RFID Reader is a module which reads the ID information stored in RFID TAGS. This ID information is unique for every TAG which cannot be copied.

EM-18 Pin Configuration

EM-18 is a nine pin device. Among nine pins, 2 pins are not connected, so we basically have to consider seven terminals.

VCC – 5V

GND – Ground

Buzz/Beep – Beep and LED

SEL – HIGH means RS232, LOW means WEIGAND

TX – Transmitter

DATA1 – WEIGAND DATA 1

DATA2 – WEIGAND DATA 0

EM-18 Features and Specifications

  • Operating voltage of EM-18: +4.5V to +5.5V
  • Current consumption:50mA
  • Can operate on LOW power
  • Operating temperature: 0ºC to +80ºC
  • Operating frequency:125KHz
  • Communication parameter:9600bps
  • Reading distance: 10cm, depending on TAG
  • Integrated Antenna

Circuit Diagram

EM18 RFID Reader Interfacing Circuit Diagram | Alpha Electronz
EM18 RFID Reader Interfacing Circuit Diagram

Breadboard Wiring of EM-18 RFID Reader with Arduino Uno.

Code

int count = 0;
char input[12];
boolean flag =

void setup()
{
Serial.begin(9600);
}

void loop()
{
if(Serial.available())
{
count = 0;
while(Serial.available() && count < 12) {
input[count] = Serial.read();
count++;
delay(5);
}
Serial.print(input);
}}

Upload the program and see the 12 number RFID Card and use it anyway you want.

0

Leave a Reply

Your e-mail address will not be published. Required fields are marked *