Make Art: Audio Visualizer

by rowemg in Circuits > Audio

280 Views, 3 Favorites, 0 Comments

Make Art: Audio Visualizer

cover_pic.jpg
Make Art: Audio Visualizer

The project picks up sound via microphone and visualizes it with the screen. It also contains a speaker to play files to simulate noise.

Supplies

  • Box
  • ⅛” birch plywood (~32”x20”)
  • Laser cutter
  • Wood glue
  • sandpaper
  • 4x m3 washer
  • 4x m2x8 bolt
  • 4x m2 nut
  • 5/64” drill bit
  • drill
  • tape
  • Electronics
  • Raspberry Pi Pico W
  • ~10x male to male jumper wires
  • 2x male to alligator clip
  • microphone to USB A
  • battery pack with USB A port
  • HDMI to HDMI cable
  • Adafruit MicroSD SPI or SDIO Card Breakout Board
  • MicroSD Card (32 gbs)
  • 2x micro USB to USB A
  • SD Card reader
  • TFP401 HDMI/DVI Decoder to 40-Pin TTL Breakout
  • 7.0" 40-pin TFT Display - 800x480
  • 3" diameter 8 ohm 1 watt speaker
  • breadboard
  • external button

Make the Box

The box should be laser cut using the "editted.svg", drilled to mount the speaker (overlay the speaker mounts over the laser cut hole), and then glued (reference box supplies for items).

Downloads

Download Code for Audio Visualizer

Go to this link, git clone the repository, create a virtual environment if you wish, and then install the necessary libraries found in requirements.txt (pip install -r requirements.txt).

Credit: aiXander

Download Code for Music Through the Speaker

Rename the attached file "final.py" to "Code.py" and put the file into the CIRCUITPY volume when the Pico W is attached to your computer.

Downloads

Download Music to MicroSD Card

Download legal music to the MicroSD card via the MicroSD card reader and match the download directory to the path directory in "Code.py" (originally <make_art>).

Assemble Electronics

20230328_124837.jpg

Assemble jumper wires into position based off of the image or study the Pico W Pinout diagram.

Components should be taped when necessary to prevent damage.

Actual Use of the Project

The battery pack should be used to charge the TFP401/screen (USB A to micro USB). All other cables should go into the laptop/computer.

Run <py run_FFT_analyzer.py> after changing directory (cd) to use the audio visualizer. OnTopReplica can make the audio visualizer program take up more of the screen.

As soon as the Pico W has power, the Code.py program will run and it should loop through songs. The button is used to skip songs.