Introduction: 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

Step 1: 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).

Step 2: 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

Step 3: 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.

Attachments

Step 4: 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>).

Step 5: Assemble Electronics

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.

Step 6: 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.