Homemade Bluetooth Speaker

by lgcherry2 in Circuits > Speakers

17 Views, 0 Favorites, 0 Comments

Homemade Bluetooth Speaker

wifi speakers (5).JPG
wifi speakers (17).JPG
wifi speakers (16).JPG
wifi speakers (15) - Copy.JPG

I've been learning electronics for a while, both at home and at school, and this was one of my very first projects. I finally have had the time to finish it, so here is how I made it and how you can make it as well!

Supplies

download.jpg
images.jpg
download.jpg
images.jpg
download.jpg
images.jpg
download.jpg

Here's what you'll need for this project:

  1. Speakers - just any old salvaged speaker(s)
  2. Bluetooth Audio Receiver Module - I used HiLetgo M18 from Amazon
  3. Amplifier Board - I used HiLetgo HXJ8002 from Amazon
  4. Power Supply - Anything with 5V will work. I used a breadboard power supply and an adapter cable
  5. Power Switch (optional) - Just any kind of on/off switch (not a regular pushbutton, has to lock on or off)
  6. Perf Board (optional) - just to kind of clean things up
  7. Pin Headers - You will need to find some of these somewhere (unless you want to get creative). I had some from an unused microcontroller, but these will be very helpful when soldering


Freeish Part:

  1. Any kind of case you want. I had a 3D-printed shell with acrylic on both ends cut to have holes for the speakers, screws, power cords, etc.
  2. As long as there is a switch, somewhere for the sound to come out, and somewhere for power to go in, it'll work, so do anything you want for this part

Build the Circuit

wifi speakers (4).JPG
wifi speakers (11).JPG
wifi speakers (12).JPG
  1. Carefully solder the M18 Receiver and the HXJ8002 Amplifier onto a perf board using the pin headers (if you aren't using a perf board, ignore all the references to them)
  2. Start by getting two wires (one for 5V and one for GND) and solder those close to the edge of the board
  3. Connect the 5V and GND of the M18 Receiver to those 5V and GND spots you just soldered (not the end of the wires, but to where they are connected on the perf board)
  4. Connect the 5V and BOTH GNDs to their respective positions just like you did in the last step
  5. Connect L and R from the M18 Receiver to L and R (respectively) on the HXJ8002 Amplifier
  6. Finally, connect the speaker to the amplifier board (some will have to solder to the board, some you can screw in. There should be two channels (ex., V1, V2) connecting one side of the speaker to V1 and the other to V2 (or whatever yours is) (if using multiple speakers, connect the left of each speaker to one side, and the right of each speaker to the other)
  7. Connect 5V and GND (those wires you first soldered) to whatever power you're using; you should then see a red light on the amplifier and a blue light on the receiver. If so, it's working!
  8. Connect it to your phone's Bluetooth, and it's good to play music like a normal speaker
  9. Optional- If you want, you can add a switch in between the GND supply and the GND wire in your circuit. This will allow you not to have to reach in and turn on and off the breadboard (or other) supply


Circuit is complete!

Build Case

wifi speakers (17) - Copy.JPG
wifi speakers (19).JPG

This step is going to be very free-for-all. You can do anything you want to contain the circuit, as long as sound can get out, and you can access the power.

Here are the files for what I did if you want to copy this, or not, this is completly up to you.

(You will need to modify the design for the acrylic to fit your speakers and switches, as their sizes will vary. However, this is a very loose part; as long as it works and looks cool, you're good!)

Test

wifi speakers (7) - Copy.JPG
wifi speakers (14).JPG

After all the power cords, switches, and speakers are attached, you're ready to test!

Start by powering it on, and you should hear "The Bluetooth Device is ready to connect" (or something along those lines)

Go to the Bluetooth settings on your phone and find the device (mine was HC-06) and pair with it.

Now start playing music and it should stream through the speakers!

(You can control the volume with your phone)