Thanks to the NFC Shield, you can directly sent messages from your mobile to the paper man, and the paper man will spit it out by printing with the thermal printer.
All the hardware we need:
1. Seeeduino, or other Arduino compatible board
2. NFC Shield V2
3. Embedded Thermal Printer
4. Thermal Paper Roll - 57x50mm
6. a NFC enabled Android device, like Galaxy Nexus
7. Polymer Lithium Ion Battery
We chose an Iron Man model papercraft which can be downloaded from http://www.cubeecraft.com/cubee/iron-man-mk-42.
Of course, you can choose other papercraft shell that you like.
After downloading the Iron Man, we need to print it out. We chose A2 size paper,
which makes the shell size perfect for placing Seeeduino and NFC Shield. Next, let’s cut the paper and assemble them together.
First, we need to plug in the NFC Shield onto the Seeeduino.
Then, connect the embedded thermal printer to the NFC shield. The green wire connects to digital pin 3, yellow goes to digital pin 4 and black to any of the GND pins. You can change the digital pins later, but to match the demo code, stick to this for now.
We need the PN532 library (https://github.com/Seeed-Studio/PN532). To Download, click the “ZIP” button near the top left of the library page, unzip PN532-master.zip and place 4 folders (PN532, PN532_SPI, PN532_I2C and PN532_HSU) inside your Arduino libraries folder.
Don’s NDEF library (https://github.com/don/NDEF) is also needed. Download it and place the NDEF folder inside your Arduino libraries folder too.
At last, we need an Arduino sketch to run. Get the demo sketch from https://github.com/xiongyihui/NFCDemo/blob/master/arduino/nfc_printer.ino. Open the sketch with Arduino IDE. Select the board “Arduino Duemilanove w/ ATmega328” for Seeeduino and the serial port of Seeeduino to upload the sketch.
After getting the hardware and software done, use an NFC enabled Android device to touch the antenna of the NFC Shield. You should make sure that the screen of the Android device is on and unlocked and an app is opened. If all the things go well, Android will play a sound and show a message “Touch to beam”, then touch the screen to send a message to the Paper Man. The Paper Man will print the message out.
Some details deserve to be noted on in the assembling:
1) The thermal printer output port must be directed at the mouth of Iron Man. Otherwise, paper tape can’t be spited out from the Iron Man’s mouth.
2) Make sure Seeeduino is placed in the center of Iron Man. Or the gravity will make the posture of Iron Man weird.
3) Make sure that the atenna of NFC shield is easy to get for the mobile.
After the work finishes, your Paper man works! Enjoy!
The current version Paper Man only prints text messages, while the printer supports to print images and bar code. Perhaps you can have a try to print a richer message!