NFC Gift Box for Birthday Party
背景介绍:
其实这是2016年在一场公司内部hackathon上的作品,我在这场活动中同时作为主持人和参赛人员。利用这个难得的机会,我提前做了一些准备工作。现场所有参赛人员在进场前被按照星座分了组,每个NFC名牌上被悄悄被写入了名字对应的星座。
我设计的游戏规则是:每个星座可以点亮一颗宝箱上的灯,重复的星座不会起到任何作用,集齐12星座可以打开宝箱获得宝物。
这个游戏好玩的地方在于,当所有人开始尝试打开宝箱时并没有被告知这个游戏规则。他们必须自己发现这个设定,找到不同星座的人去打开宝箱。
游戏设计的故事背景时大家来参加生日派对,帮助人找到生日礼物。
好了,背景就介绍到这里。
Now,I’ll show how to make it. If you’re interested in it, you can follow me.
Steps:
1.Prepare the following electronic modules and connect them together:
Connect the electronic modules as shown above
2.Design and Laser Cutting
Here I use the 3D modeling software Rhino. The advantage of using it to make cutting drawings is that it can be verified in 3D. Finally, it is transformed into 2D cutting drawings.And then I used 3mm thick wood and cut out the drawings with a laser cutter.
Make a Wooden Snow first
1) Paste the 13.56MHz RFID book tag on the Acrylic which is cutted by Laser Cutting same size.
2) Connect the Acrylic and the board which is cutted by Laser Cutting with rivet
And then make a Wooden Box
1) Connect the board with angle iron
2) Repeat last step until the box get 5 surface
3. Connect the electronic modules
Connect the electronic modules as shown above. ( LED strip: There are so many holes in the wooden board. Cut the LED strip one by one. Then fix them behind the wooden board and weld. )
Make the Serve As a Lock
4. Software Works
We use Arduino Mega as the controller here,if this’s your first time to hear about Arduino, put hand on Arduino to start your amazing journey to Arduino.
First of all, click here to download the code.
1. When you get to the github page, find a Download ZIP button, click to download the code.
2. The code you downloaded is not an Arduino library, it's a sketchbook, which is include all the library the project need.
3. Unzip the file you had downloaded from github, you will get a folder ConstellationBox-master.
4. Open your Arduino IDE, click File > Preferences > Sketchbook Location, browse to the folder we had mentioned above - ConstellationBox. Then click OK to save it.
5. Close and re-open Arduino IDE, click File > Sketchbook > demo, then the main code of this project is open.
6. Choose the right board(Arduino Mega) and port to upload the code. Refer to the image above.
1)Download the picture of 12 Constellations to sd card
2)Put the sd card into TFT Touch Shield
3)Every picture named as files
Give the Message to NFC Card
Download one app which is named TagWriter on your phone.
Read tags:
When you open the app, find Read tags button, click to read tags.
Put one's snowflake badge under the NFC of your phone.
Write tags:
You need to know the people's constellation. Find out all of the pictures of 12 constellations, remember the name( number ) of the picture.
Following the steps to click White tags > New dateset > Link. In this step, you need to paste the URL on the line. Add the mark " /?XX " at the end of URL. " XX "is the number of picture. Then click SAVE&White.
Put one's badge under the NFC of your phone. Then click White to download.