Uncategorized

PN532 notes

Asked 
Active 2 days ago
Viewed 11 times
1

I have a pi zero v1.3:

PI – pn532

5v to 5v
gnd to gnd
BCM10 to MOSI
BCM9 to MISO
BCM11 to SCK
BCM5 to SS

I think the issue is BCM5 to SS? I believe this should be CE0 or CE1?

I have closed both SEL0 and SEL1. The only other thing is instead of using the DI/O 1-6 corresponding to the “MISO/MOSI/ETC”, I plugged the wire directly into the hole for MISO/MOSI/ETC.

Any help would be awesome!!

Link to the product: https://learn.adafruit.com/adafruit-pn532-rfid-nfc/shield-wiring

Thank You,

  • but which tutorial says “bcm5 to ss”? – tlfong01 yesterday
  • 1
    I’ll have to find it.Is there another it should connect to? – Denis 2 hours ago
  • You might like to show us a photo of your module, similar to the photos in these NFC questions: (1) stackoverflow.com/questions/60819793/…, (2) raspberrypi.stackexchange.com/questions/109773/…. Cheers. – tlfong01 50 mins ago
  • I googled the tutorial for your module and found it is for I2C. (3) learn.adafruit.com/adafruit-pn532-rfid-nfc/shield-wiring. Actually your module can do I2C, SPI, and UART. My answer in Ref 1 above is for PN532 in I2C mode, and I successfully followed the libnfc tutorial to setup the mdules OK. I can show it in SPI mode if you prefer to do SPI. BTW, the tutorial in your mdoules is for Arduino, you need to find other NFC tutorials for Rpi, such as libnfc for PN532 or simpleMFRC522 etc. – tlfong01 42 mins ago
  • In case you really prefer to do SPI, you need to first make sure your SPI setup is correct, by doing the SPI loopback test. See this for more details: “SPI NFC Module Testing Part 3 – Troubleshooting SPI Software and Hardware using LOOPBACK”: raspberrypi.stackexchange.com/questions/109773/…. You may also like to use a python program to read/ping the NFC module’s “Version” register to make sure the NFC module not bad, and more or less working OK. – tlfong01 29 mins ago
  • I have also listed demo code in my answers above on how to read a SPI “version/ID” or “config” registers. If you can show me a photo of your module, then I can give more details on how to connect MOSI to MISO in a cross-over/loop, and also how to connect the CLK/MOSI/MISO/SS to both Rpi’s buses: SPI 0.0, 0.1, 1.0, 1.1, 1.2 etc. – tlfong01 25 mins ago
  • Your module and accompanying tutorials seem to be 8 years old and for Arudino only. I guess you need to find more up to date Rpi compatible tutorials such as libnfc or simpleMFRC.References:(4) Adafruit PN532 NFC/RFID Controller Shield for Arduino 2012 [Product sheet] adafruit.com/product/789 (5) Adafruit PN532 NFC/RFID Controller Shield for Arduino 2012 [Tutorial] learn.adafruit.com/adafruit-pn532-rfid-nfc (6) Adafruit PN532 NFC/RFID Controller Shield for Arduino 2012 [Wiring] learn.adafruit.com/adafruit-pn532-rfid-nfc/breakout-wiring – tlfong01 3 mins ago   Edit
.END

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: