YRM100 UHF RFID to read tags

Hi, i was trying to read active rfid tags using a yrm100 UHF RFID reader connected to nodemcu v3 lolin. I tried using the code below, different baud rates and libraries, but the serial monitor does not show any tag reading. Does anyone know how to fix this issue?

This is the website where i purchased the reader: https://www.aliexpress.com/item/1005006223027290.html

#include <SoftwareSerial.h>

#define RX_PIN D5   // RX pin for the YRM1004
#define TX_PIN D6   // TX pin for the YRM1004

SoftwareSerial yrm1004Serial(RX_PIN, TX_PIN); // Create SoftwareSerial object

void setup() {
  Serial.begin(115200);          // Initialize Serial monitor
  yrm1004Serial.begin(38400);    // Try 38400 baud rate for YRM1004
  Serial.println("RFID Scanner Ready");
}

void loop() {
  // Example: Read from the YRM1004 and print to Serial Monitor
  if (yrm1004Serial.available()) {
    String tag = yrm1004Serial.readStringUntil('\n');
    Serial.println("Tag Read: " + tag);
  }
}

Please post the link to the datasheet, not the seller.



Thanks.
How is the controller powered and how is the reader powered? Can You make a pen&paper drawing and post it?

I connected the RX and TX pins of the reader to the TX and RX pins of the controller, the VCC to VU and ground to ground. I didn't connect the enable pin to the controller though, not sure if it is needed for the code.

How is the controller powered?

I connected it to my laptop.

Is the antenna connected, in order?
That device needs some 200 - 260 mA. Does the spec for the controller support that?

Yes, the antenna is connected and I think the board is able to supply at least 200mA of current to it.

What does the spec say?
A common rule is: Don't use the controller as a power supply.

Ah, I see. I guess I will try to connect the reader to an external power supply and retest it. Thank you for your responses.

Tell how it turns out.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.