Skip to content
/ rfid32 Public
forked from abobija/rfid32

💳 Lua library for interfacing ESP32 with MFRC522 RFID Card Reader

License

Notifications You must be signed in to change notification settings

314H/rfid32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

rfid32

Lua (NodeMCU) library for interfacing ESP32 with MFRC522 rfid card reader

Demo

Interfacing ESP32 with RFID Card Reader MFRC522

Usage

This example will print UID (in hexadecimal representation) of scanned rfid tag.

  require('rfid32')({
        pin_sda  = 22,
        pin_clk  = 19,
        pin_miso = 25,
        pin_mosi = 23
    })
    .init()
    .scan({
        got_tag = function(tag, rfid)
            print( tag.hex() )
        end
    })

Dependencies

The library depends on the following NodeMCU modules:

  • spi
  • bit
  • tmr

About

💳 Lua library for interfacing ESP32 with MFRC522 RFID Card Reader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%