กลับหน้าหลัก
views
Arduino UHF RFID 915MHz Reader Setup with 0-6m Range
Last updated on

Arduino UHF RFID 915MHz Reader Setup with 0-6m Range


Arduino UHF RFID 915MHz Reader Setup with 0-6m Range

This guide walks through wiring and coding an Arduino to read UHF RFID cards at 915MHz frequency with a read range up to 6 meters. Suitable for parking gate systems, access control, or IoT projects that require longer reading distance than standard RFID.

Circuit diagram showing Arduino UNO connected to UHF RFID Reader 915MHz with power and data lines labeled

Required Components

  • Arduino UNO R3
  • UHF RFID Reader 915MHz
  • UHF RFID Key Cards 915MHz (at least 2 cards)
  • Breadboard MB-102
  • Jumper wires (M-M, M-F, F-F)
  • Power Adapter 12V 5A with DC jack 5.5x2.5mm
  • DC Jack female connector

Wiring the UHF RFID Reader to Arduino

The wiring is divided into 3 parts: data signal connection, reader power, and Arduino power.

1. Data Signal Connections (Wiegand Protocol)

The UHF RFID reader uses Wiegand protocol with 2 data lines: D0 and D1

Arduino PinReader PinWire Color
GNDGNDBlack
Pin 2D0/RXGreen
Pin 3D1/TXWhite
Close-up of digital pins 2 and 3 on Arduino UNO connected to D0 and D1 pins on the UHF RFID Reader

2. Powering the Reader (12V DC)

The UHF RFID reader requires 12V DC from an external adapter:

  • Positive 12V → VCC (Red wire)
  • Negative 12V → GND (Black wire)

3. Powering the Arduino

Connect the negative terminal of the 12V adapter to Arduino GND to establish a common ground reference for the entire system.

Important: All GND points must be connected together. Without common ground, data signals will not work properly.

Common ground connection diagram showing GND shared between Arduino, RFID Reader, and 12V Adapter

Installing the Wiegand Protocol Library

Download the library from Mediafire: Wiegand-Protocol-Library-for-Arduino-master.zip

Installation steps:

  1. Extract the ZIP file using WinRAR or WinZip
  2. Copy the extracted folder to Documents/Arduino/libraries/
  3. Restart Arduino IDE

Arduino Code for Reading UHF RFID

#include <Wiegand.h>

Wiegand wg;

void setup() {
  Serial.begin(9600);
  
  // Define pins connected to D0 and D1
  wg.begin(2, 3);
  
  Serial.println("Arduino RFID UHF Reader Ready");
  Serial.println("Waiting for card...");
}

void loop() {
  if (wg.available()) {
    unsigned long cardData = wg.getData();
    
    Serial.print("Card Type: ");
    Serial.println(wg.getCardType());
    
    Serial.print("Decimal: ");
    Serial.println(cardData);
    
    Serial.print("Hex: ");
    Serial.println(cardData, HEX);
    
    Serial.println("---");
  }
}

Adjustable points: If you connected D0/D1 to different pins, modify the numbers in wg.begin(2, 3) to match your actual wiring.

Upload and Test Steps

  1. Open Arduino IDE and paste the code above
  2. Select Board → Arduino UNO
  3. Select the correct COM Port
  4. Click Upload (Ctrl+U)
  5. When upload completes, open Serial Monitor (Ctrl+Shift+M)
  6. Set Baud Rate to 9600
  7. Bring a UHF RFID card close to the reader within 0-6 meters

[image: Serial Monitor output showing card data including Card Type, Decimal value, and Hexadecimal value]

Expected Output

When a 915MHz key card is detected by the reader:

  • Card Type — Type identifier of the card
  • Decimal — Card number in base-10 format
  • Hex — Card number in hexadecimal format

Each card has a unique identification number that can be used for access control logic.

Summary

Using UHF RFID 915MHz with Arduino differs from low-frequency RFID in that it requires separate 12V power for the reader and uses Wiegand protocol for data communication. The Wiegand Protocol Library handles this complexity, making it straightforward to integrate long-range RFID into your Arduino projects.


อยากทำโปรเจคแบบนี้?

รับทำโปรเจค Arduino / IoT จบงานไว ส่งงานครบ พร้อมสอน

If you need Arduino project service or urgent IoT development, see full service details on the home page

จ้างทำโปรเจคเลย

ประเมินราคาอัตโนมัติ + Reference Code

ขอให้ AI ประเมินราคาโปรเจคนี้

กรอกข้อมูลให้ครบ ระบบจะสร้างรหัสอ้างอิงและประเมินราคา/ระยะเวลาคร่าว ๆ จากรายละเอียดงาน แล้วให้กด Add LINE พร้อมพิมพ์รหัสนี้เพื่อคุยต่อ

คำถามให้ AI ประเมินแม่นขึ้น

หลังส่งฟอร์ม ระบบจะโชว์ Reference Code ให้ copy แล้วกด Add LINE เพื่อคุยต่อ ข้อมูลส่วนตัวจะไม่ถูกส่งเข้า GA4

ความคิดเห็น

รีวิวจากคนใช้งานจริง

รีวิวจากลูกค้าและคนที่เคยใช้งาน

ถ้าเคยสั่งงาน เคยอ่านหน้านี้แล้วได้ประโยชน์ หรือมีข้อเสนอแนะ ฝากรีวิวไว้ได้เลย

กำลังโหลดรีวิว...