-
1Getting started.
Before sitting down to build this project you will need to order some parts and get some things 3D printed. If you have the components on hand. have a 3D printer and at least clear filament, you can get going right away. Otherwise, visit your favorite parts store to get the components. The only part that is particular to this project is the button since there is a hole in the case sized for that button. There is an Amazon link to the part in the components list.
-
2Flash the Arduino Nano
First flash the Arduino Nano with the provided code. If this is new to you, watch some basic Arduino videos on YouTube. You will need to download and install the Arduino IDE, which the videos will help you with.
-
3Solder the NeoPixel ring to the Arduino Nano
Disconnect the Arduino Nano from the USB power before soldering to it.
The Ground of the ring goes to the ground pin on the right side of the board when the USB connector is facing you. The ground of the battery pack will also be attached here later.
The 5V Power of the ring is soldered to the 5V pin on the same side as the ground wire.
Solder the Data In (DIn) pin of the ring to the 330 Ohm resister.Solder the other end of the 330 Ohm resister to pin D12 on the left side of the Arduino Nano when the USB connector is facing you.
-
4Solder the capacitor across the power leads
This capacitor is a best practice for dealing with power fluctuations. The circuit can operate without it (the is true of the resistor) but may shorten the life of the project.
Solder the 1000 micro farad 25V polarized capacitor across the power leads of the pixel ring. The negative leg of the capacitor (the most clearly marked one as negative) to where you soldered the ground lead of the pixel ring. Solder the positive leg of the capacitor to the same lead as you soldered the 5V lead of the pixel ring.
-
5Connect the Ardunio Nano to power to check the wiring.
The easiest way to do this is to plug the USB connector from the computer back in. The Neo Pixel ring should light up and have a spinning color animation like in the video. Over time the color will shift through the rainbow. If the ring is not lighting up at all, check you soldering and re-flash the Arduino with the sketch.
-
6Prepare the case and cover
After 3D printing the case and cover you need to do a little prep work.
- Remove any supports in the through hole for the push button.
- Make sure the button fits flush on the outside of the case. You may need to ream the hole. I used a step drill bit, but a knife should work as well.
- Cut the SVG mask for the front of the cover. (optional)
- The front of the cover is the flat side of the cover.
- You can use the vinyl mask design or you could paint on the pattern of the lines. You don't have to do either, but I think it makes the whole thing look a bit better. Because of how the "fins" on the inside of the ring divide up the pixels it is not a critical step.
- Remove any supports in the through hole for the push button.
-
7Secure the NeoPixel ring to the cover
Just a reminder, the front of the cover is the flat side and the back is the side with spaces for the LEDs in the ring.
First place the Neo Pixel ring into the cover such that the LEDs fit naturally into the slots on the back of the cover. Note which LED is the first LED so that you can correctly mark the winning area of the ring. In the pixel ring I used it was where the DIN connection was located.
To secure the ring you have multiple options here. If you are using the smaller game case, hot glue is a great choice as it does not take up any space and is easy to remove if you need to. You can use a more permanent glue as well. If you are using the optional larger case you can use the retaining ring to hold the pixel ring in place.
If you choose to use the retaining ring place the LED ring and then press the retaining ring into the center of the back of the cover with the arms extending to the sides to hold the LED ring in place.
-
8Place the battery case and mount the button in the case
Because of the way the button is mounted you need to install it before you solder it to Arduino Nano. This is also the time to confirm that the hole for the button is correctly free of supports of overhangs. On the outside of the case, the base of the button should be flush with the flat area around the whole for the button. Used the supplied nut and ring to secure the button in place. Be sure to orient the wires of the button horizontally so that the battery holder can slide under them. This is less of an issue with the taller game case as there is more room.
-
9Solder the battery case to the Arduino Nano
Don't put the batteries in yet! That is the next to last step.
Solder the positive (red) lead to the VIN pin on the right side of the board when the USB connector is facing you.
Solder the ground (black) lead to the same Ground pin that you soldered the Ground lead of the Pixel Ring.
-
10Solder the button to the Arduino Nano
Solder one of the leads of the button to the Ground on left side as the USB connector is facing you.
Solder the other lead of the button to the D4 pin on the left side as the USB connector is facing you.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.