Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

PN532 over SPI on ESP8266
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

PN532 over SPI on ESP8266

by beic on Mon Jul 13, 2020 2:26 pm

Hi there,

I'm using PN532 module over SPI on ESP8266 board, it's working, but the PN532 module and the ESP8266 board are interfering each other.

Do you have any solution or suggestion for preventing RF interference from each other?

Kind regards,
Viktor

beic
 
Posts: 3
Joined: Tue Feb 13, 2018 3:12 pm

Re: PN532 over SPI on ESP8266

by mikeysklar on Mon Jul 13, 2020 6:28 pm

Hi Viktor,

I've seen you setup and posting on other forums.

https://github.com/adafruit/Adafruit-PN532/issues/79
https://www.esp8266.com/viewtopic.php?f=32&t=21575

I believe using the UART or I2C would be easier options.

https://www.revk.uk/2019/06/choosing-in ... pi-or.html

However, if you are really hung up on SPI you could try shorter wire lengths between the ESP8266 and PN532.

I have seen working examples using our Adafruit PN532 breakout over SPI with the Feather Huzzah.

huzzah-pn532.png
huzzah-pn532.png (279.34 KiB) Viewed 24 times

mikeysklar
 
Posts: 1655
Joined: Mon Aug 01, 2016 8:10 pm

Re: PN532 over SPI on ESP8266

by beic on Tue Jul 14, 2020 5:47 am

mikeysklar wrote:Hi Viktor,

I've seen you setup and posting on other forums.

https://github.com/adafruit/Adafruit-PN532/issues/79
https://www.esp8266.com/viewtopic.php?f=32&t=21575

I believe using the UART or I2C would be easier options.

https://www.revk.uk/2019/06/choosing-in ... pi-or.html

However, if you are really hung up on SPI you could try shorter wire lengths between the ESP8266 and PN532.

I have seen working examples using our Adafruit PN532 breakout over SPI with the Feather Huzzah.


Dear Mikey,

Thank you for your fast response.

I tried already everything, shorting cables, shielding, etc...

I got the same odd result.

My final board look like this:
Image

If I put the PN532 module directly or on the little extension cable 5-10cm, I got the same results.

I don't know what could be the issue, but I know it's not software/code related.

Kind regards,
Viktor
Last edited by beic on Tue Jul 14, 2020 6:09 am, edited 1 time in total.

beic
 
Posts: 3
Joined: Tue Feb 13, 2018 3:12 pm

Re: PN532 over SPI on ESP8266

by mikeysklar on Tue Jul 14, 2020 12:25 pm

That is a good looking board.

Have you tried using the the UART or I2C? I realize this will mean a board re-spin, but I see others have struggled an unusual amount with SPI and the PN532. I'm not familiar with the PN532 RFID PCB you are using, but ours has some jumpers that need to be set.

mikeysklar
 
Posts: 1655
Joined: Mon Aug 01, 2016 8:10 pm

Re: PN532 over SPI on ESP8266

by beic on Tue Jul 14, 2020 12:48 pm

mikeysklar wrote:That is a good looking board.

Have you tried using the the UART or I2C? I realize this will mean a board re-spin, but I see others have struggled an unusual amount with SPI and the PN532. I'm not familiar with the PN532 RFID PCB you are using, but ours has some jumpers that need to be set.


Dear Mikey,

Thank you.

UART is a no go for me, tried over I2C, but it's need 6 pins (2x power, 2x I2C, 1x RST and 1x IRQ), D1 mini lacks of GPIOs, so, I decided to use it over SPI with Adafruit library.

I'm using this NFC module, and yes, it has jumpers/dip switch to change to desired protocol.

Image

I can't change anything anymore one the designed PCB, because it was mass produced in big batches.

Kind regards,
Viktor

beic
 
Posts: 3
Joined: Tue Feb 13, 2018 3:12 pm

Please be positive and constructive with your questions and comments.