-2

I have this NFC module. When i read ONE card at a moment everything works fine, but I need to read more that one card at a moment.

One card laying on a module - module reads it ok, when I move another card over the module, I get a mix of both card's numbers.

Is there any way to read both card at one moment correctly?

I read card like this. As a bord I use NodeMCU ESP8266 ESP-12E

SoftwareSerial rfid(RFID_RX, RFID_TX);
..
void loop()
{
    rfid.listen();
    delay(500);

    while (rfid.available() > 0) {
        Serial.println("Closest card number: " + rfid.readString());
    }

}
iBug
  • 35,554
  • 7
  • 89
  • 134
Oleh Kurpiak
  • 1,339
  • 14
  • 34
  • 1
    IMHO, RFID isn't designed for MIMO. You'd better give it up. – iBug Nov 16 '17 at 08:57
  • What exactly do you get for `rfid.readString()` (with one card and two cards respectively)? Looking at the schematics of the reader module, it seems that the module uses a PN532. And the source code suggests that the module is used to poll for ISO/IEC 14443A cards with support anti-collision and enumeration of multiple tags. The module should enumerate only one card though. – Michael Roland Nov 16 '17 at 14:16
  • @MichaelRoland, for one card the result of method is repeated card number with \n break. like 123\n123\n123\n. For more that one card the result is mix of both card's number. 1 - 123, 2 - 353, result - 2355234\n124131\n1241341 ..and so on – Oleh Kurpiak Nov 16 '17 at 15:56
  • @OlehKurpiak Those were certainly not the values you received from the board (if the board uses the firmware from your link). That firmware would always output 10 decimal digits for a serial number... – Michael Roland Nov 16 '17 at 16:17

1 Answers1

-2

As the comments suggest this is quite hard.

If you want to read more cards you can maybe use the PN532, According to this thread with the board developer it can read 2 cards simultaneously.

CHG1730
  • 7
  • 3