Skip to content

An ESP scans the RFID cards and sends messages to other ESPs to unlock the door if it was the correct RFID card.

License

Notifications You must be signed in to change notification settings

GalacticCodeGambit/RFID-door-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RFID door lock

Description

ESP1 uses an RFID-Reader to scan the RFID card for the correct key data, if this is the case, it sends to the ESP2s (clients) that they should set the LED to high, if they respond that they have done this, changes the ESP1 on the website and the display is unlocked. After 5 seconds the ESP1 sends the clients to set the LED to low, if they respond the status on the display and the web page changes.

Attention: The communication between the ESPs is not encrypted and the encryption of the RFID cards is no longer secure.
A safe alternative for a two-way communication between the ESPs would be, for example ESP-NOW.

Features

  • Access Point Mode: Network settings are set up via AP mode.
  • Scans RFID cards for correct key data.
  • Multiple clients possible.
  • Webstring: ESP1 displays the status of the lock on a webstring.
  • Displays: show the status of the ESP and the lock.
  • Communication: is via TCP/IP in your WiFi network.

Items we used

  • 2x ESP8266 D1 mini pro
  • RFID-RC522
  • 2x OLED 0.66'' 64x48
  • cables
  • LED
  • resistance

Connection Diagram

Troubleshooting

  • The ESP1 automatically switches to access point mode after setting up the WLAN settings
    1. Deactivate/comment out "operatingProof()" in the code.
  • The ESP1 issues the message "Error no clients connected"
    1. Restart clients.

Working library versions

  • EEPROM-Rotate 0.9.2
  • MFRC522 1.4.11
  • Adafruit GFX Library 1.11.9
  • Adafruit SSD1306 Wemos Mini OLED 1.1.2
  • WiFi 1.2.7

Contributing

We welcome contributions from the community! If you have suggestions for improvements or new features, please open an issue or submit a pull request on our GitHub repository.

Helpful links