ATrappmann / PN5180-Library

PN5180 library for Arduino
GNU Lesser General Public License v2.1
105 stars 92 forks source link

Won't go passed PN5180 Hard-Reset #24

Open MagicEk opened 4 years ago

MagicEk commented 4 years ago

Hi, thank you for sharing your work. I'm trying to get my PN5180 to work with the example code. I've wired as instructed but when I run the code it won't go passed "PN5180 Hard-Reset..." no matter what I tried. Tried to change to another arduino, diffrent PN5180 and voltage divider, without luck.

P.S I'm a beginner with both codeing and electric components.

Thanks in advance. Best regards, Erik.

ATrappmann commented 4 years ago

Hi Erik,

did you have a token on the card reader, when the arduino starts up?

After the reset, the library only waits for an idle interrupt of the PN5180 module. Right after that is the next text output written to the serial monitor.

I think you should start without any token on the card reader!

Regards, --Andreas.

-----Original-Nachricht----- Betreff: [ATrappmann/PN5180-Library] Won't go passed PN5180 Hard-Reset (#24) Datum: 2020-02-11T17:46:04+0100 Von: "MagicEk" notifications@github.com An: "ATrappmann/PN5180-Library" PN5180-Library@noreply.github.com

Hi, thank you for sharing your work. I'm trying to get my PN5180 to work with the example code. I've wired as instructed but when I run the code it won't go passed "PN5180 Hard-Reset..." no matter what I tried. Tried to change to another arduino, diffrent PN5180 and voltage divider, without luck. P.S I'm a beginner with both codeing and electric components. Thanks in advance. Best regards, Erik. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ATrappmann/PN5180-Library/issues/24?email_source=notifications&email_token=AEVOSHU5EGXFRHUGR264X3TRCLI4TA5CNFSM4KTEM3SKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMT2NXQ , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVOSHVZPLY3K3GJRKVAVCDRCLI4TANCNFSM4KTEM3SA . [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/ATrappmann/PN5180-Library/issues/24?email_source=notifications\u0026email_token=AEVOSHU5EGXFRHUGR264X3TRCLI4TA5CNFSM4KTEM3SKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMT2NXQ", "url": "https://github.com/ATrappmann/PN5180-Library/issues/24?email_source=notifications\u0026email_token=AEVOSHU5EGXFRHUGR264X3TRCLI4TA5CNFSM4KTEM3SKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMT2NXQ", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ] 

TobyBorland commented 4 years ago

Hello folks,

I had the exact same issue which I solved. I am using an Olimexino-32U4, an Arduino Leonardo clone which allows me to run signals at 3v3. The SPI hardware lines of the Leonardo are not shared with the edge headers as in the Uno. Instead they are only connected to the 6-pin ISCP header. Once D14-MISO, D15-SCK, D16-MOSI are connected to the relevant PN5180 header pins, everything works. Note BUSY/SS/RESET may be mapped as needed.

Regards all, Toby