Skip to content

A micropython library for using Wiegand RFID / NFC card readers.

License

Notifications You must be signed in to change notification settings

membermatters/uwiegand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uwiegand

A micropython library for using Wiegand RFID / NFC card readers on ESP32 devices.

Installation

Download the uwiegand folder and upload it to your micropython board. You can download this entire repository here.

Examples

Using the default UART config (machine.UART(1, baudrate=9600, timeout=2, timeout_char=10, tx=19, rx=18)).

import uwiegand

wiegand_pin_zero = 19
wiegand_pin_one = 18

rfid_reader = uwiegand.Wiegand(
    wiegand_pin_zero,
    wiegand_pin_one,
    uid_32bit_mode=True,
    timer_id=0,
)

# note that this is not blocking and needs to be called as often as possible to check for new card scans
card_id = rfid_reader.read_card()

You can also add this repo as a git sub module to your project to make keeping it up to date easier.

git submodule add https://github.com/membermatters/uwiegand.git

About

A micropython library for using Wiegand RFID / NFC card readers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages