Elechouse PN532 NFC Module V3 for Arduino etc.
-
@Pingi Some examples code have this lines of code:
I commented because the library could be bad.void setup(void) { Serial.begin(115200); Serial.println("Hello!"); nfc.begin(); // uint32_t versiondata = nfc.getFirmwareVersion(); // if (! versiondata) { // Serial.print("Didn't find PN53x board"); // while (1); // halt // } // // // Got ok data, print it out! // Serial.print("Found chip PN5"); Serial.println((versiondata>>24) & 0xFF, HEX); // Serial.print("Firmware ver. "); Serial.print((versiondata>>16) & 0xFF, DEC); // Serial.print('.'); Serial.println((versiondata>>8) & 0xFF, DEC);
-
I have the same problem.
I have my pn532 v3 connected to my arduino mega via i2C.
But I only get the "Hello" message trough the Serial Monitor.
As suggested by Waldi the programm seems to get stuck at nfc.begin().does anyone have a fix for this problem?
-
@Lokki Hello sir. I have been trying to make my RFID work but with no success. I copied and pasted your previous codes, as I am very very new with PN532. May I know what could be the concern if as I run the program, it only stops on 'Im a Car!' or to @shagun_8 's code 'NFC Tag Writer'. Please help. Thank you
-
Hi Guys!
We ran into the same problem: PN532 V3 Module from elechouse and try to use it with I2C. After nfc.begin it stuck and no answer from module.
After a lot of digging we found a solution. If you are using the Library which is extended with HSU compatibility in the end of PN532/PN532.h file there is the declaration of the buffer:
uint8_t pn532_packetbuffer[255];If we changed the pn532_packetbuffer array size from 255 to 64 then the I2C communication starts immediately and the module could read data from tags. So the line in the header should look like this:
uint8_t pn532_packetbuffer[64];Probably the buffer size was changed because of the HSU communication, while in the original repository this value is still 64, but unfortunately it does not fit to I2C communication
Hope this helps for some people, who have the same problem.
-
I have the same problem. I soved this problem just soldering two wires in the IRQ and RSTO ports of elctohouse module, and connecting respective in digital ports 2 and 3. looks like this
-
This post is deleted! -
@Peter176 Registered here just to say thanks. I struggled with this for a little bit until finding your post. This solves the "Didn't find PN53x board" problem!
-
hy @Tompson-Lopes-Neves and @Peter176
i have problem about nfc v3, nfc can't read card and "Didn't find PN53x board"
can you help me?
give me code, true
thanks -
This post is deleted! -
I am looking for new 100 sets of pn532. Where can I get it?
-
After some investigation and try, I have figured out what's wrong for my pn532 breakout from elechouse, here's the lib fixed:
https://github.com/picospuch/PN532In my case, there're no additional lines other than the vcc, gnd, sdl, scl used.