Pn532 compatibility with Raspberry Pi 3 / zero with I2C?

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gust0208
 
Posts: 26
Joined: Wed Oct 14, 2015 11:37 pm

Pn532 compatibility with Raspberry Pi 3 / zero with I2C?

Post by gust0208 »

Hello,

I have had success with using the SPI bus to communicate with the PN532 and my raspberry pi 3 and zero. My question is in the documentation for the PN532 it states that the I2C bus is not reliable for use on the Raspberry Pi [https://learn.adafruit.com/adafruit-pn5 ... cuitpython].

My question is if this is still true? It seems surprising given the Stemma QT hat for the raspberry pi using the I2C bus exists. I love the ease of use with the Stemma QT connection, but didn't want to proceed with my project if it would lead to instability or weird errors down the road.

Thanks,
Tom

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Pn532 compatibility with Raspberry Pi 3 / zero with I2C?

Post by dastels »

It's not ALL I2C devices, but this one in particular. It's not really surprising as the Pi isn't as microcontroller board. It's not designed for hard real-time projects and sometimes low level hardware interfaces don't work so well. SPI does work well for this breakout so why not just use SPI?

Dave

User avatar
gust0208
 
Posts: 26
Joined: Wed Oct 14, 2015 11:37 pm

Re: Pn532 compatibility with Raspberry Pi 3 / zero with I2C?

Post by gust0208 »

dastels wrote:It's not ALL I2C devices, but this one in particular. It's not really surprising as the Pi isn't as microcontroller board. It's not designed for hard real-time projects and sometimes low level hardware interfaces don't work so well. SPI does work well for this breakout so why not just use SPI?

Dave
Thanks for the reply. The documentation was not clear that the I2C concern was specifically for the PN532. As I put in my post, the reason I was asking is that I like the ease of the Stemma QT connections and just overall simplicity for wiring. But, as you said, the SPI works, so I will go ahead with it.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”