Skip to content

Use Arduino Leonardo Board instead #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cbDragon opened this issue Jun 14, 2024 · 4 comments
Closed

Use Arduino Leonardo Board instead #1

cbDragon opened this issue Jun 14, 2024 · 4 comments

Comments

@cbDragon
Copy link

Hey guys, I am really appreciated with your great work about the PN532. I am a novice in Arduino field. However, I wonder if I use Arduino Leonardo to do the experiment, anything need to be changed? For example, the wire connection I found in the elechouse pdf may be different between this two development board.

@gentilkiwi
Copy link
Contributor

I never used an Arduino Leonardo board before, so cannot be sure... but as boards follow Arduino connector standards:

  • SPI (CLK, MOSI & MISO) are on same SPI pins (13, 11 & 12) ;
  • Interrupts are on same interruptable pins (2 & 3) ;

it should work.

SPI

image

https://docs.arduino.cc/language-reference/en/functions/communication/SPI/

Interrupts

image

https://docs.arduino.cc/language-reference/en/functions/external-interrupts/attachInterrupt/

@cbDragon
Copy link
Author

Thanks so much, I try to follow your advices.

@gentilkiwi
Copy link
Contributor

gentilkiwi commented Aug 1, 2024

In fact the documentation is wrong, SPI pins are not 10/11/12, you must take a look at the ICSP header
image

https://content.arduino.cc/assets/Pinout-Leonardo_latest.pdf

I sent a message on arduino/Arduino#11470

(and I confirm it works on Leonardo :))

@gentilkiwi
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants