Git Product home page Git Product logo

gwiot7941e's Introduction

Gwiot 7941E

A simple library to interface with Gwiot 7941E RFID reader. Based on rdm6300 library by Arad Eizen.

Features

  • Fast and single tag reading
  • Using a single configurable GPIO pin
  • Both Hardware and Software UART (Serial) support on ESP8266
  • Both SoftwareSerial and AltSoftSerial support

Getting Started

Hardware

  • Gwiot 7941E module
  • 125kHz RFID tags
  • Microcontroller (Arduino, ESP8266, ESP32...)
  • Jump-Wires (resistors of 1k and 2k if you are using a 3.3V based microcontroller).

7941E connections

Software

A simple RFID tag reader with textual Serial output: examples/read_to_serial/read_to_serial.ino

#include <Gwiot7941e.h>

#define GWIOT_7941E_RX_PIN 4
Gwiot7941e gwiot7941e;

void setup()
{
    //...
    gwiot7941e.begin(GWIOT_7941E_RX_PIN);
    //...
}

void loop()
{
    //...
    if (gwiot7941e.update()) {
        Serial.println(gwiot7941e.getLastTagId(), HEX);
    }
    //...
}

API

  • void begin(Stream *stream) - Initialize the object to use the given Stream (i.e. an AltSoftSerial object) to read from the 7941E.
  • void begin(int rxPin, uint8_t uartNum=1) - Initialize the object to use the given GPIO pin as RX from the 7941E. Use uartNum to specify which Serial to use on ESP8266/ESP32.
  • bool update() - Updates the internal values by reading from the 7941E, returns true on tag detection, must be called repeatedly!
  • uint32_t getLastTagId() - Returns the last tag id read by update().

Additional resources

Here are some additional resources about the Gwiot 7941E RFID reader.

gwiot7941e's People

Contributors

arduino12 avatar gutierrezps 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.