img 1/1
125Khz RFID module RDM6300 - UART · imagen 1
RFID

125Khz RFID module RDM6300 - UART

sku RFID_RDM6300 · categoríacategory rfid

$14.95+iva+VAT
precio en USD
factura o tiquete electrónico
price in USD
electronic invoice or receipt

en stockin stock — envíos desde San José— ships from San José

cantidadquantity

antes de comprarbefore you buy
  • [✓] Envío desde San José, CR: por Correos de Costa Rica, o retiro en Centro Colón. Costo y plazo en el checkout.Ships from San José, CR: by Correos de Costa Rica, or pickup at Centro Colón. Cost and timing at checkout.
  • [✓] Envío gratis con Correos en pedidos desde $200.00 antes de IVA.Free shipping by Correos on orders of $200.00 or more before VAT.
  • [✓] Factura electrónica: pídala en el checkout con su cédula o la de su empresa.Electronic invoice: ask for it at checkout with your ID or your company's.
  • [✓] PagoPayment: Tarjeta de crédito o débito (Tilopay)Credit or debit card (Tilopay) · Compra-Click (enlace de pago por correo)Compra-Click (payment link by email) · Pagar al retirar en Centro Colón (datáfono)Pay at pickup in Centro Colón (card terminal) · SINPE MóvilSINPE Móvil · Depósito o transferencia bancariaBank deposit or transfer.
  • [✓] CuentaAccount: para comprar se inicia sesión.needed to check out. Crear cuentaCreate an account
  • [✓] ¿Dudas?Questions? contacto y soportecontact and support
specs

$ cat specs.txt

interfazinterface
UART (5 Volt TTL RS232)UART (5 Volt TTL RS232)
velocidad serialbaud rate
9600 bps9600 bps
compatibilidad de etiquetastag compatibility
EM4100 (solo lectura o lectura/escritura)EM4100 (read-only or read/write)
distancia efectiva máximamaximum effective distance
aprox. 5 cmapprox. 5 cm
tiempo de decodificacióndecoding time
menor a 100msless than 100ms
dimensionesdimensions
3.85cm x 1.9cm3.85cm x 1.9cm
antenaantenna
Externa (incluida)External (included)

a agregar al carritoadd to cart← → fotosphotosg c ir al carritogo to cart

cat README.md

Este módulo RFID de bajo costo es perfecto para conectarlo a un Arduino.  Se conecta mediante una conexión serial UART a 9600 bps y entrega el número de la etiqueta cuando se acerca una tarjeta RFID compatible con EM4100.  Perfecto para proyectos de control de acceso.

  • Incluye antena externa
  • Distancia efectiva máxima de aprox. 5 cm.
  • Tiempo de decodificación menor a 100ms
  • Interfaz UART (5 Volt TTL RS232)
  • Soporta etiquetas compatibles con EM4100 de solo lectura o de lectura/escritura
  • Diseño de tamaño reducido (3.85cm x 1.9cm)

Código de ejemplo

#include <SoftwareSerial.h>

// Define pins for SoftwareSerial (RDM6300 TX → Arduino RX pin)
#define RDM6300_RX_PIN 2 // Connect RDM6300 TX to Arduino pin 2
#define RDM6300_TX_PIN 3 // Not used (RDM6300 is transmit-only)

// Create SoftwareSerial instance
SoftwareSerial rdm6300Serial(RDM6300_RX_PIN, RDM6300_TX_PIN);

const byte PACKET_SIZE = 14; // RDM6300 sends 14-byte ASCII packet
char rfidBuffer[PACKET_SIZE];
byte bufferIndex = 0;

void setup() {
    Serial.begin(9600); // Serial Monitor
    rdm6300Serial.begin(9600); // RDM6300 default baud rate

    Serial.println("RDM6300 RFID Reader Ready");
}

void loop() {
    // Read incoming data from RDM6300
    while (rdm6300Serial.available()) {
    char incomingChar = rdm6300Serial.read();

    // Start of packet
    if (incomingChar == 0x02) { // STX
        bufferIndex = 0;
    }
    // End of packet
    else if (incomingChar == 0x03) { // ETX
        rfidBuffer[bufferIndex] = '\0'; // Null-terminate string
        processTag(rfidBuffer);
        bufferIndex = 0;
    }
    // Store data in buffer
    else {
        if (bufferIndex < PACKET_SIZE - 1) {
                rfidBuffer[bufferIndex++] = incomingChar;
            }
        }
    }
}

// Function to process and display tag ID
void processTag(char *tagData) {
    // First 10 characters are the tag ID in ASCII HEX
    char tagID[11];
    strncpy(tagID, tagData, 10);
    tagID[10] = '\0';

    Serial.print("Tag detected: ");
    Serial.println(tagID);

    // Example: Compare with a known tag
    if (strcmp(tagID, "0001234567") == 0) {
        Serial.println("Access Granted");
    } else {
        Serial.println("Access Denied");
    }
}

This low cost RFID module is perfect for connecting to an Arduino.  It connects via a 9600 bps UART serial connection and outputs the tag number when an EM4100 compatible RFID card comes near.  Perfect for access control projects.

  • Includes external antenna
  • Maximum effective distance approx 5 cm.
  • Less than 100ms decoding time
  • UART interface (5 Volt TTL RS232)
  • Support EM4100 compatible read only or read/write tags
  • Small outline design (3.85cm x 1.9cm)

Example Code

#include <SoftwareSerial.h>

// Define pins for SoftwareSerial (RDM6300 TX → Arduino RX pin)
#define RDM6300_RX_PIN 2 // Connect RDM6300 TX to Arduino pin 2
#define RDM6300_TX_PIN 3 // Not used (RDM6300 is transmit-only)

// Create SoftwareSerial instance
SoftwareSerial rdm6300Serial(RDM6300_RX_PIN, RDM6300_TX_PIN);

const byte PACKET_SIZE = 14; // RDM6300 sends 14-byte ASCII packet
char rfidBuffer[PACKET_SIZE];
byte bufferIndex = 0;

void setup() {
    Serial.begin(9600); // Serial Monitor
    rdm6300Serial.begin(9600); // RDM6300 default baud rate

    Serial.println("RDM6300 RFID Reader Ready");
}

void loop() {
    // Read incoming data from RDM6300
    while (rdm6300Serial.available()) {
    char incomingChar = rdm6300Serial.read();

    // Start of packet
    if (incomingChar == 0x02) { // STX
        bufferIndex = 0;
    }
    // End of packet
    else if (incomingChar == 0x03) { // ETX
        rfidBuffer[bufferIndex] = '\0'; // Null-terminate string
        processTag(rfidBuffer);
        bufferIndex = 0;
    }
    // Store data in buffer
    else {
        if (bufferIndex < PACKET_SIZE - 1) {
                rfidBuffer[bufferIndex++] = incomingChar;
            }
        }
    }
}

// Function to process and display tag ID
void processTag(char *tagData) {
    // First 10 characters are the tag ID in ASCII HEX
    char tagID[11];
    strncpy(tagID, tagData, 10);
    tagID[10] = '\0';

    Serial.print("Tag detected: ");
    Serial.println(tagID);

    // Example: Compare with a known tag
    if (strcmp(tagID, "0001234567") == 0) {
        Serial.println("Access Granted");
    } else {
        Serial.println("Access Denied");
    }
}