Page 1 of 1

Change intensity of 2812b effects based on audio input

Change intensity of 2812b effects based on audio input

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
Examples: "MacOS X - Your question", "MS Word - Your Tip or Trick".

Please note that switching to another language when reading a post will not work!
Posts will not have a translated counterpart.




RSS Feed

Home Forums Hardware Arduino Change intensity of 2812b effects based on audio input

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  hans 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • 8011

    morenomdz
    Participant

    Hello there! I had this idea to use the arduino microchip to controle an strip of 2812b rgb leds using those effects we have here, but to have it changing intensity and or colors based on the music playing. Just like a normal music visualizer but to the leds.

    I am very new to arduino, any help with the project on where to start, what kind of structure the code would need to read the analog input and change the effect atributes based on it.

    Also, would be good to be able to change the effects using a button or serial input, my guess is I would have a list of effects and every time the set pin goes to high it changes to the next effect?

    As you see I am very new to this, all the help is apreciated.

    8293

    hans
    Keymaster

    Hi Morenomdz,

    My apologies for the late response … 

    I have done a few tests, but no full size projects, with Audio with the intend to have LEDs respond to it.
    I did manage to get a few things going – I realize these posts are in Dutch but maybe the code and link may be helpful: here and here.

    The issue I ran into was how to properly detect and scale audio … I think a small pre-amp would be needed to do it right. An analog pin can “read” audio but it’s very crude, hardly usable and you’re need to use a speaker or headset output.

    I have to do some more digging … unfortunately, my daytime job keeps taking away so much of my time. 

    8298

    morenomdz
    Participant

    Good stuff, I have few pre amps around ill try something later this week. Ty.

    8304

    hans
    Keymaster

    Let me know what you find out 

    My first test was headphones straight to analog pin, but the “resolution” was a bit poor – either because the analog conversion is too “rough” or because a calculation is needed to get proper scaling.

    Looking a little more at it, I decided to look for a small pre-amp chip, which I found … but then I had to move to a different content for work, so all that is still packed somewhere  in my stuff hahah …

    Using the headphones output is not a very good approach in my opinion though, it would (depending on your audio source) eliminate actually hearing the audio. So it did some testing with tiny microphones, but that resulted in rather poor results as well.

    Using the RCA jacks would be better, and a pre-amp would be helpful in that kind of solution. 

Viewing 4 posts - 1 through 4 (of 4 total)



You must be logged in to reply to this topic.