GithubHelp home page GithubHelp logo

yasir-shahzad / rdm6300 Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 3.0 6 KB

A simple library to interface with RDM6300 RFID reader.

C++ 92.45% C 7.55%
125khz arduino esp8266 rdm6300 rfid-card rfid-reader

rdm6300's Introduction

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 support.

Getting Started

Hardware

  • RDM6300 module with matching antenna.
  • 125KHz RFID tags.
  • Microcontroller (arduino, esp8266, esp32...).

rdm6300_connections

Software

A simple RFID tag reader with textual serial output: 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.