ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

EM-18 RFID Reader Interfacing with ATmega16

20747
1
Mark as Favourite

RFID stands for Radio Frequency Identification. RFID is a basic technology that allows the identification of a device (read tag / sticker / label) to be read wirelessly by a reader (RFID reader) using radio frequency. The Tag contains a small IC containing the unique identity information. The IC is attached to an antenna which transmits its identity to a reader when it detects a reader. It detects a reader by detecting the electromagnetic energy produced by the reader. The unique identity information is transmitted as radio frequencies. The reader then converts the received radio frequencies into the identity data. Most RFID readers provide a serial interface for connecting to a microcontroller. Some of the readers also provide another interface called the Weigand Interface. The RFID Card Readers can be used in a wide variety of hobbyist and commercial applications, including access control, automatic identification, robotics navigation, inventory tracking, payment systems, and car immobilization. In this project we will use EM-18 RFID Reader. EM-18 is a 125 KHz RFID Reader module and comes with both Serial and Weigand interfaces. In serial interface, the EM-18 RFID Reader provides a 12 byte data when it reads any RFID tag.

In this project, we will learn How to interface an EM-18 RFID Reader with AVR ATmega16 microcontroller. Here, we will use the serial interface of EM-18 RFID Reader to interface the reader with the USART of microcontroller in asynchronous mode. When the RFID reader reads any RFID tag, the ATmega16 microcontroller will read the 12 byte data transmitted from RFID reader and it will display the 12 byte data in a 16X2 alphanumeric LCD.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega16 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
EM-18 RFID Reader Module 1pc
125KHz RFID Card 2pc
RG1602A 16X2 Alphanumeric LCD Green 1pc
1 to 1 Connector-Female to Female 6pc
10 to 10 FRC Female to Female Connector 2pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for EM-18 RFID Reader Interfacing with ATmega16 is as follows

  • Steps - 1 ( 0f 9 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 9 )

    Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 9 )

    Connect RS, RW & EN pins of LCD control header with PC0, PC1 & PC2 pins of PortC header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 4 ( 0f 9 )

    Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

  • Steps - 5 ( 0f 9 )

    Connect the VCC, GND, SEL and RS232 pins of EM-18 RFID Reader header to VCC, GND, VCC and PD0 pins of AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 6 ( 0f 9 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 7 ( 0f 9 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

  • Steps - 8 ( 0f 9 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 9 ( 0f 9 )

    Download the EM-18 RFID Reader Interfacing with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect RS, RW & EN pins of LCD control header with PC0, PC1 & PC2 pins of PortC header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 9 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 9 )

  • Connect the VCC, GND, SEL and RS232 pins of EM-18 RFID Reader header to VCC, GND, VCC and PD0 pins of AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 5 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 7 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 9 )

  • Download the EM-18 RFID Reader Interfacing with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 9 )

Downloads

EM-18 RFID Reader Interfacing with ATmega16 Project File
  • 70 downloads 0 Kb

Post a Comment

    • SanjuKumar
      not working
      2017-07-19 22:01:14
      Reply