GithubHelp home page GithubHelp logo

itsgosho / rdm6300 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 218 KB

Arduino communication library for the RDM6300 RFID reader

License: MIT License

CMake 6.58% C++ 92.48% C 0.94%
rdm6300 rfid rfid-reader arduino-library

rdm6300's Introduction

RDM6300

Arduino library for the RDM6300 125kHZ RFID reader

Example:
#include <Arduino.h>
#include <SerialPrintF.h>
#include "RDM6300.h"

#define SERIAL_BAUD_RATE 9600
#define RDM6300_TX_PIN 10
#define RDM6300_RX_PIN 11

RDM6300 rdm6300(RDM6300_TX_PIN, RDM6300_RX_PIN);

void setup() {
    Serial.begin(SERIAL_BAUD_RATE);
}

void loop() {

    RFIDTag rfidTag = rdm6300.readTag();

    serial_printf(Serial, "Version: %l, Id: %l, Checksum: %s, Read Timed Out: %s\n",
                  rfidTag.version,
                  rfidTag.id,
                  rfidTag.isChecksumValid ? "true": "false",
                  rfidTag.isReadTimedOut ? "true": "false");
}

You need the following files:

  • src/RDM6300.h & src/RDM6300.cpp
  • src/GenericUtils.h & src/GenericUtils.cpp
  • src/SerialUtils.h

Initialization:

RDM6300 rdm6300(txPin, rxPin) which will return you a class with operation onto the reader

readTag() which will block until a tag is read

readTag(readTimeoutMS) which will block until the given milliseconds and if tag is not read, then the isReadTimedOut field will be true

Features:
  • Timeouts
  • Documentation

Communication Notes:

Here is a little example that I drawn to express how to handle the data. That doesn't concerns the end user.

Resources:

rdm6300's People

Contributors

itsgosho avatar

Stargazers

 avatar

Watchers

 avatar

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.