Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 11 of 11

Thread: Teensy 3.2, Audio Shield, Octows2811 Adaptor, ~1000 leds.

  1. #1
    Junior Member
    Join Date
    Apr 2018
    Posts
    9

    Teensy 3.2, Audio Shield, Octows2811 Adaptor, ~1000 leds.

    Hey,
    I've purchased:
    Teensy 3.2, Audio Shield, Octows2811 Adaptor, 7 leds strips of 150 leds (+ 2 back ups for experiments). I have a separate power supply to drive the leds.

    I'm planning on using audio line in from Audio shield, analysing the signal and controlling the leds according to the analysis + some transformations.
    I've seen multiple threads referencing issues with similar set ups, mainly of pin conflicts between the Octows2811 adaptor and audio shield.

    I'd appreciate some help as I've followed some instructions on old threads with no success.

  2. #2
    Senior Member crees's Avatar
    Join Date
    Dec 2016
    Location
    Utah
    Posts
    165
    Check out / google "Myles de bastion" He has done extensive work in this area. He mentioned to me that he can get up to 2000 pixels using the teensy 3.6 with audio analyzing.

  3. #3
    Junior Member
    Join Date
    Apr 2018
    Posts
    9
    Hi, I've read a lot over the past week.
    I figured i need to use a microphone/audio jack on the audio shield
    Teensy and audioshield are to be connected directly.
    I still can't figure out which pins to connect from teensy to octows2812 adapter in order to drive multiple leds.

  4. #4
    Junior Member
    Join Date
    Apr 2018
    Posts
    9
    Click image for larger version. 

Name:	WhatsApp Image 2018-05-04 at 8.06.50 PM.jpg 
Views:	55 
Size:	86.4 KB 
ID:	13740
    I've tried the octows2812 frequency analyzer example
    But I keep having random leds light up instead of reacting to input.
    Image is attached, I've tried having the mic input at A3/A2 (17/16 pins) but it seems to have no effect.
    I'd expect when there's silence to have no leds light up, but sometimes it's all of them.
    I've printed the input value to the serial monitor and received values that range from 0.02 to almost 5

    teensy is directly connected to octows2812, pin connectors from there to the breadboard (see image)
    Any advice on how to advance would be appreciated

  5. #5
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,888
    There are some pin overlaps between the audio shield and the OCTOWS board that need to be managed but looking at the picture there you do not have the audio shield fitted yet?

    Is your microphone a module with preamp, since I'm not seeing a power connection which is normally needed to do the gain and bias for connection to analog pins. A bare mic will not drive an analog pin.

    Other tests that you may have already done using your hardware setup is run the audio library RMS and FFT examples and see what the microphone does printing to serial with the OCTO software out of the picture, and separately run the OCTO test patterns and make sure you can reliably write to all your pixels.

  6. #6
    Junior Member
    Join Date
    Apr 2018
    Posts
    9
    Because of the pin overlaps that I couldn't figure out yet I took a step back to a simpler set up with only OCTOWS board and trying to use the teensy's ADC input.
    Issue is, that even without ADC input I get random leds that light up. with nothing to sample how is this possible?
    I'm using the frequency analyzer example unmodified.

    Also, i'd rather use audio input through a female audio jack, is this possible?

  7. #7
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,888
    If you actually have nothing connected to the ADC it will be sampling background noise and then the FFT will be doing an auto gain correction on it to find a signal so flashing is very possible. There are also a bunch of electrical reasons why LED strips can go berserk so useful to do something with known patterns to make sure they are good.

    From memory there is some pin hacking to get Audio board and OCTO working together, but for a single chanel line in bias/adjust as per https://www.pjrc.com/teensy/gui/?info=AudioInputAnalog - remembering your microphone is probably not producing a true line level. Common problem with FFT graphics is that noise manifests as spurious detections so things like clipping or very low level are hard to detect. Putting an amp on the DAC pin and running things in pass through will help find if flickering is input or software related.

    Edit - using audio board and Octo together https://forum.pjrc.com/threads/26016...-Adaptor-Board
    Last edited by GremlinWrangler; 05-05-2018 at 10:25 AM. Reason: link

  8. #8
    Junior Member
    Join Date
    Apr 2018
    Posts
    9
    Many thanks, I will purchase something to have a proper ADC input and update after.
    After that I will move on to having both audio shield and OCTO together.

  9. #9
    Junior Member
    Join Date
    Feb 2019
    Posts
    5
    @gavra were you able to get this working?

  10. #10
    Junior Member
    Join Date
    Apr 2018
    Posts
    9
    Quote Originally Posted by jnastaskin View Post
    @gavra were you able to get this working?
    Yes, quite beautifully actually.
    I followed this thread https://forum.pjrc.com/threads/31672...b-amp-Hardware
    Key was to solder things properly.
    Anything I can help with?

  11. #11
    Junior Member
    Join Date
    Feb 2019
    Posts
    5
    @gavra what did you do to read the audio signal into the Audio Shield? You mentioned you "figured [you] need to use a microphone/audio jack on the audio shield". Does this mean you just used an external electret microphone connected to "L" and "R" Line In pins on the audio shield?

    Let me know if I'm being unclear. Apologies if this seems like a basic/stupid question

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •