Skip to content

GiladFisher/Arduino_AUX_Reactive_LEDs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Sound Reactive RGB IC LEDs using an AUX cable as input

Table of Content:

  • Connections
  • Softwere
  • Troubleshooting

Connections

AUX schematic:

TRS-Audio-Plug-Connections-2

An example for an Arduino board:

Nano

As you can see from the AUX schematic above, the basic AUX connector contains 3 separate parts: Ground, Left audio, and Right audio. It is important to connect the Ground part to a "GND" labled pin on the Arduino board. The other Two lines: Left audio and Right audio; should be connected to an analog pin on the Arduino board. Those pins are usaully labled with the letter A. (Connect the left and right audio parts to the same analog pin)

An example of an addressable LED strip (the one I'm using):

0

This part is a bit more tricky but definitely achievable. We need to connect the LED strip to an external power supply as well as to the Arduino board.

Supplying Power:

  • Please note that electricity is very dangerous. Do not attemp anything that you are not sure is safe

First, look at your LED strip to determine what Voltage it requires. My LED strip, for example, requires 12v. Chances are you have a supplier of that voltage lying around from an old router or something but they are not very expensive and relatively easy to find.

  • Note that it needs to be DC and not AC

Now all that's left is to connect it to the LEDs. to do this, determine which part of the power supplier cable is the possitive and which is the negative and connect the possitive to the possitive part (in my case it's the part labled "12V") on the LED strip and the negative part to the part labled "GROUND".

Connecting to the board:

Connect the remaining cable of the LED strip, which shoud be labled "Din" or "D" or "DATA", to one of the Data pins on you Arduino board. And also connext the "GROUND" cable of the LED strip to one of the "GND" pins on the arduino. This is important for science reasons.

Softwere

Downoad Arduino IDE: https://www.arduino.cc/en/software

Add the FastLED library, here's a good tutorial: https://www.ardu-badge.com/FastLED

And, of course, download the .ino file in this repository.

Now, to make it work, you'll need to change a few parameters according to how you set your LED strip up:

  • Make sure that you set the pin constants to the correct pins to which you connected the "DATA" to the LED strip and the Analog pin to the one you connected the AUX output to
  • Look at one of the chips on your LED strip to determine which type it is and write it in the "setup" function. For example, in my case, as you can barelly tell by the photo, the type of chip I have is "WS2811"
  • You will also need to find out the order of colors the LED strip reads. It can be "RGB" or "GRB" ... In my case it's "BRG". The only way to find this out for sure is trial and error.

Troubleshooting

If you're using Windows 10 you'll probably have to install these drivers in order to program Arduino Nano: Drivers

If the input from your AUX cable isn't solid 0 when not playing music, try connecting the Arduino power supply to the same system to which the AUX is coneccted. Generally speaking, in my opinion, the best way to set this up is to connect the AUX and Arduino to a TV streamer. Those often send audio signals to both AUX and HDMI ports at the same time, making it ideal for this project. You also use one of these

If you run into any other problems you can contact me at giladfisher13@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages