This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com)
4 Resistors: 3x 150 Ohm + 1x 100 Ohm
1x: Arduino USB Cable
1x IR remote (YK-001)
1x IR receiver
1x 1 AA 12V battery pack
3D Printer for parts
Acrylic Paint: Yellow, White & Purple.
Wires and jumpers for connections.
Step 1: Arduino Code
The main arduino sketch for my project can be obtained in the text file below. It has relevant comment in it for further details.
Step 2: Circuit Design & Block Diagram
For my project, the circuitry is very simple, and it requires few complex components. Using the 5V and ground pin, the IR sensor Vin pin (Pin 3) is connected to it while the ground pin (Pin 2) is connected to the ground buss of the arduino. Pin 12 of the arduino is connected to the receiving pin (Pin 1) of the IR sensor.
As for the LEDs, I am using pin 2 to 5. Starting with Pin 2, where my white LED is connected, a 100 Ohm resistor is connected to it in series with the anode of the LED, and the cathode is connected to the ground. For the other LEDs, it is using the pattern connection, but 150 Ohm resistors are used where the are connected to pin 3 to 5 in series with the yellow LEDs.
The stepper motor is connected to the driving board, and 5V and ground pins of the arduino are properly connected to the Power pins of the driving board. As a result, this will help the motor turn on. The driving board pins 1N1 - 1N4 are connected to the the arduino pins 8 - 11 in order to receive signal from the arduino.
With the code properly load in the arduino, the IR remote will send signals to the IR receiver where the arduino will translate the code and perform its functions depending on the button that was pressed by the user.
Step 3: 3D Printed Parts
For my 3D printed parts, I used inventor to design the triforce. However, I built it in two portions where I have a front and back part to create an enclosure when brought together. On the front part, I have 4x 5mm holes for the LEDs to be mounted in. The back part has a hollow inner design in order for all the wires and jumpers to fit in. The black box was given to us in the Make Course, and a supporting hole of 1 inch was put in the back portion where wires will go in to create a connection with the arduino. On the black box, a small hole is created to allow connection between the remote and the IR sensor. The master sword was found on www.grabcad.com. However, a support was designed to allow connection between the motor and the sword. See below for the inventor files:
Step 4: Assembly
After painting the middle triangle with white acrylic paint and the sword in purple, the LEDs were mounted inside the holes in the front triforce part. Afterwords, the back was brought together to create the enclosure. the support was easily connected with the sword with the other fitting on the stepper motor. The stepper motor was securely attach using hot glue with a hole drilled on top of the box for the support. the Triforce was connected to the top of the box where a 1 inch whole as made to support it.
Step 5: Final Project and Tutorial
With all the efforts put in for my platform, I was able to get it to work and have everything working together. I would like to thank Prof. Schlaf and all the amazing TAs for helping throughout the semester. See video for tutorial.