Hey ya'll! I am fairly new here and am not sure if this is

(Jay) #1

Hey ya’ll! I am fairly new here and am not sure if this is the right place to ask but I am looking for some guidance in to what I should read and understand on how to make sound/music reactive effects utilizing the Teensy 3.6 w/ OctoWS2811 adapter + FastLED library. I’ve been attempting to research on Google, Reddit, Arduino boards and so forth but cannot seem to figure out how to do this. I appreciate anyone that takes the time to assist me with my issue!

(Andrew Tuline) #2

There’s some really good sound support for Teensy’s on Paul Stoffregren’s pages.

In the meantime, I just did some basic stuff and came up with some sound reactive routines that I quite like (follow github links for sound reactive code):

(PaulStoffregen) #3

In Arduino, click File > Examples > OctoWS2811 > SpectrumAnalyzer

(PaulStoffregen) #4

This circuit with 4 resistors and 2 capacitors is the recommended way to connect your line-level audio signal to the ADC pin.
missing/deleted image from Google+

(Jay) #5

@Andrew_Tuline Thank you for the example, I will definitely take a look at it!

@PaulStoffregen Oh thanks! I should probably have looked a bit closer in regards to this. Also, if I want to use a microphone that would be in a loud setting (festivals), do you perhaps have any suggestions on a very good compatible microphone for Teensy 3.2/3.6?

(PaulStoffregen) #6

This one was the best, but no longer available. Might be worth sending Ned a message to see if he’ll make you one. Or maybe there’s enough info to make it yourself? https://www.tindie.com/products/NeutronNed/max9814-microphone-module-for-teensy/

(PaulStoffregen) #7

Adafruit has a similar product, but a slight modification to replace 1 resistor is needed to get the ideal DC bias voltage. Adafruit’s also lacks nice power supply filtering, so I recommend using it with a 220 ohm resistor and 100 uF capacitor. All those details here on this thread: https://forum.pjrc.com/threads/40468-Help-with-Basic-Audio-Lib-results?p=126317&viewfull=1#post126317

(PaulStoffregen) #8

Here’s the page to buy that Adafruit mic. Don’t forget to also buy a 220K surface mount resistor somewhere. https://www.adafruit.com/product/1063

(Arjan van Vught) #9

You can use Jinx! software (http://www.live-leds.de). It has good audio support. Then for example Art-Net -> Pixel controller.

(Daniel Haber) #10

I just want to hop in here to ask @PaulStoffregen a quick question that might help others.

I’m using the audio adapter just to input audio from line-in or the mic where a SPDT switch chooses between them in setup(). Then I’m performing FFT with the audio library. That’s all I’m using the audio adapter for, so is there a reason to use it at all or should I just use the circuit you posted above? If I used that, I’d have to have a different way to switch inputs so is there an easy way to do that? I’m also not sure if the FFT is happening on the audio shield or the Teensy. Maybe you can shed some light on this? Thanks in advance!

(PaulStoffregen) #11

@Daniel_Haber This exact question has come up on the forum a few times, with very detailed answers. Quick answer: if 12 bits quality and the ADC’s higher noise floor is ok, and you don’t need analogRead() for anything else, then usually you can go with a ADC pin for signal input.

(Daniel Haber) #12

@PaulStoffregen Thanks Paul! Found your recent posts on the forum regarding this and decided I’ll stick with the audio adapter :slight_smile: