• Login
    • Search
    • [[global:header.recent]]
    • [[global:header.tags]]
    • [[global:header.popular]]
    • [[global:header.groups]]
    • [[global:header.search]]

    Arduino and NFC

    Ideas for using NFC Rings
    8
    74
    99912
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lokki
      Lokki Community Helper last edited by

      lol, damn man. Desoldering from those boards really sucks at times. Just don't get it too hot ;-)

      1 Reply Last reply Reply Quote 0
      • I
        itzdarkoutthere last edited by

        @Lokki

        lol, damn man. Desoldering from those boards really sucks at times. Just don't get it too hot ;-)

        How did you end up getting that lib for the elechouse working? This shield has pretty much the same one. I put all 4 pn532 folders and the ndef folder in the arduino libraries folder.

        
        In file included from iso14443a_uid.pde:16:
        C:\Program Files (x86)\Arduino\libraries\PN532_SPI/PN532_SPI.h:6:28: error: PN532Interface.h: No such file or directory
        In file included from iso14443a_uid.pde:16:
        C:\Program Files (x86)\Arduino\libraries\PN532_SPI/PN532_SPI.h:8: error: expected class-name before '{' token
        iso14443a_uid:20: error: no matching function for call to 'PN532::PN532(PN532_SPI&)'
        C:\Users\Mike\Documents\Arduino\libraries\PN532_SPI/PN532.h:61: note: candidates are: PN532::PN532(uint8_t)
        C:\Users\Mike\Documents\Arduino\libraries\PN532_SPI/PN532.h:59: note:                 PN532::PN532(const PN532&)
        iso14443a_uid.pde: In function 'void setup()':
        iso14443a_uid:42: error: 'class PN532' has no member named 'setPassiveActivationRetries'
        iso14443a_uid.pde: In function 'void loop()':
        iso14443a_uid:58: error: no matching function for call to 'PN532::readPassiveTargetID(int, uint8_t*, uint8_t*)'
        C:\Users\Mike\Documents\Arduino\libraries\PN532_SPI/PN532.h:65: note: candidates are: uint32_t PN532::readPassiveTargetID(uint8_t)
        
        1 Reply Last reply Reply Quote 0
        • Lokki
          Lokki Community Helper last edited by

          Yeah that's one of the errors I was getting before I sorted it out - you've put each one seperately in there along with the ndef folder and whatever other libraries you have installed, then you've restarted the arduino program?

          1 Reply Last reply Reply Quote 0
          • Lokki
            Lokki Community Helper last edited by

            Well, whaddayaknow... the RC522 unit did a full dump from the Alpha ring using that library you found.
            The one I had was a branch from that and must have been doing something odd.

            It wont work with my normal ring, and it refuses to play nice with the old-style carbon fiber, but it does read that one alpha inlay, and does a full content dump.

            1 Reply Last reply Reply Quote 0
            • I
              itzdarkoutthere last edited by

              @Lokki

              Yeah that's one of the errors I was getting before I sorted it out - you've put each one seperately in there along with the ndef folder and whatever other libraries you have installed, then you've restarted the arduino program?
              yeah, each of the folders are in the arduino lib folder separately, including ndef.

              I eventually got it to compile by fixing the errors one by one. Now it is not detecting the pn532. Not sure if the board is toast from desoldering that one header or if my "fixes" didn't really fix it. Giving up on this one for now. It has an external antenna. I tested in on my itead module and the read distance was horrid on regular tags, nothing with the ring.

              1 Reply Last reply Reply Quote 0
              • Lokki
                Lokki Community Helper last edited by

                That's weird, it's pretty much what happened to me the first time around - I ended up reinstalling the arduino sdk and starting again on the home computer after which it worked properly.
                My laptop on the other hand has done the same thing and nothing I do seems to sort it out. That said I've got two versions of that particular library installed and I think that it might be making the sdk confused because of that.
                The boards shouldn't fail that easily - got a picture man? I don't know how experienced you are with a soldering iron, but best is to have the iron set high and make contact with the solder/wick only briefly each time and give it time to cool in between hits.

                1 Reply Last reply Reply Quote 0
                • Lokki
                  Lokki Community Helper last edited by

                  Oh also, depending on the interface if you mix up MISO/MOSI or SDA/SCL then it'll fail to detect.

                  1 Reply Last reply Reply Quote 0
                  • I
                    itzdarkoutthere last edited by

                    I think the board survived. Not much in the area, no apparent signs of too much heat, and I'm pretty sure that header is just a pass-through. Re-installing the SDK is probably a good idea. I just need to find some time to take a closer look at things. I have my family visiting this weekend and friends the following weekend, so busy getting my place in shape. The shield is plugged directly into my uno, so hopefully no issue there, but i will pull up the schematics when I get time and make sure everything is kosher with the lib.

                    1 Reply Last reply Reply Quote 0
                    • Lokki
                      Lokki Community Helper last edited by

                      Ah cool, thought it might have been breadboarded in like mine are, directly plugged in is a lot easier at this point eh.
                      I definitely think uninstalling and reinstalling the SDK and libraries is the go. Make sure you've got copies, cos it'll ditch them all in the uninstall. Fingers crossed that'll do the trick!

                      1 Reply Last reply Reply Quote 0
                      • I
                        itzdarkoutthere last edited by

                        @Lokki

                        Ah cool, thought it might have been breadboarded in like mine are, directly plugged in is a lot easier at this point eh.

                        Yeah, I have a lib backup folder. I have had to re-install before to solve a lib issue, not sure why I didn't think of that myself!

                        1 Reply Last reply Reply Quote 0
                        • Lokki
                          Lokki Community Helper last edited by

                          Same reason I installed the PN532 libraries wrong several times eh ;-)

                          1 Reply Last reply Reply Quote 0
                          • johnyma22
                            johnyma22 NFC Ring Team last edited by

                            PN532 from Elechouse works great. I have a bunch here and I use them all the time. I use them with a nano too.. $10 for nano, $20 for pn532 afaik.. Major win!

                            1 Reply Last reply Reply Quote 0
                            • johnyma22
                              johnyma22 NFC Ring Team last edited by

                              Also note I some some open pull requests to the elechouse PN532 elechouse library.. https://github.com/elechouse/PN532/pulls -- feel free to comment on them to get them merged in.. The elechouse guys are a pretty slow..

                              1 Reply Last reply Reply Quote 0
                              • Lokki
                                Lokki Community Helper last edited by

                                @johnyma22

                                PN532 from Elechouse works great. I have a bunch here and I use them all the time. I use them with a nano too.. $10 for nano, $20 for pn532 afaik.. Major win!

                                Nice one, I think I'll take that as a 'go' to get more of them (I'd already pretty much decided they would be the weapon of choice!)

                                1 Reply Last reply Reply Quote 0
                                • Lokki
                                  Lokki Community Helper last edited by

                                  @johnyma22

                                  Also note I some some open pull requests to the elechouse PN532 elechouse library.. https://github.com/elechouse/PN532/pulls -- feel free to comment on them to get them merged in.. The elechouse guys are a pretty slow..

                                  Done and done.

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    itzdarkoutthere last edited by

                                    ok, so finally got the sketch to compile. Couldn't get it working on my windows 7 installation even after reinstalling arduino software. I fired up an XP VM, installed the arduino software and the sketch compiled first try. There must be some lingering data after uninstall that I need to take care of.

                                    1 Reply Last reply Reply Quote 0
                                    • Lokki
                                      Lokki Community Helper last edited by

                                      Ah cool, so is the board working any better at the moment then? That car entry sketch I put here somewhere does a card identify/UID dump on a read for either mifare or NTAG so that might be worth trying.

                                      1 Reply Last reply Reply Quote 0
                                      • Nairod785
                                        Nairod785 last edited by Nairod785

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          flashoflight @itzdarkoutthere last edited by flashoflight

                                          @itzdarkoutthere I've also been playing with this module. I can't seem to get it to recognize any tags yet. Have you? 7 months ago....hopefully you didn't give up! :P

                                          1 Reply Last reply Reply Quote 0
                                          • Lokki
                                            Lokki Community Helper last edited by

                                            Hi @flashoflight, it's been a while since Mike was online. I gather he's been busy!
                                            So have you got the ITEAD module that he was playing with to start off?

                                            F 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post