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

    Elechouse PN532 NFC Module V3 for Arduino etc.

    Ideas for using NFC Rings
    26
    113
    235989
    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

      yeah, I think the one you grabbed a while back would have been seperate cards for on/ignition/off. It was a while back.
      Just set the pins however you want them, it's pretty arbitrary. I think from memory the handbrakepin1 basically does nothing, you could chop that out.

      1 Reply Last reply Reply Quote 0
      • M
        MarkGabb last edited by

        Sorry question wasn't terribly clear... I forget how to actually assign pins. so if I wanted trigger pin1 to be b5 do I just change the 2 to b5?

        1 Reply Last reply Reply Quote 0
        • M
          MarkGabb last edited by

          Lol strait back and full of questions

          So I've loaded the code and input my keys.... however I don't get any further messages from the board about state it just reads the uid back to be over and over... shouldnt get a message about state from the board?

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

            Yeah it should be returning a state like "key accepted" or whatever I've got written in there. Read the uid in however many tags/rings you've got and enter them in, re-load the sketch and see what happens - I may have pasted the uid in wrong.

            1 Reply Last reply Reply Quote 0
            • M
              MarkGabb last edited by

              Yeah I reloaded it and loaded in both rings it was reading, as well as the one I sent you...wjich I got the uid from the terminal windownnnwhich means I must be getting the right id

              but no go

              1 Reply Last reply Reply Quote 0
              • M
                MarkGabb last edited by Andreas

                Hello! I'm a Car!
                Reader Online, Waiting for a valid key
                  UID Value: ..4..B..4C..22..99..3C..814b4c22993c81
                
                  UID Value: ..4..B..4C..22..99..3C..814b4c22993c81
                
                  UID Value: ..4..32..32..22..99..3C..814323222993c81
                
                  UID Value: ..4..32..32..22..99..3C..814323222993c81
                

                 Serial.println(ringUid + "\n");
                 if (ringUid == "42cbfd26f3f81" || ringUid == "814b4c22993c81" || ringUid == "814323222993c81" || ringUid == "xxxxxxxxxxxxxx") {
                    Serial.println("Key accepted!");
                  }
                Lokki 1 Reply Last reply Reply Quote 0
                • M
                  MarkGabb last edited by

                  ok poured over this again last night...im positive im missing something, but really no idea what it is...
                  anyone with some programing experience got any tips on why this wouldnt be working?

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

                    @MarkGabb said in Elechouse PN532 NFC Module V3 for Arduino etc.:

                    Hello! I'm a Car!
                    Reader Online, Waiting for a valid key
                      UID Value: ..4..B..4C..22..99..3C..814b4c22993c81
                    
                      UID Value: ..4..B..4C..22..99..3C..814b4c22993c81
                    
                      UID Value: ..4..32..32..22..99..3C..814323222993c81
                    
                      UID Value: ..4..32..32..22..99..3C..814323222993c81
                    

                     Serial.println(ringUid + "\n");
                     if (ringUid == "42cbfd26f3f81" || ringUid == "814b4c22993c81" || ringUid == "814323222993c81" || ringUid == "xxxxxxxxxxxxxx") {
                        Serial.println("Key accepted!");
                      }
                    

                    heh. I can see one thing wrong at least. 4b4c22993c81 not 814b4c22993c81 and 4323222993c81 not 814323222993c81

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

                      If that doesn't work I'd recommend installing nxp taginfo on an android device, read your ring and take the UID from the "tech" tab. There are zeros that may be necessary. eg. 04 0B 4C 22 99 3C 81
                      Don't forget to kill the process before locking your device if you're using the nfc ring unlock app.

                      1 Reply Last reply Reply Quote 0
                      • M
                        MarkGabb last edited by MarkGabb

                        @Lokki spot on. i read the tag reading the wrong way around
                        im guessing it wont pass to next section until i have the circuits completed...
                        i remove the part when it checks for handbrakes and have just set it to 0 permanantly

                        it wont say engine cranking, but im pretty sure that because nothing other than nfc reader is connected to it

                        do you know anyone who has done an eagle for this??
                        i think this is worthy of sending the board out for proper creation

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

                          MrStein has his own design of this, with different code. Mine is basically just hacked together in my head, as per the sketch output pins. It's possibly a bit too "organic" for me to go back and actually diagram. I'd have to start again, pretty much. In my other thread "quick and dirty vehicle start/entry sketch" I've written down what I've done, which parts were selected and why. That'd be a good start, but I'd go for larger relays if I were doing it again in an older car. Just remember, it's got to be a latching relay for the car power and a momentary relay for the starter motor.
                          I'll have to set up the basic board again for testing, I expanded it, added a screen, did a few other of this and that and then removed it to sell the car. I'm pretty certain it cycled through properly without anything else being hooked up though, I've got a youtube video somewhere showing that happening with an LED.

                          Just comment out anything that you're not using, like the handbrake part.

                          1 Reply Last reply Reply Quote 0
                          • M
                            MarkGabb last edited by

                            ill check that out and see where to go from there

                            1 Reply Last reply Reply Quote 0
                            • M
                              MarkGabb last edited by

                              yeah got everything working now using led in place of the relays for testing.....

                              however i dont think i got the pins in right. the leds seem to be onn and then off on switch....

                              int triggerPin1 = 2; //engine starter
                              int triggerPin2 = 3; //accessory and power on
                              int triggerPin3 = 4; //power off
                              how do these pins relate in respect to a1 a2 and such??? i cant find any documentation on such

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

                                With my setup they don't stay on, they're just changing the state of the latching relay or holding the engine starter relay on for a brief time. When I get back on Friday I'll have a close look at my board and get back to you.

                                1 Reply Last reply Reply Quote 0
                                • L
                                  Limpresible last edited by

                                  Hello guys,

                                  I'm totally new in this and I bought few days ago the NFC Module V3 (same as you guys are using). On the other side i'm using an Arduino Micro from SParkfun Micro based on an ATmega32U4. I put in place libraries I uploaded sketches coming from elechouse and tried the first one so the read sketch.

                                  My arduino recognize the chip unfortunatelly it keeps waiting until I put a card or a key card over it. Of course I do it but nothing happen. No recognition no sign from the arduino nothing....

                                  Is there someone who had the same problem? or a beginning of an answer?

                                  Thank you :)

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    MarkGabb last edited by

                                    @lokki hey man did you ever get a chance to look into that one???

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

                                      @MarkGabb sorry dude, I may have gotten sidetracked. I've just pored over my monstrosity here, pin1=2=D2 etcetera
                                      So on the arduino I've got D2 linked to the cranking relay connected to the starter motor, via another relay so the arduino doesn't burn out.

                                      @Limpresible sounds like the same kind of arduino as a leonardo, they use the same IC. Now, when you say there's a chip being recognised that's a touch ambiguous - do you mean the reader loads up and is ready or the NFC tag is recognised but does not read?

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        MarkGabb last edited by

                                        @Limpresible upload your sketch for us and im sure someone will be able to take a quick look
                                        @Lokki up to car install now....just noticed you have a ACC,ON, IGN are you switching both ACC and ON from the same relay?

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

                                          @MarkGabb I had mine in an R31 Skyline, so it was a bit different in ignition design to newer cars - in the end I tied accessory and ignition power to the same relay and had it go straight to that. Originally they were seperate ignition positions.
                                          So first ring touch was to power the car on, second was to crank the engine for a set period. Pretty much the same as most keyless ignition vehicles now, with the power/start button.

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            MarkGabb last edited by

                                            @Lokki awesome...within about a week i should have mine up and running

                                            Lokki 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post