|
| 1 | +<!-- |
| 2 | +SPDX-FileCopyrightText: 2026 PN5180-tagomatic contributors |
| 3 | +SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | +--> |
| 5 | + |
| 6 | +# PN5180 Tagomatic |
| 7 | +A USB connected RFID Reader/Writer with a python interface. |
| 8 | + |
| 9 | +--- |
| 10 | + |
| 11 | +A PN5180 card is connected to a Raspberry Pi Pico Zero via SPI. |
| 12 | +The Pico Zero runs an arduino firmware which exposes a SimpleRPC |
| 13 | +interface which this python module uses via USB to communicate |
| 14 | +with RFID tags. |
| 15 | + |
| 16 | +## Features |
| 17 | + |
| 18 | +- Python library for easy integration. |
| 19 | +- Uses USB serial communication to the reader. |
| 20 | +- Cross-platform support (Linux, Windows, macOS). |
| 21 | +- Finds and selects ISO/IEC 14443A and ISO/IEC 15693 cards. |
| 22 | +- Can read/write the cards' memories. |
| 23 | +- Can authenticate against Mifare classic cards to read their memories. |
| 24 | +- Supports multiple cards within the field. |
| 25 | + |
| 26 | +## API Documentation |
| 27 | + |
| 28 | +See [API Reference](reference.md). |
| 29 | + |
| 30 | +## Installation |
| 31 | + |
| 32 | +### Python Package |
| 33 | + |
| 34 | +Install from PyPI: |
| 35 | + |
| 36 | +```bash |
| 37 | +pip install pn5180-tagomatic |
| 38 | +``` |
| 39 | + |
| 40 | +### Building the hardware |
| 41 | + |
| 42 | +See |
| 43 | +[here](https://github.com/bofh69/pn5180-tagomatic/tree/main/sketch/README.md) |
| 44 | +for instructions on the hardware and the firmware. |
| 45 | + |
| 46 | +## Usage |
| 47 | + |
| 48 | +```python |
| 49 | +from pn5180_tagomatic import PN5180, RxProtocol, TxProtocol |
| 50 | + |
| 51 | +# Create reader instance and use it |
| 52 | +with PN5180("/dev/ttyACM0") as reader: |
| 53 | + versions = reader.ll.read_eeprom(0x10, 6) |
| 54 | + with reader.start_session( |
| 55 | + TxProtocol.ISO_14443_A_106, RxProtocol.ISO_14443_A_106 |
| 56 | + ) as session: |
| 57 | + card = session.connect_one_iso14443a() |
| 58 | + print(f"Reading from card {card.id}") |
| 59 | + memory = card.read_memory() |
| 60 | +``` |
| 61 | + |
| 62 | +## License |
| 63 | + |
| 64 | +This project is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). |
| 65 | + |
| 66 | +## Contributing |
| 67 | + |
| 68 | +Contributions are welcome! |
| 69 | + |
| 70 | +## Acknowledgments |
| 71 | + |
| 72 | +This project uses FastLED by Daniel Garcia et al. |
| 73 | + |
| 74 | +SimpleRPC by Jeroen F.J. Laros, Chris Flesher et al is also used. |
0 commit comments