{"id":21810026,"url":"https://github.com/tsndr/mfrc522-python","last_synced_at":"2025-04-13T21:52:25.748Z","repository":{"id":112809783,"uuid":"142593038","full_name":"tsndr/MFRC522-python","owner":"tsndr","description":"Reading and writing strings to and from MiFare tags using a Raspberry Pi and the RFID-RC522","archived":false,"fork":false,"pushed_at":"2020-11-11T23:26:52.000Z","size":13,"stargazers_count":10,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T12:12:39.284Z","etag":null,"topics":["mfrc522","mifare","mifare-tags","python","raspberry-pi","raspberrypi","rfid","rfid-rc522"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsndr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-27T15:16:51.000Z","updated_at":"2024-06-08T01:27:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4169452-81ce-4593-8a06-eaf40986442f","html_url":"https://github.com/tsndr/MFRC522-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsndr%2FMFRC522-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsndr%2FMFRC522-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsndr%2FMFRC522-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsndr%2FMFRC522-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsndr","download_url":"https://codeload.github.com/tsndr/MFRC522-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788867,"owners_count":21161726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mfrc522","mifare","mifare-tags","python","raspberry-pi","raspberrypi","rfid","rfid-rc522"],"created_at":"2024-11-27T13:30:07.549Z","updated_at":"2025-04-13T21:52:25.743Z","avatar_url":"https://github.com/tsndr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MFRC522-python\n\nReading and Writing MiFare tags using a Raspberry Pi and the RFID-RC522.\n\n## Usage\nRun one of these commands and follow the instructions:\n\n#### Reading a tag\n```\npython read.py\n```\n\n#### Writing a tag\n```\npython write.py\n```\n\n#### Resetting a tag\n```\npython wipe.py\n```\n\n## Installation\n\n### Enable SPI\nOpen the configuration using this command:\n```\nsudo raspi-config\n```\nIn the menu select `5 Interfacing options`, then enable `P4 SPI` and reboot.\n\n### Wiring\nConnect the RC522's Pins to the RaspberryPi's GPIO pins.\n\nRC522 | RaspberryPi\n----- | ----------:\nSDA   | 24\nSCK   | 23\nMOSI  | 19\nMISO  | 21\nIRQ   | -\nGND   | 6\nRST   | 22\n3.3V  | 1\n\nDont connect the IRQ pin.\n\nFor a detailed pinout plan check [this website](https://pinout.xyz/).\n\n### Install dependencies\nFirst of all we need to install the `git` and `python-dev` package using this command:\n```\nsudo apt install git python-dev -y\n```\nNow we have to install `SPI-Py` using the folowing commands:\n```\ncd ~\ngit clone https://github.com/lthiery/SPI-Py.git\ncd SPI-Py/\nsudo python setup.py install\n```\n\n### Install MFRC522-python\nAlmost done, just a few commands left to install this package:\n```\ncd ~\ngit clone https://github.com/tsndr/MFRC522-python.git\ncd MFRC522-python/\n```\nEverything set up, now you can start reading and writing RFID-Tags 😉","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsndr%2Fmfrc522-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsndr%2Fmfrc522-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsndr%2Fmfrc522-python/lists"}