Skip to main content

Interface for RDM6300 rfid reader

Project description

Using the RDM6300 RFID reader from python

The project is primarly geared towards using the RDM6300 with a Raspberry PI and Python 3.

The unit tests are passing with Python 2, so it should work (tm), but I am using python3 for developing the module.

In theory the module should be working with anything that is compatible with the EM4100 wire protocol.

Please note that wiring the RDM6300 to an RPI is not entierly trivial (either it will not work, or you are risking frying your PI), so before tring this out please make sure you had read my blog post on this:

The reader code has almost 100% unit test coverage, so the code should be quite stable.

Please see the API documentation here

Usage (Easy mode)

Assuming that you had wired the RDM6300 correctly you can execute the following to create a working environment:

$ virtualenv -p python3 virtualenv
$ . virtualenv/bin/activate
$ pip install rdm6300

Afterwards you can use this code to start reading with the RFID reader (examples/

import rdm6300

reader = rdm6300.Reader('/dev/ttyS0')
print("Please insert an RFID card")
while True:
    card =
    if card:
        print(f"[{card.value}] read card {card}")

Usage (Real life scenario)

see examples/

import rdm6300

class Reader(rdm6300.BaseReader):
    def card_inserted(self, card):
        print(f"card inserted {card}")

    def card_removed(self, card):
        print(f"card removed {card}")

    def invalid_card(self, card):
        print(f"invalid card {card}")

r = Reader('/dev/ttyS0')


The code is a rewrite of the library pyrfid:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdm6300-0.1.0.tar.gz (5.9 kB view hashes)

Uploaded source

Built Distribution

rdm6300-0.1.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page