Pokeball Speakers

by mkarvonen in Circuits > Audio

9719 Views, 95 Favorites, 0 Comments

Pokeball Speakers

Kansikuva.JPG
IMG_20150310_200647.jpg
Pokeball Speakers

3D printed Pokeball speakers with NeoPixels. What could be more awesome?

Parts needed:

-Speakers. I used an old PC speakers that has got a active "sub-woofer" witch power the speakers.

-3D printer or some place where you can print them. Total print cost for piece was about 2 dollars.

Plastic used in these is 1.75mm PLA with 0.2 layer resolution

-Adafruit 5V Trinket

-Adafruit NeoPixel 16 Led ring

-Some cable

-Paint if you don't have the right color plastic.

Check out how it is done.

Remember to vote for me in the DIY audio & music contest :)

Printing the Bottom

DSCN4982.JPG
DSCN4983.JPG
DSCN4986.JPG
DSCN4988.JPG
DSCN4995.JPG
DSCN5000.JPG
DSCN5001.JPG
DSCN5002.JPG
DSCN5102.JPG

Print the bottom from the file.

I printed the case with Printrbot simple makers kit. Cura 15.02.1 is the program that i am using.

The inner mesh was printed just to keep the print in place. The inner mesh can be cut with knife.

Print took about 2 hours.

Print the Top Part

DSCN5006.JPG
DSCN5007.JPG
DSCN5009.JPG
DSCN5011.JPG
DSCN5030.JPG
DSCN5032.JPG
DSCN5033.JPG
DSCN5034.JPG
DSCN5035.JPG
DSCN5036.JPG

Make sure that the part is in the same scale as the bottom part is if you needed to scale it down or up.

The procedure with the top part is the same as the bottom part.

Cut the excess mesh from the print.

Downloads

The Button

DSCN5038.JPG
DSCN5039.JPG
DSCN5040.JPG
DSCN5041.JPG
DSCN5042.JPG

Print the button.

Cut a small notch to the lower part if needed. If you print the lower part couple of mils smaller you won't need to cut a notch as the top part will set over the edge. Choice is yours.

After the print is done. Hot glue the button to the upper part of the ball.

Speakers

DSCN5045.JPG
DSCN5046.JPG
DSCN5047.JPG
DSCN5048.JPG

I took the speakers from old PC speakers i had around. The bottom hole is made in the size of typical PC speaker. Luckily my speakers fitted just right.

Insides

DSCN5049.JPG
DSCN5103.JPG
DSCN5104.JPG
DSCN5050.JPG
DSCN5051.JPG
DSCN5052.JPG
DSCN5059.JPG
DSCN5061.JPG
DSCN5053.JPG
DSCN5060.JPG
DSCN5105.JPG
DSCN5106.JPG
DSCN5108.JPG
DSCN5107.JPG
DSCN5056.JPG

Solder wires to the NeoPixlel ring if you hadn't done it by now.

First insert the led to the bottom hole and put some hot glue around it to keep it in place.

After that fold the mounts from the speakers if needed. Use hot glue to secure the speaker on its place. The speaker goes on top of the led ring.

After that cut a small notch to the backside of the ball for the wires. See the last picture to get the idea.

Repeat the process with the second speaker.

First Test With the Led's

DSCN5062.JPG
DSCN5063.JPG
DSCN5064.JPG
DSCN5065.JPG
DSCN5066.JPG
DSCN5067.JPG
DSCN5069.JPG
DSCN5070.JPG
DSCN5071.JPG
DSCN5074.JPG
DSCN5075.JPG
DSCN5077.JPG
DSCN5073.JPG
DSCN5068.JPG

To test the led's i first used a normal Arduino Uno.

The code used is slightly modified from Adafruit's test code.

But first get the NeoPixel library from here: https://github.com/adafruit/Adafruit_NeoPixel

Install the library and paste the following code to the Arduino


#include
#include

#define PIN 1

// Parameter 1 = number of pixels in strip // Parameter 2 = Arduino pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2) Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across // pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input // and minimize distance between Arduino and first pixel. Avoid connecting // on a live circuit...if you must, connect GND first.

void setup() { // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket #if defined (__AVR_ATtiny85__) if (F_CPU == 16000000) clock_prescale_set(clock_div_1); #endif // End of trinket special code

strip.begin(); strip.show(); // Initialize all pixels to 'off' }

void loop() { // Some example procedures showing how to display to the pixels: colorWipe(strip.Color(255, 0, 0), 50); // Red colorWipe(strip.Color(0, 255, 0), 50); // Green colorWipe(strip.Color(0, 0, 255), 50); // Blue colorWipe(strip.Color(255,0,150), 50); // Send a theater pixel chase in... theaterChase(strip.Color(127, 127, 127), 50); // White theaterChase(strip.Color(127, 0, 0), 50); // Red theaterChase(strip.Color( 0, 0, 127), 50); // Blue

rainbow(20); rainbowCycle(20); theaterChaseRainbow(50); }

// Fill the dots one after the other with a color void colorWipe(uint32_t c, uint8_t wait) { for(uint16_t i=0; i

void rainbow(uint8_t wait) { uint16_t i, j;

for(j=0; j<256; j++) { for(i=0; i

// Slightly different, this makes the rainbow equally distributed throughout void rainbowCycle(uint8_t wait) { uint16_t i, j;

for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel for(i=0; i< strip.numPixels(); i++) { strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255)); } strip.show(); delay(wait); } }

//Theatre-style crawling lights. void theaterChase(uint32_t c, uint8_t wait) { for (int j=0; j<10; j++) { //do 10 cycles of chasing for (int q=0; q < 3; q++) { for (int i=0; i < strip.numPixels(); i=i+3) { strip.setPixelColor(i+q, c); //turn every third pixel on } strip.show(); delay(wait); for (int i=0; i < strip.numPixels(); i=i+3) { strip.setPixelColor(i+q, 0); //turn every third pixel off } } } }

//Theatre-style crawling lights with rainbow effect void theaterChaseRainbow(uint8_t wait) { for (int j=0; j < 256; j++) { // cycle all 256 colors in the wheel for (int q=0; q < 3; q++) { for (int i=0; i < strip.numPixels(); i=i+3) { strip.setPixelColor(i+q, Wheel( (i+j) % 255)); //turn every third pixel on } strip.show(); delay(wait); for (int i=0; i < strip.numPixels(); i=i+3) { strip.setPixelColor(i+q, 0); //turn every third pixel off } } } }

// Input a value 0 to 255 to get a color value. // The colours are a transition r - g - b - back to r. uint32_t Wheel(byte WheelPos) { WheelPos = 255 - WheelPos; if(WheelPos < 85) { return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3); } else if(WheelPos < 170) { WheelPos -= 85; return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3); } else { WheelPos -= 170; return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0); } }

Change the pin if needed. Pin 1 is used on trinket later.

Painting

DSCN5079.JPG
DSCN5080.JPG
DSCN5081.JPG
DSCN5082.JPG
DSCN5122.JPG
DSCN5110.JPG
DSCN5118.JPG
DSCN5120.JPG
DSCN5123.JPG
DSCN5121.JPG
DSCN5125.JPG
DSCN5126.JPG
DSCN5129.JPG
DSCN5134.JPG
DSCN5135.JPG

You will need red and black paint.

Paint the top red and the ring black. Simple as that. Use different colors if you want.

After the paint has dried. Put the top parts on the bottom parts and put some hot glue between them. The speakers are now done.

Now it's time to make the programming for the trinket and wiring.

Trinket

DSCN5142.JPG
DSCN5143.JPG
DSCN5136.JPG
DSCN5137.JPG
DSCN5139.JPG
DSCN5140.JPG
DSCN5141.JPG
DSCN5144.JPG

Get the software and drivers from Adafruit's site.

Insert the trinket to the computer via USB, press reset on the trinket. You have now 10 seconds to start the uploading. Press upload on the customized Arduino program and wait for it to upload. You can find the program from Adafruit's site also.

Pins for the trinket and NeoPixel wiring is following.

Neopixel---------------Trinket

GND(blue)-------------GND

Power 5V(yellow)-----USB+

Data Input(green)------#1

Later the wire coloring is changed that the GND is black, Power is Red and Data is Green.

Use the same code as before. It will work with Trinket also.

Cable for the NeoPixel

DSCN5158.JPG
DSCN5159.JPG
DSCN5160.JPG
DSCN5161.JPG
DSCN5162.JPG

Cable used is typical 4 wire phone wire.

Screw the wires together, solder them and secure with tape in case of short circuit. Lastly add some shrink tube and heat it up. This will give a nice finish for the cable.

Repeat the process with the second speaker.

Trinket Case

DSCN5164.JPG
DSCN5165.JPG
DSCN5166.JPG
DSCN5167.JPG
DSCN5170.JPG
DSCN5171.JPG
DSCN5172.JPG
DSCN5168.JPG

Print the file included. This is a simple case for the Trinket. This helps to install the Trinket safely behind the sub-woofer.

The Trinket will be powered from USB so keep in mind to make the Trinket's USB connector in easy to acces place. Also if you need to program the Trinket later it is easier this way. When uploading a new code to Trinket, simply start the code uploading in 10 seconds right after plucking the USB cable to the PC.

Use hot glue if needed.

Final Testing

DSCN5177.JPG
DSCN5178.JPG
DSCN5173.JPG
DSCN5174.JPG
DSCN5175.JPG
DSCN5176.JPG

Use hot glue to install the Trinket case to a place that suits you best.

The speakers work nicely and the sound quality is nice. And they look awesome.

Beats by Pokémon

DSCN5179.JPG
DSCN5180.JPG
DSCN5181.JPG
DSCN5182.JPG
DSCN5183.JPG
DSCN5184.JPG
DSCN5187.JPG
DSCN5185.JPG
DSCN5186.JPG
DSCN5188.JPG
DSCN5189.JPG
DSCN5190.JPG
DSCN5191.JPG
DSCN5192.JPG
DSCN5193.JPG
DSCN5195.JPG
DSCN5196.JPG
IMG_20150310_200647.jpg

Enjoy the most awesome looking speakers ever!

The led's can be turned of just by removing the USB cable from the PC.

I mainly made these speakers for my soon 4 year old boy who loves Pokemon.

I hope you enjoyed reading this.

Remember to follow me to get the latest project's first!

Thanks for reading!