Giter VIP home page Giter VIP logo

Comments (5)

lewisxhe avatar lewisxhe commented on May 27, 2024

You have referenced GPIO14, GPIO15 in many places, and the setup has been configured as Wire. You can do this


#include <Arduino.h>
#include <PN532_SWHSU.h>
#include <PN532.h>
#include <SPI.h>

PN532_SWHSU pn532swhsu( Serial1 );
PN532 nfc( pn532swhsu );
const uint8_t NFC_TX = 32;
const uint8_t NFC_RX = 33;

void setup(void)
{
    Serial.begin(115200);
    Serial1.begin(115200, SERIAL_8N1, NFC_TX, NFC_RX);
    Serial.println("Hello Maker!");
    nfc.begin();
    uint32_t versiondata = nfc.getFirmwareVersion();
    if (! versiondata) {
        Serial.print("Didn't Find PN53x Module");
        while (1); // Halt
    }
    // Got valid data, print it out!
    Serial.print("Found chip PN5");
    Serial.println((versiondata >> 24) & 0xFF, HEX);
    Serial.print("Firmware ver. ");
    Serial.print((versiondata >> 16) & 0xFF, DEC);
    Serial.print('.');
    Serial.println((versiondata >> 8) & 0xFF, DEC);
}


void loop()
{

}

from lilygo-t-eth-series.

lewisxhe avatar lewisxhe commented on May 27, 2024

Please connect the RX of PN532 to
RX -> 33
TX -> 32

from lilygo-t-eth-series.

lewisxhe avatar lewisxhe commented on May 27, 2024

If there is any problem, please restart it

from lilygo-t-eth-series.

htue avatar htue commented on May 27, 2024

Hi Lewis,

Thanks for all the help and suggestion to move to other pins,
so far I was unable to make it work on the ESP32 but the ESP8266 seemed to work fine on whatever pins I tried. Due to time restrains i went on with the ESP8266 now I would like to try again.

Do you think it might be an isseu with the libary itself or have any other suggestion to try?

Thanks in advance

from lilygo-t-eth-series.

lewisxhe avatar lewisxhe commented on May 27, 2024

I don't think it's a library issue. I don't have PN532 modules, I just put forward my opinions and guesses.

from lilygo-t-eth-series.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.