Categories
TUTORIALS

Activating an LCD screen using an RC522 RFID sensor

Introduction

The following tutorial explores one way that we can interact with LCD screens with the help of an Arduino Uno board and RC522 RFID sensor.

Nowadays, Liquid-crystal Display (LCD) screens are everywhere. Found attached to household items, like televisions and refrigerators, to lining streetscapes reporting advertisements and local news – these devices are commonplace in spaces that we inhabit in our everyday lives.

Radio frequency identification sensors (RFID’s) are another common type of sensor. Found in modern smartphones, public transit cards, and inventory management systems, among other uses, RFID’s are helpful when creating a unique identifier system.

In the case below, an RFID imbedded in a public transit card is used to activate the LCD screen to communicate to the rider that their bus is approaching shortly.

Parts List

To complete the steps below, you will need the following parts:

  • 16×2 Alphanumeric LCD Display
  • RC522 RFID Sensor (found here)
  • Arduino Uno board
  • Male-to-male wires
  • 7 – jumper wires
  • 1,000 ohm resistor
  • Power source (the example below was powered by connecting to a laptop using a USB cord, though external batteries may also be used.)
16×2 Alphanumeric LCD Display
RC522 RFID Sensor
Arduino Uno board
Jumper wires

The following libraries* are also required:

* For help installing a new .zip library, check out this link from the Arduino website.

Let’s put it together!

Code

The following code may be copied into Arduino IDE (download here) and uploaded to the Arduino Uno board.

*To change the message that displays on the LCD, update the text that is between the (“…”) from following line:

Wiring Diagram

Once your code is uploaded, you’re ready to wire everything together! Follow the diagram below to get everything set up and ready to play with:

Diagram created using Cirkit Designer
NOTE: replace red RFID pictured above with this wiring

How to Use

Congratulations on setting up your RFID and LCD sensors!

To use your new setup, simply tap one of the RFID keys (the kit comes with both a plastic card and keychain tag) so it touches the RFID reader. Once activated, the LCD screen will read your desired message and scroll across the screen.

RESOURCES

CODE CREDITS
Picture Credits

Leave a Reply

Your email address will not be published. Required fields are marked *