RFID Smart Door Lock With ESP8266

by mcmchris in Circuits > Arduino

13437 Views, 31 Favorites, 0 Comments

RFID Smart Door Lock With ESP8266

Portada Ingles.jpg

In this video I am going to show you how to build your own access control system with RFID and Arduino + Cloud logging of attendance.

It is a very good project for IoT beginners and enthusiasts, hope you like it.

Supplies

Video Tutorial:

Cerradura Electrónica Inteligente con Arduino | ESP8266 | RFID + Ubidots

If you are a visual learner, here I created a video that shows you step by step the whole process of building this project.

The video is in spanish but electronics are electronics, and coding is coding in the same language.

Hope you like it.

Schematic:

Esquema RFID.PNG

Here you have the circuit diagram so you can follow it to reproduce your own version of the project, also, letting you know the conections and wiring of the circuit.

PCB Design:

Captura de pantalla (47).png

Here you can download the Gerber File so you can order your PCBs proffesionally made on JLCPCB.

Soldering Process:

Captura de pantalla (48).png
Captura de pantalla (49).png

You just need to place all the components in the right spot, solder them with a clean soldering iron and that's it.

Coding:

Captura de pantalla (55).png

Here's the code so you can program your ESP8266 board.

Assambly:

Captura de pantalla (50).png
Captura de pantalla (51).png
Captura de pantalla (52).png
Captura de pantalla (53).png
Captura de pantalla (54).png
Captura de pantalla (76).png
Captura de pantalla (77).png
Captura de pantalla (73).png
Captura de pantalla (78).png

Wire up all the components together, install the electric lock, wire it to the enclosure and place the PCB and the power supply inside the box, close the lid and everything is almost ready.

IoT Ubidots Settings:

Captura de pantalla (56).png
Captura de pantalla (57).png
Captura de pantalla (58).png
Captura de pantalla (60).png
Captura de pantalla (61).png
Captura de pantalla (62).png
Captura de pantalla (63).png
Captura de pantalla (64).png
Captura de pantalla (65).png
Captura de pantalla (66).png
Captura de pantalla (67).png
Captura de pantalla (68).png
Captura de pantalla (69).png
Captura de pantalla (70).png
Captura de pantalla (71).png

  1. Create an account of Ubidots.
  2. Go the devices section and notice that should be a device called "RFID" listed.
  3. Inside of it, should be a variable called "asistencia".
  4. If on steps 2 and 3 the device is not automatically created, create it by yourself by the mentioned names.
  5. Go to dashboards and create a new one.
  6. Select a widget called "Values table" and link it to the rfid->asistencia variable.
  7. Create an histogram and link it to the same variable.
  8. Then you are ready to visualize the names of the people who get into the room.

Testing It:

Captura de pantalla (88).png
Captura de pantalla (79).png
Captura de pantalla (80).png
Captura de pantalla (81).png
Captura de pantalla (82).png
Captura de pantalla (83).png
Captura de pantalla (85).png
Captura de pantalla (87).png

Swipe a RFID card or token and the lock will open, and the Ubidots interface will show you the name who enter.