O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling access with an RFID card

In this section, we will see how to control access via a door. In the last chapter, we saw how to control the lock and the lamps of a house. This project can complement the last one as it will enable you to control the opening of a door, a specific bedroom door, or lights in other rooms.

Hardware requirements

For this project, we need the following equipment:

  • Reading TAGS cards
  • RFID RC522 Module
  • Arduino Board

The following image shows the RFID tags for reading and controlling the access:

Hardware requirements

The following figure, shows the RFID card interface for Arduino:

Software requirements

We need to install the <MFRC522.h> library, this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required