Hi everybody!
Welcome to my first instructable! I apologize in advance for my poor level in English.
In this step-by-step guide I am going to teach you how to build a simple and very cheap NFC Ring Lock Box !

Paso 1: What you'll need

Ok first, the idea was to create a box locked from the inside. Many different designs were described and easy to make with Instructables but I decided to create mine.

It had to be the cheapest possible and be able to fit in the top of the box. Also to not take too much storage space.



Cheap Box. I used an unfinished wooden box because you can paint and decorate it however you want. There are many wooden boxes here. But it was too expensive for me so I went here.

Inside system lock. Mine.

Switch. Rocker

Battery and its MicroUSB/USB cable. Mine. It has to be a 5V battery that can be charged and deliver power simultaneously.

Arduino Nano and its MiniUSB/USB cable. Very cheap.

Servo SG90. Very cheap.

PN532 Elechouse NFC. Best One

NFC RING to unlock the box. Official

Micro USB Female to USB Female Adapter. Like this one.

And for sure you'll also need some Basics Tools: 3 Hands, Screwdriver, Driller, Soldering kit ...

Paso 2: Connect the NFC reader/writter and the Servo SG90 motor to the Arduino Nano

If you received the same SERVO as me, the 3 pins are stuck together. You must detach them from themselves before continuing.

Connect the red wire to the 5V of the Arduino Nano.
Connect the black to the ground GND.
Connect the white wire to the Digital 3.

For the PN532 you can read this but I will tell you everything you need to know to make it work ;)
First you need to put your PN532 into the I2C mode.
Solder the 4 pin connector.

VCC connect to 3.3V, ground to ground, and Analog 5/SCL and Analog 4/SDA.

Just look at the picture.

<p>So,</p><p>I am having a bit of a problem with the software. When I found my rings NFC UID it was </p><p>0x4 0x72 0x87 0xBA 0x34 0x35 0x80 - using iso14443a_uid code<br><br>But for your code, you have it as a 12 digit number. which is not the case for my ring apparently. As well, if I wanted to use a UID with Length 4, how would I change the code? </p><p>please and thanks!</p>
Your UID is 47482ba343580<br>Just delete the 0x and put the letters in minuscule. :)
<p>Hmmm... I tried that. And no change. I am sure that the ring works, I am sure the NFC module works. Any other ideas Nairod785? I also tried 47287ba343580 (assuming u just typed it wrong in the reply)</p>
<p>Yeas it should be 47287ba343580.<br>If it still doesn't work, read your PM.</p>
<p>Hi,</p><p>I really really like this! I'm planning on building one very soon. I'm not very good with Arduino (actually I have zero experience) so some parts of the code are confusing me. This in particular:</p><p>void loop() {</p><p> if(pos==1){</p><p> myservo.attach(3); // attaches the servo on pin 3 to the servo object &quot;Digital 3&quot;</p><p> myservo.writeMicroseconds(2000);</p><p> pos=2;</p><p> delay(400);</p><p> }</p><p> if(pos==3){</p><p> myservo.attach(3); // attaches the servo on pin 3 to the servo object &quot;Digital 3&quot;</p><p> myservo.writeMicroseconds(580);</p><p> pos=4;</p><p> delay(400);</p><p>I don't get it because you say if the servo position is 1 ( if(pos==1) ), then attach to pin3, write to the servo, and set position to 2 (pos=2). Next, you say if(pos==3), write to the servo and set the position to 4. It's confusing because when will the position ever be 3? It starts as 1, then can be changed to 2. Thanks in advance for the help :)</p>
<p>I don't really have the time to review my code, in fact I didn't have experience with arduino too.<br>But the sate &quot;pos=3&quot; and &quot;pos=1&quot; are set when it detects the ring.<br>Try the code and you'll see that it will works :)<br>If you really don't understand you can PM me.<br><br>if (ringUid==&quot;47d6b2b62880&quot; || ringUid==&quot;47c9b2b62880&quot;){</p><p>if(pos!=4){ <br> pos=3; <br> }</p><p>if(pos==4){ <br> pos=1; <br> } <br> }</p>
<p>Hello,</p><p>where did you get the circuit board from? I already got the battery but I need the board and the possibility to attach USB and Micro USB on it.</p>
<p>The circuit board was a part of the battery, I simply removed the case to just keek the battery and the board.<br>But you can find it on the internet I suppose.<br>I'm sorry to don't help you more than that.</p>
<p>Great project!</p><p>How can I build such a circuit board for the battery?</p><p>What type of battery is it? Lithium? </p><p>Thank you.</p>
<p>Hi All,</p><p>Please to never buy this ring!</p><p>I tried on march to buy one, following the kickstarter campaign. I've payed the product, received a shipping anounce, without tracking information.</p><p>I'm waiting for 5months now... And they do not want to answer to me. A ring cost 29.99&pound; + 10&pound; when you are not in UK. Then they just stole me 40&pound;.</p><p>You should not do the same error than me...</p><p>I'm trying to report this as fraud today. Good luck.</p>
Write something on the official forum, be sure they gonna listen. Don't be hateful, it's a new company, with less than 10 employees who are trying to do their best. <br>Post and the forum, explain everything while being polite and you'll receive your ring shortly.<br>Hope you will resolve this.
<p>I'm trying to create something similar but with the RFID device in this link:</p><p><a href="http://tronixstuff.com/2013/11/19/arduino-tutorials-chapter-15-rfid/" rel="nofollow">http://tronixstuff.com/2013/11/19/arduino-tutorial...</a></p><p>Being new to Arduino I'm a little confused on what exactly I'll have to modify to make this. Going to need to bring back some of my Java skills it seems. I just want to use RFID because I already have one that I use for work and is more practical for me.</p>
<p>I know the code will essentially be something like this but wanted some feedback:</p><p><a href="http://pastebin.com/qmCCHj88" rel="nofollow">http://pastebin.com/qmCCHj88</a></p><p>I won't have the servo and other parts for a couple weeks anyway but I want to go ahead and figure out the code as much as possible in the meantime.</p>
<p>I can't help you very well because I was new to arduino too before this project and I only used the NFC library.<br>But maybe, let's PM ok? We'll post here if we figure out something.</p>
<p>What the heck is a &quot;NFC ring special edition with rainbow inlay?&quot;</p>
<p>I wondered that also! It appears that it is a ring with a Near Field Communication chip embedded in it. Sounds pretty cool! You can Google it for more info</p>
<p>Google is your friend:</p><p><a href="https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=NFC%20ring%20special%20edition%20with%20rainbow%20inlay" rel="nofollow">https://www.google.com/webhp?sourceid=chrome-insta...</a></p><p>Great Instructable</p><p>If the link doesn't work Google: NFC ring special edition with rainbow inlay</p>
<p>This is awesome, you should enter the epilog contest! <a href="http://www.instructables.com/contest/epilog6/">http://www.instructables.com/contest/epilog6/</a></p>

Sobre este Instructable

25.253 vistas

347 favoritos

Publicado el:
Ago 5, 2014

Licencia: