Sound Visualizer

6,807

72

15

About: My name is Eammon Littler and I'm a college student interested in the field of engineering, robotics, and programming. 想像 (souzou) is the Japanese word for imagining, which I find myself constantly doing, an...

This project came about after watching this video by a youtuber who described a way to visualize sound with a laser. It works by taking a speaker, stretching a balloon over it, and centering a mirror fragment on the balloon. Sound is played through the speaker and a laser pointer is shined on the mirror. The sound causes the mirror to vibrate, creating a laser show. I designed the speaker above so I can mix frequencies and play with the various shapes. Since I don’t own a speaker, I thought this would also be a good opportunity to learn how sound systems work while making a high quality speaker.

Step 1: Parts

Step 2: Assembly (case)

  1. Solder wires onto the terminal of the speaker (yellow - positive : green - negative). Screw the speaker onto the top half of the speaker. Push the magnets into place. The magnets are for connecting the top half and bottom half together for upgradability. While it is currently running off a 12v socket, I’m hoping to upgrade it with built in batteries and bluetooth.
  2. Push the amplifier through the front hole. Use the nut that comes with the amplifier to clamp it into place. Insert the speaker wires into either the right or left output ports.
  3. Insert the 1/4” hex nut in the slot on the side of the top half case.

Step 3: Electronics

  1. Solder four wires to the output of the 12v socket (one pair to power the amplifier, the other for usb output). Solder a positive and negative connection from the 12v socket to the 5v regulator. The ground for the 5v regulator and the 12v socket are shared. Solder the output from the regulator to the usb output.
  2. Solder three wires to the female audio jack. Blue is ground, yellow is left, and green is right audio.

Step 4: Assembly (wires)

This next step is a little tricky. I used 20 awg wire, but you may want to use a thinner gauge. Make sure you have some needle nose pliers.

  1. Take one wire, tie some string around it and pass it through the base of the speaker. Use pliers to grab the wire and pull it out the other end. This may take some time, so be patient.
  2. With the string poking out from both ends, tie the remaining wires with the string and pull them through the hinge hole.
  3. Place the input sockets into the face of the port cover and hot glue into place. Push into the speaker base and pull the wires taut.

Step 5: Assembly (finishing the Speaker)

  1. Pass the wires through the pin and snap into the hinge hole on the side of the speaker base. Pass the wires through the side of the speaker case.
  2. This next part is a little unsettling, but bear with it. Push the cover into the pin. Angle it so that the case fits in a little better in the base. You might have to bend the base a little for the speaker to fit.
  3. Assemble the knob for clamping the speaker case in place. Push the hex screw into the knob print. This is optional, but it makes the knob look much better. Put hot glue in the remaining space of the knob and place the cover for the knob to hide everything.
  4. Wire everything as shown above. 12v cables into the input for the amplifier board. For the audio; yellow to left, blue to ground, and green to right audio input.
  5. Place magnets on the bottom case and snap the speaker cases together!

Step 6: Assembly (laser)

  1. Before putting anything together, solder longer wires on the laser diode. Pass the wires from the 3D printed laser head to the arm and down. After getting the wires through, snap the parts together.
  2. Solder the wires onto the li-ion charger. I opted to solder them to the input half of the charger module and not the output. Reason being the module pulsing current for its output. This causes the laser to make dotted lines when pointing it at a wall. I encourage people to try this anyway since it’s pretty fun to visually see how power is outputted from the charger.
  3. I ended up taping the charger module to the side of the kickstand. Plug a micro usb cable to the charger and usb port.
  4. Blow up a balloon to pre-stretch it. Cut off the neck portion to make it easier to wrap around the speaker. Use some double sided tape to stick the mirror to the balloon. When turned on, it should look like the above.

Step 7: Results: Laser Shapes

As you may have seen in the video above, I tried a slew of pure tones to create different kinds of shapes. I did a bunch of experiments and I found out a ton of cool things about waves and mathematical properties.

By using a frequency generator app on my phone, I started with a general sweep of frequencies from low to high, until I couldn’t see any discernible shapes. The cutout was at around 800 Hz (of course it’s subject to volume and how stretched out the balloon is). I then tried playing two pure tones together; 381 Hz and 326 Hz for the first one. To do this, generate a pure tone from this website (about 10 seconds). Drag and drop your audio files into a sound processing software (I recommend Audacity) and play together.

I tried two more different combinations, and then I noticed something. When the tones played were multiples of 10, they were static. By that I mean the laser travelled the same path over and over again, creating a still image. That’s when I tried the 101 + 200 + 300 Hz combination, with the 101 Hz creating a disturbance. My guess was that the 101 Hz will create a moving pattern compared to the 100 + 200 + 300 Hz combination (which was still). I was right! It was by far my favorite pattern.

This led me to try the simplest combinations only being disturbed by 1 Hz. The three sounds with 1 Hz included created an oscillating motion of a single shape going back and forth.

The last one was piano music I found online. I thought it would be fun to try with regular music. I’ve tried jazz, violin music, pop, dubstep, and other kinds of music. By far the “cleanest” patterns were made by the piano. This is probably due to each key being relatively pure in tone when played. At times, the piano music made patterns that I found looked similar to a Lissajous curve. It’s really pleasing to find mathematical connections like these in my projects, since finding these connections outside of classes is pretty difficult.

Step 8: Conclusion

I’ve never been an audio person up until now, but I have a newfound appreciation for everything that goes into making speakers work. This all started from a project in my machine learning class where I decided to make a speaker from scratch and try sound analysis. It was a working speaker, not particularly clear sounding. I used an LM386 amplifier and spare parts lying around. Although I’m not using my custom made amp, I will be using it for a project involving making a radio for another course at college.

I’m sure more audio projects are on the horizon seeing that I’m hooked now. It would be great to make it portable, bluetooth connected, and add a second speaker for a stereo version. But in order to do all that, I need funds and time. While winter break will give me time to work on projects, I’ll need the support of the community to keep my projects going. If you think what I do is informational, inspirational, or just plain cool, please support me by using my amazon affiliate link. Do your shopping as usual, but every item you buy I get a little kickback at no extra cost to you.

Optics Contest

Runner Up in the
Optics Contest

Share

    Recommendations

    • Toys Contest

      Toys Contest
    • PCB Contest

      PCB Contest
    • First Time Author

      First Time Author

    15 Discussions

    0
    None
    hczk

    5 days ago

    Hi, great project. Could you share the stl files? Thanks

    1 reply
    0
    None
    EammonLhczk

    Reply 5 days ago

    In the parts step, click on the "3D Prints" link. It will take you to the thingiverse page with the stl files.

    0
    None
    Chico da Rave

    Tip 13 days ago

    You can try a small sponge or spring fixed directly in the speaker (without the balloon).
    Then the mirror fixed to the sponge/spring.
    The lighter the mirror the more sensitive it will be.

    1 reply
    0
    None
    EammonLChico da Rave

    Reply 12 days ago

    Thanks for the tip. I'll have to try that. You're right about a direct connection being more sensitive making a more clear transfer of vibrations. It will also reduce the clouded sound, since the old method had the balloon covering the speaker.

    0
    None
    Ardutronico

    Tip 13 days ago on Step 7

    You don't need any website to generate tones, you can do that on Audacity! You just need to go to Generate > Tone..., choose the waveform (in this case sinusoidal), the frequency, the amplitude and the tone's duration, and press OK.

    2 replies
    1
    None
    EammonLArdutronico

    Reply 12 days ago

    That's so cool! Audacity is packed with so many tools I must've overlooked it. I'll definitely use that next time.

    1
    None
    EammonLArdutronico

    Reply 13 days ago

    I didn't know that, that's awesome! I'll definitely try that when playing with more combinations.

    0
    None
    mosix

    Question 15 days ago

    Hello. It's really an amazing project! About the quality printing, i was wondering which kind of 3D printer you have used to realize all the parts, and in particular way the ones empty inside. Thanks

    2 more answers
    0
    None
    TimothyJ999mosix

    Answer 13 days ago

    Any 3D printer will produce hollow objects like pipes and tubes. In fact the ability to create objects that are hollow or that have hidden interior structure is one of the great advantages of 3D printer fabrication, compared to other methods like extrusion, casting, etc.

    0
    None
    EammonLmosix

    Answer 15 days ago

    Thank you! For the dark parts, I used an Ultimaker 2. For the light grey, I used a prusa i3 mk3. The pieces with the hollowed out inside, like the outer grey base, was made by the prusa printer at my college.