Bluetooth Speaker With Music Visualizer

by Tesalex in Circuits > Audio

5765 Views, 44 Favorites, 0 Comments

Bluetooth Speaker With Music Visualizer

Thumbnail.jpg

In this instructable, I'll show you how I build this Bluetooth Speaker which has a music visualizer at the top. It looks really cool and makes your song listening moment more awesome. You can decide whether you want to turn on the visualizer or not to save battery life and consequently get a longer play time.

Let's get started.

Watch the Video.

Bluetooth Speaker with Music Visualizer

The video has detailed information about all the steps involved in the process. Watch it first so that it's even easier to understand what you are going to read next.

Parts Required.

WP_20180304_15_19_17_Pro.jpg
WP_20180301_16_47_56_Pro.jpg
WP_20180301_16_49_33_Pro.jpg
WP_20180301_16_50_09_Pro.jpg

Test the Bluetooth Module.

WP_20180301_16_48_17_Pro.jpg

Solder a 3 Watt speaker to the Bluetooth Module and apply 5 Volts to it. Now connect it with your Bluetooth device and play some songs to check its working.

Quick Prototyping.

WP_20180315_08_05_56_Pro.jpg
WP_20180301_17_01_22_Pro.jpg
WP_20180301_17_00_01_Pro.jpg
WP_20180301_17_00_09_Pro.jpg
WP_20180301_17_00_15_Pro.jpg
WP_20180301_17_00_21_Pro.jpg

I made connections according to the attached circuit diagram but removing the Bluetooth Module part. Then I uploaded the sketch, also attached to this step, and quickly checked if the LEDs are doing what they are supposed to, which is reacting to the sound of course.

Note that the same sketch will be used throughout the project.

Plan the Enclosure.

WP_20180302_08_19_24_Pro.jpg
WP_20180302_08_47_06_Pro.jpg
WP_20180302_08_47_36_Pro.jpg

Time for some measurements. I took my time to measure everything and make a plan for the enclosure I’m going to build. This is necessary because once the material is brought down to size, you have to do a lot more to change it if anything goes wrong, unlike electronics in which you can just change a line and upload again or desolder a wire and solder it to the correct place. So, if you are going to design your own enclosure, do it with patience and very carefully.

After my planning was done, I drew outlines on the material I am going to use which is a 12 mm thick MDF. Do this step quite carefully too, as a 0.5 degree error at start point can become a couple degree error after travelling a distance. Better use a tri-square and check the dimensions after the outlining is completed.

Cut It Out.

WP_20180302_09_30_21_Pro.jpg
WP_20180302_09_30_39_Pro.jpg
DSCN1078.JPG
WP_20180302_09_31_34_Pro.jpg
DSCN1071.JPG
DSCN1072.JPG
DSCN1073.JPG
DSCN1075.JPG
DSCN1076.JPG
DSCN1077.JPG
DSCN1080.JPG
DSCN1082.JPG

I’ll be using a regular blade for straight lines and a curve cutting blade for cutting the hole for the speaker.

I started cutting from the speaker hole. For removing unevenness, use a file. After I was sure that the speaker will fit in perfectly, I moved on to cut straight lines.

You might want to be careful while choosing the speeds with which you are cutting the wood. Less speed is good for curved cutting while for straight cutting with a regular blade you should definitely use higher speed.

Using glue, I stick all the sides together. I have marked the speaker depth inside the enclosure as well as the height required for LEDs to diffuse through an acrylic sheet completely, which is around 1.5 cm. Now, keep in mind that while placing the components, nothing should be within these marked lines.

I marked the holes for the speaker and drilled it using a fitting drill bit.

At the same time, I also made openings for the switch I'm going to use and the micro USB breakout board, using drill and jigsaw with curve cutting blade.

Make It Look Good.

DSCN1088.JPG
DSCN1090.JPG
DSCN1091.JPG
DSCN1092.JPG

Now, to make the enclosure look good, I cut carbon fiber vinyl for all the 5 sides. I cut them a little bigger than required and after sticking to their respective sides I removed them using a sharp blade.

While I was at cutting things, I also cut the acrylic sheet after measuring the top of the enclosure. I drilled holes of size of the nuts I’ll be going to use. Using the same holes as guide, I made markings on the enclosure where to drill the holes to fix the sheet and then drilled it out using a drill bit one size less than that used in sheet.

Do the Connections.

DSCN1102.JPG
DSCN1104.JPG
DSCN1105.JPG
DSCN1106.JPG
DSCN1107.JPG

So after all this, I soldered two wires to the li-ion charger input. I fixed the battery and the step up converter at one corner with some hot glue. Then I took two sets of two wires and shorted them at on end. I will solder the shorted end to the Bluetooth mp3 player module and from the other end, one wire goes to a switch and other will go to Arduino. You only need to solder 5V wire to the switch and ground wire can directly be soldered to the device. The wires soldered to the Li-Ion charger input can now be soldered to the micro USB breakout board and the board can be fixed in place with some hot glue.

To reduce the wire hassle, I made a small PCB with Arduino and the sound sensor on it with all the connections. The connection is really pretty straight forward and will not require much time to complete. The connection diagram is attached in Step 4.

At this point, you can check your connection by shorting the power wires. I had to replace my battery with a different one, as the previous one suddenly stopped working.

Some More Connections.

DSCN1110.JPG
DSCN1115.JPG
DSCN1117.JPG
DSCN1118.JPG
DSCN1119.JPG
DSCN1122.JPG
DSCN1123.JPG
DSCN1124.JPG
WP_20180315_08_06_18_Pro.jpg

Using a thin white cardboard, I made a tray like this in which I’ll mount the LEDs. I made three holes for power and data in wires and soldered them to their respective places. I shorted the power and data wires on both the strips. For shorting the data in, I used the previously used technique.

Using a FTDI board, I uploaded the sketch to Arduino. I put everything to place and before finally setting all up, I tested the setup by shorting the wires to the battery and everything worked fine. The pin 7 is used for deciding whether the LED will be on or not. When it is high, LED must glow and when it’s not high, LED must be off(the yellow wire connected to pin 7). I pulled the pin 7 low using a 10k resistor to remove false triggering.

Coming to the switch connection, I shorted both the middle terminals and soldered the 5V from step up converter to it. I also shorted the two poles of any one side so that it doesn’t matter where the switch is moved, the Bluetooth module and Arduino should turn on (see picture). The difference will be in the fact that I solder the pin 7 of the Arduino to any one of the remaining pole. In this way, the pin 7 will get connected to 5V or ground indicating the Arduino to turn on or off the LEDs. I made the connections as I described and everything is working fine. Flipping the switch one side turns only Bluetooth speaker and Arduino on and flipping it to the other side makes LED on as well.

Without wasting any more time, I quickly soldered the speaker wires to the speaker. Using a little hot glue, I fixed the switch at its place. Then I fixed the speaker at its place using fitting nuts and bolts.

Finalize.

DSCN1132.JPG
DSCN1125.JPG
DSCN1126.JPG
DSCN1127.JPG

Place the LED tray at its place and then screw the acrylic sheet on the top and we are done.

That was all for Instructable. Thank you for reading.

If you enjoyed this project, please show yoru support by subscribing us on Instructables and YouTube.

YouTube link: www.youtube.com/c/Tesalex.

See you in the next Instructable :)