Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yasir-shahzad/rdm6300
A simple library to interface with RDM6300 RFID reader.
https://github.com/yasir-shahzad/rdm6300
125khz arduino esp8266 rdm6300 rfid-card rfid-reader
Last synced: about 4 hours ago
JSON representation
A simple library to interface with RDM6300 RFID reader.
- Host: GitHub
- URL: https://github.com/yasir-shahzad/rdm6300
- Owner: yasir-shahzad
- Created: 2022-07-17T18:51:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-23T18:48:28.000Z (over 2 years ago)
- Last Synced: 2023-07-17T21:51:55.807Z (over 1 year ago)
- Topics: 125khz, arduino, esp8266, rdm6300, rfid-card, rfid-reader
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 16
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rdm6300
A simple library to interface with RDM6300 RFID reader.## Features
* Fast and single tag reading, even if it held near the antenna for a while.
* Using a single given GPIO pin or a `Stream`.
* Can tell if the tag is still near the antenna.
* Both hardware and software uart (serial) support on esp8266.
* SAMD hardware uart (serial) support.
* Both SoftwareSerial and [AltSoftSerial](https://github.com/PaulStoffregen/AltSoftSerial) support.## Getting Started
### Hardware
* RDM6300 module with matching antenna.
* 125KHz RFID tags.
* Microcontroller (arduino, esp8266, esp32...).![rdm6300_connections](../master/doc/rdm6300_connections.png "rdm6300_connections")
### Software
A simple RFID tag reader with textual serial output:
[```examples/read_to_serial/read_to_serial.ino```](examples/read_to_serial/read_to_serial.ino)#### API
* ```void begin(Stream *stream)``` - Initialize instance to read from a given stream.
* ```void begin(int rx_pin, uint8_t uart_nr=1)``` - Initialize instance to read from a given pin.
* ```void set_tag_timeout(uint32_t tag_timeout_ms)``` - sets the tag "valid" timeout, (300ms default)
RDM6300 sends packet every 65ms when tag is near- better higher values for debouncing.
* ```uint32_t get_tag_id()``` - Returns the tag_id as long as it is near, 0 otherwise.
* ```uint32_t get_new_tag_id()``` - Returns the tag_id of a "new" near tag,
following calls will return 0 as long as the same tag is kept near.
* ~~```bool update()``` - Updates the internal values must be called repeatedly!~~ **deprecated!**
* ~~```bool is_tag_near()``` - Returns whether a tag is held near.~~ **deprecated!** use ```get_tag_id()```.
## Enjoy!!
A.E.TECH