# SparkFun-RGB-LED-Music-Sound-Visualizer-Arduino-Code **Repository Path**: funlol/SparkFun-RGB-LED-Music-Sound-Visualizer-Arduino-Code ## Basic Information - **Project Name**: SparkFun-RGB-LED-Music-Sound-Visualizer-Arduino-Code - **Description**: SparkFun Music Visualizer Tutorial - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-10 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SparkFun RGB LED Music & Sound Visualizer This repository holds the Arduino program featured in the SparkFun tutorial on creating a music visualizer with a strip of addressable RGB LEDs. ### Required Materials The wish list for all these parts can be found [here.](http://sfe.io/w122818) * [SparkFun RedBoard](https://www.sparkfun.com/products/12757) _(Any board with 3.3V and 5V pins will suffice.)_ * [LED RGB Strip - Addressable, Bare (1m)](https://www.sparkfun.com/products/12025) * [SparkFun Sound Detector](https://www.sparkfun.com/products/12642) * [Breadboard - Self-Adhesive (White)](https://www.sparkfun.com/products/12002) * 3x [Momentary Pushbutton Switch - 12mm Square](https://www.sparkfun.com/products/9190) * [Trimpot 10K with Knob](https://www.sparkfun.com/products/9806) _(or any analog potentiometer.)_ * [Resistor 330 Ohm 1/6th Watt PTH](https://www.sparkfun.com/products/8377) _(or any resistor between 300–500 Ω)_ * [Electrolytic Decoupling Capacitors - 1000uF/25V](https://www.sparkfun.com/products/8982) * _(if needed)_ [Jumper Wires Standard 7" M/M Pack of 30](https://www.sparkfun.com/products/11026) The resistor and capacitor are not required, but they will help prevent possible damage to the LEDs. ### Hookup This project requires virtually no soldering! The few exceptions will probably be soldering some pins to the sound detector, and if you've cut a roll of addressable LEDs in the middle you'll have to solder some wires to the starting LED's pins. If you've never soldered before, I highly suggest taking a look at [this guide.](https://learn.sparkfun.com/tutorials/how-to-solder---through-hole-soldering) Below is also a general chart for how the pin(s) on each component should be routed, and an accompanying diagram. But before you begin, here are some things to keep in mind: * Be conscious of the orientation you think would allow the sound detector to take optimal readings for your intentions. Bending the pins to hold the sound detector perpendicular to the breadboard is a recommendable option. * Electrolytic capacitors are polarity-sensitive, so how they are oriented is important. Make sure to place the side with a white stripe and a negative symbol into a negative current (ground) and the other into positive current. * Resistors aren't polar, but it's good practice to be consistent with their orientation relative to the current. * Trimpots are not polar either, however their middle pin is the analog output so don't power that directly. * Pushbuttons are not polarity-sensitive and also do not need to be powered directly, just a ground connection will suffice. The pins used in the diagram and the code are in parentheses. If you use a different pin, don't forget to change it in the code as well:
| Sound Detector | Addressable LED strip | Trimpot | Pushbutton | 1 mF (1000 µF) Capacitor | 300–500 Ω Resistor |
|---|---|---|---|---|---|