rc522


Namerc522 JSON
Version 0.0.1.5 PyPI version JSON
download
home_pagehttps://github.com/Tsangares/rc522
SummaryRFID Utility
upload_time2020-11-26 16:50:30
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Context

This tool is showcased in the project [IotaWorkshop](https://github.com/Tsangares/iotaworkshop)

# Summary

This is a basic RFID libarary for the rc522. This simply lets you pull a single tag data and later lets you confirm it using the function `detectKey(uid,block)`

# Installation

This package requires `RPi.GPIO`, which I installed on arch arm using

    yay -S python-raspberry-gpio
	
But ubuntu or rasbian can use,

    pip install RPi.GPIO

To install pibeep simply install the pip package.

    pip install rc522


# Example
Simple example of usage 

	from rc522 import detect,detectKey
	uid,block detect(rst=31,irq=29)
	#Later you can check that the same raid tag is still there using
	if detectKey(uid,block,rst=31,irq=29):
		print("RFID tag is still there")
	else:
		print("RFID tag is vacant!")
		

## Wiring
To connect the RC522 module to SPI use the following schematic. [Use this pinout diagram](http://pi.gadgetoid.com/pinout) for reference.

| Board pin name | Board pin | Physical RPi pin | RPi pin name | 
|----------------|-----------|------------------|--------------|
| SDA            | 1         | 24               | GPIO8, CE0   | 
| SCK            | 2         | 23               | GPIO11, SCKL | 
| MOSI           | 3         | 19               | GPIO10, MOSI | 
| MISO           | 4         | 21               | GPIO9, MISO  | 
| IRQ            | 29        |                  | GPIO5        | 
| GND            | 6         | 6, 9, 20, 25     | Ground       | 
| RST            | 31        |                  | GPIO6        | 
| 3.3V           | 8         | 1,17             | 3V3          |
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Tsangares/rc522",
    "name": "rc522",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "william.wyatt@cgu.edu",
    "download_url": "https://files.pythonhosted.org/packages/92/ed/099487227212c748da7406641b9fcc1fa2a371c54f2a24ae5e0e941b6f5f/rc522-0.0.1.5.tar.gz",
    "platform": "",
    "description": "## Context\n\nThis tool is showcased in the project [IotaWorkshop](https://github.com/Tsangares/iotaworkshop)\n\n# Summary\n\nThis is a basic RFID libarary for the rc522. This simply lets you pull a single tag data and later lets you confirm it using the function `detectKey(uid,block)`\n\n# Installation\n\nThis package requires `RPi.GPIO`, which I installed on arch arm using\n\n    yay -S python-raspberry-gpio\n\t\nBut ubuntu or rasbian can use,\n\n    pip install RPi.GPIO\n\nTo install pibeep simply install the pip package.\n\n    pip install rc522\n\n\n# Example\nSimple example of usage \n\n\tfrom rc522 import detect,detectKey\n\tuid,block detect(rst=31,irq=29)\n\t#Later you can check that the same raid tag is still there using\n\tif detectKey(uid,block,rst=31,irq=29):\n\t\tprint(\"RFID tag is still there\")\n\telse:\n\t\tprint(\"RFID tag is vacant!\")\n\t\t\n\n## Wiring\nTo connect the RC522 module to SPI use the following schematic. [Use this pinout diagram](http://pi.gadgetoid.com/pinout) for reference.\n\n| Board pin name | Board pin | Physical RPi pin | RPi pin name | \n|----------------|-----------|------------------|--------------|\n| SDA            | 1         | 24               | GPIO8, CE0   | \n| SCK            | 2         | 23               | GPIO11, SCKL | \n| MOSI           | 3         | 19               | GPIO10, MOSI | \n| MISO           | 4         | 21               | GPIO9, MISO  | \n| IRQ            | 29        |                  | GPIO5        | \n| GND            | 6         | 6, 9, 20, 25     | Ground       | \n| RST            | 31        |                  | GPIO6        | \n| 3.3V           | 8         | 1,17             | 3V3          |",
    "bugtrack_url": null,
    "license": "",
    "summary": "RFID Utility",
    "version": "0.0.1.5",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "254182faf2e4a5365a5ac24e8743371c",
                "sha256": "e83a93eaf7dafe907764a90d6dafd647ddb17fca3d358e050cbc3748b00d2854"
            },
            "downloads": -1,
            "filename": "rc522-0.0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "254182faf2e4a5365a5ac24e8743371c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2453,
            "upload_time": "2020-11-26T16:50:30",
            "upload_time_iso_8601": "2020-11-26T16:50:30.208130Z",
            "url": "https://files.pythonhosted.org/packages/92/ed/099487227212c748da7406641b9fcc1fa2a371c54f2a24ae5e0e941b6f5f/rc522-0.0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-11-26 16:50:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "Tsangares",
    "error": "Could not fetch GitHub repository",
    "lcname": "rc522"
}
        
Elapsed time: 0.17332s