Introduction: Link Attack Model: the Amiibo Killer!

"This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com)

Hello Everyone!

This Instructable will teach you how to create a fun little project to teach you some c++ programming and the use of the Infrared Sensor and Servo motor for the Arduino Uno. You will need to have access to a 3D printer, Arduino Uno, Wires, Arduino Uno Infrared Sensor and Arduino Uno Servo Motor. This project is a little fighting (crude) Link (from Legend of Zelda) attack model that defeats Amiibos! Amiibos are little useful figurines for the Nintendo Wii U system. This project is crafted to be effective with any Nintendo Amiibo. The Link model will do a simple slash when an Amiibo is put in its sight, and the Amiibo will be knocked off the small platform.

I hope you enjoy it!

Step 1: Step 1: Setting Up the Mechanics

First you will need to have these objects ready to go:

  • Arduino Uno
  • Arduino to USB adapter (data enabled)
  • 3x male to female jumper wires (m2f jumpers)
  • 4x male to male jumper wires (m2m jumpers)
  • 9 volt battery (optional)
  • 9 volt to DC adapter for 9 volt battery (optional)
  • double sided tape or Command Strips
  • Ultrasound Proximity Sensor (and adapters that should come with it)
  • Servo motor

if we set up the mechanics first, it will be easier to program and install in the enclosure later.

You will need to take the 4 m2f jumpers and plug them into the proximity sensor. Then plug the remaining 3 m2m jumpers into the servo motor's 3 terminal slots. These slots are allocated by orange, red and brown cables. Plug one wire into each of these slots. Now, all we need to do is wire these two objects into the Arduino so it can receive data from the sensor and transmit data to the servo.

There is a detailed Circuit Diagram Attached.

  • For the Proximity sensor:
    • plug the wire coming from the terminal labeled "trig" into port 8 on the Arduino
    • plug the wire coming from the terminal labeled "echo" into port 7 on the Arduino
    • plug the wire coming from the terminal labeled "VCC" into the port 5V on the Arduino
    • plug the wire coming from the terminal labeled "GND" into one of the GND ports on the Arduino
  • For the Servo motor :
    • plug the wire coming from the Orange wire slot into port 9 on the Arduino
    • plug the wire coming from the Red wire slot into the port 3.3V on the Arduino
    • plug the wire coming from the Brown wire slot into the other "GND" port on the Arduino

When you are done, the system should look like the two photos provided.

Step 2: Step 2: Programming the Arduino

This next step is not too difficult. All we need to do is:

  1. Plug the Arduino into a computer
    1. The Arduino come with a BUS to USB cable. Simply plug the BUS (hexagonal) side of the cable into the Arduino and plug the USB (rectangular) side of the cable into your computer
  2. Open the Arduino IDE program
    1. You can download the Arduino IDE program at the following address: http://www.arduino.cc/en/Main/Software
    2. This program will allow you to create code for your Arduino projects and upload them to your Arduino
    3. Once installed, please open the Arduino IDE
  3. Either program an Arduino Sketch or use the one I provide
    1. To program for the Arduino, you need to know a little bit of C++ programming.
    2. If you are not comfortable programming based on the steps I have provided, please use the code I have provided.
    3. This code uses the Proximity sensor information from ports 7 and 8 to know how far away an object is. Based on that distance, the Arduino will either trigger the Servo motor to rotate 80 degrees one way, then 80 degrees another way, or do nothing. The Arduino uses port 9 to tell the Servo motor how to move.
  4. Upload the Arduino Sketch
    1. Once you have either the sketch provided or your sketch ready its time to upload it
    2. To make sure your arduino is connected, go to the "tools" tab and hover over to "Serial Ports". If a port is named "COM4" for example and has a green check on it, that means your arduino is plugged in.
    3. In the upper left hand corner of the screen there is an icon that looks like an arrow in a circle pointing to the right, click that arrow
    4. Your sketch should be uploaded to the Arduino and will run immediately. To test this, put your hand up to the proximity sensor and see if the servo motor is spinning.
    5. If your IDE is telling you there is an error, follow the instructions it gives and try debugging the code

The Arduino IDE INO file is attached called Final_Sketch

Step 3: Step 3: 3D Printing

This project is optimized for the use of Amiibo figurines from the Nintendo Franchise. Therefore I have created a 3D printing file to create a very crude LINK (from legend of zelda) model to hit the Amiibo. To finish this project all we need to do is print and assemble the enclosure and that LINK attack model. I have attached the files to be printed out. For this you will need a 3D printer and the Makerbot Desktop application. If you do not have these, find your nearest 3D printing center.

The files attached are:

  • The base of the box enclosure (Labeled DC-47PM or BOX files)
  • A custom made lid with room for the Servo Motor and Ultrasound Sensor (Labeled Lid...)
  • The Custom 3D link attack mode (Labeled Rough Link Deliverable)

Step 4: Step 4: Putting It All Together

Finally all we need to do is put it all together.

  1. Filling the Lid
    1. First we take the 3D printed Lid and fit the Ultrasound Sensor into the two small holes in the raised cylinder area
    2. When fitting the Ultrasound Sensor, make sure not to force it too much because it might have more reading errors
    3. We put the servo motor in the rectangular hole in the center of the lid
    4. When fitting these two components, they should just sit snugly into to hole, however if the holes are too tight, use a small knife to whittle down the holes to fit your components. If they are too large of holes, use some strong tape to keep your components from falling. I personally used strong Command Strips to keep my Servo motor in place
  2. Assembling Link.
    1. Since Link needs to fit on the Servo Motor, we can use the cross shaped adapters that the servo motor came with.
    2. Take one of the adapters and put one side of either double sided tape or a Command Strip onto the adapter. Make sure it sticks well
    3. Take the other side of the tape or Command Strip and stick it to the bottom of the link model. Preferably in the center of the model to allow for maximum efficient torque
  3. Powering the Arduino (optional)
    1. if you have a spare 9 volt battery and DC to 9volt adapter lying around you can use this power the Arduino
    2. Simply plug the 9 volt into the adapter
    3. Then Plug the adapter into the arduino
    4. This should power the arduino for many hours
    5. I recommend using an adapter with a switch so you can switch the model on and off to save power
  4. Closing the Box
    1. Now that we have all the components together, we put the Arduino into the box with all the wires running to the servo motor and proximity sensors above it.
    2. Make sure the arduino is plugged into the battery or USB adapter.
    3. place the lid on top of the box
    4. Use machine screws to fasten the lid to the box at the 4 corner holes provided
    5. Then place the Link model on the servo motor, making sure the adapter is plugged into the servo head securely

Step 5: Step 5: Lets Test This Baby Out!

To test your new exciting Link attack model just do these few easy steps:

  1. Turn on your 9 volt adapter or plug in your USB wire to a USB power supply
  2. Make sure your lid and Link model are secured well
  3. Place an Amiibo on the raised cylindical platform
  4. Watch your Model hit that Amiibo off with ease
    1. If you don't have an Amiibo simply place your hand over the cylindrical platform
  5. Be dumbfounded by your brilliance

The Sketch tells the servo to move Link when something is over the platform. Because of this, and how link was measured and produced, he can hit off any Amiibo with ease.

I hope you enjoyed this Instructable on making your very own Amiibo slaying LINK ATTACK MODEL! :)