Closed alastaira closed 5 years ago
Hi alastaira, as far as i can see the board has no LEDs, L1-L3 are inductive coils. I've attached a schematic which should belong to this chinese board: PN5180 R1.1-170710_SCH.PDF
You can use GPIO for general output like LED. I managed to set this PIN as output with this commands (should be adapted to this library):
nfc.WRITE_REGISTER(0x05, 1); // PINCONFIG register (address 0005h) to output nfc.WRITE_REGISTER(0x07, 0); // PIN_OUT register (address 0007h) set to low .. nfc.WRITE_REGISTER(0x07, 1); // PIN_OUT register (address 0007h) set to high
Best Dirk
Thanks for the quick response! Ah yes, you might be right about L1-L3 (my eyesight is not great, so surface-mounted components all look much the same to me!) - I could've sworn that I used to have an LED on the board, but I've been fiddling with lots of different RFID readers, so probably just got confused.
That schematic and code snippet are really useful, thanks - I'll carry on tinkering :)
Hi .. i try to use this library for reading ISO15693 tag but the only response is
Error in getInventory: No card detected! IRQ-Status 0x6: [ TX IDLE ] *** No card detected!
any suggestion ??
Please enable debugging in the library.
In file PN5180ISO15693.cpp:
If that still gives no hints, do the same in file PN5180.cpp
—Andreas
Am 12.03.2019 um 15:18 schrieb offdbster notifications@github.com:
Hi .. i try to use this library for reading ISO15693 tag but the only response is
Error in getInventory: No card detected! IRQ-Status 0x6: [ TX IDLE ] *** No card detected!
any suggestion ??
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hi Andrea Thank you for the answer I have enabled the DEBUG in PN5180.cpp file and the output is:
This library is tested for ESP32 ?
Il mar 12 mar 2019, 17:00 Andreas Trappmann notifications@github.com ha scritto:
Please enable debugging in the library.
In file PN5180ISO15693.cpp:
- uncomment: #define DEBUG 1
If that still gives no hints, do the same in file PN5180.cpp
—Andreas
Am 12.03.2019 um 15:18 schrieb offdbster notifications@github.com:
Hi .. i try to use this library for reading ISO15693 tag but the only response is
Error in getInventory: No card detected! IRQ-Status 0x6: [ TX IDLE ] *** No card detected!
any suggestion ??
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472057883, or mute the thread https://github.com/notifications/unsubscribe-auth/Aas33zDVAAV7A6cmOBHk1XcFyqHDf_L6ks5vV88jgaJpZM4Xz8Xp .
Not from my side. There was a guy who used it that way. I only use it on an regular Arduino Uno or Mega.
-----Original-Nachricht----- Betreff: Re: [ATrappmann/PN5180-Library] Wiring, compiling, and LEDs! (#3) Datum: 2019-03-14T09:50:09+0100 Von: "offdbster" notifications@github.com An: "ATrappmann/PN5180-Library" PN5180-Library@noreply.github.com
This library is tested for ESP32 ?
Il mar 12 mar 2019, 17:00 Andreas Trappmann notifications@github.com ha scritto:
Please enable debugging in the library.
In file PN5180ISO15693.cpp:
- uncomment: #define DEBUG 1
If that still gives no hints, do the same in file PN5180.cpp
—Andreas
Am 12.03.2019 um 15:18 schrieb offdbster notifications@github.com:
Hi .. i try to use this library for reading ISO15693 tag but the only response is
Error in getInventory: No card detected! IRQ-Status 0x6: [ TX IDLE ] *** No card detected!
any suggestion ??
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub
https://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472057883, or mute the thread
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472757533 , or mute the thread https://github.com/notifications/unsubscribe-auth/ASrpHuRJL7AqMOYbzbmxq7d-0ceckxE_ks5vWg0-gaJpZM4Xz8Xp . {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ATrappmann/PN5180-Library","title":"ATrappmann/PN5180-Library","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/ATrappmann/PN5180-Library"}},"updates":{"snippets":[{"icon":"PERSON","message":"@offdbster in #3: This library is tested for ESP32 ?\n\nIl mar 12 mar 2019, 17:00 Andreas Trappmann \u003cnotifications@github.com\u003e ha\nscritto:\n\n\u003e Please enable debugging in the library.\n\u003e\n\u003e In file PN5180ISO15693.cpp:\n\u003e - uncomment:
define DEBUG 1\n\u003e\n\u003e If that still gives no hints, do the same
in file PN5180.cpp\n\u003e\n\u003e —Andreas\n\u003e\n\u003e \u003e Am 12.03.2019 um 15:18 schrieb offdbster \u003cnotifications@github.com\u003e:\n\u003e \u003e\n\u003e \u003e Hi .. i try to use this library for reading ISO15693 tag but the only\n\u003e response is\n\u003e \u003e\n\u003e \u003e Error in getInventory: No card detected!\n\u003e \u003e IRQ-Status 0x6: [ TX IDLE ]\n\u003e \u003e *** No card detected!\n\u003e \u003e\n\u003e \u003e any suggestion ??\n\u003e \u003e\n\u003e \u003e —\n\u003e \u003e You are receiving this because you commented.\n\u003e \u003e Reply to this email directly, view it on GitHub, or mute the thread.\n\u003e\n\u003e —\n\u003e You are receiving this because you commented.\n\u003e Reply to this email directly, view it on GitHub\n\u003e \u003chttps://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472057883\u003e,\n\u003e or mute the thread\n\u003e \u003chttps://github.com/notifications/unsubscribe-auth/Aas33zDVAAV7A6cmOBHk1XcFyqHDf_L6ks5vV88jgaJpZM4Xz8Xp\u003e\n\u003e .\n\u003e\n"}],"action":{"name":"View Issue","url":"https://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472757533"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472757533", "url": "https://github.com/ATrappmann/PN5180-Library/issues/3#issuecomment-472757533", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Hi!
I invested in a PN5180 board a few months back, fiddled with it for a bit but didn't get very far and then other things came along and it got put back in the drawer. Just pulled it out again and started to tinker and was delighted to find you'd started this project in the meantime - I'd like to contribute in some way if I can help. To start, I attach a wiring diagram for Arduino UNO drawn up in Fritzing - thought you might find it helpful to put on the homepage. Also, I note that the current PN5180-library.ino sketch does not compile using the Arduino IDE (1.8.5, under Windows 10 64bit)) - the
goto
statements cause several "crosses initialization" errors. I've managed a quick-workaround adding a boolean "errorHasOccurred" flag to the top of the loop() and replacing all thegoto error
references with:I'll probably work up a more elegant solution, but that allows the code to compile (and getting rid of the
goto
s is probably no bad thing anyway). I then get this in the serial monitor:but from then on fails to read any tags. Also I note there are no LEDs lit on my PN5180 board, and I swear there used to be! Can you confirm if/when the SMD LEDS labelled L1, L2, L3 should be lit? Thanks.![p5180_bb](https://user-images.githubusercontent.com/901056/47311789-90273e80-d632-11e8-83ed-4e15505ca491.jpg)