Skip to content
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

SPI Wiring Not working on d1 mini #113

Open
6000850 opened this issue May 11, 2021 · 2 comments
Open

SPI Wiring Not working on d1 mini #113

6000850 opened this issue May 11, 2021 · 2 comments

Comments

@6000850
Copy link

6000850 commented May 11, 2021

Hello
This wiring is SPI, but after uploading the ReadTag.ino code, the message "Didn't find PN53x board" is displayed.

My Board :
Wemos D1 Mini

My Wiring :

SCK => D5
MISO => D6
MOSI => D7
SS => D3
VCC => 3.3V
GND => GND

When I connect the SS pin to D8. Upload gives an error and the code is not uploaded

ReadTag.ino

#include <NfcAdapter.h>
#include <PN532/PN532/PN532.h>

    #include <SPI.h>
    #include <PN532/PN532_SPI/PN532_SPI.h>
    PN532_SPI pn532spi(SPI, 0);
    NfcAdapter nfc = NfcAdapter(pn532spi);

void setup(void) {
    SERIAL.begin(9600);
    SERIAL.println("NDEF Reader");
    nfc.begin();
}

void loop(void) {
    SERIAL.println("\nScan a NFC tag\n");
    if (nfc.tagPresent()) {
        NfcTag tag = nfc.read();
        tag.print();
    }
    delay(5000);
}
@6000850
Copy link
Author

6000850 commented May 12, 2021

Hello
No answer to this question?

@6000850
Copy link
Author

6000850 commented May 19, 2021

SoftwareSerial worked! but SPI NOT Working!! why!?

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

No branches or pull requests

1 participant