0

Neotrellis Neopixel feedback?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neotrellis Neopixel feedback?

by spiffomatic64 on Mon Feb 11, 2019 10:47 pm

Whenever I have many neopixel led's on at the same time, I get a very highpitched hiss, also if I display 255,255,255 it shows as a bright yellow, I only get white if I display 64,64,64

using the example: trellis_flash_sampler example and removing all neopixel code in the main loop, but adding this to the setup:

Code: Select all | TOGGLE FULL SIZE
for(int i=0; i<trellis.numPixels(); i++) {
   
    trellis.setPixelColor(i, trellis.Color(64,64,64));
  }
  trellis.show();


I get a high pitched hiss/whine. Is this expected?I read it could be serial, but this example doesnt use serial.

Im also using using a battery powered speaker (tested with headphones as well, and a separate wall power supply for the neotrellis)

https://www.youtube.com/watch?v=Bxy6TRGPtc4

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by Tefriot on Mon Feb 11, 2019 11:39 pm

Is the neotrellis power supply regulated and shielded? Might be a ground loop....... try battery powering the neotrellis too. Could it possibly ( This is along shot) be PWM noise from the RGB leds? Can you hear the whine with the LEDS off?

My 2 cents....
Best, Tefriot

Tefriot
 
Posts: 7
Joined: Sun Feb 03, 2019 6:55 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Tue Feb 12, 2019 8:26 am

Tried battery powering everything, still the same noise... Also another odd behavior: When battery-powering displaying "white" shows closer to "yellow"

But no noise when the leds are off which made me think this might be a board problem?

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Wed Feb 13, 2019 10:18 pm

Is anyone else seeing this? Should I just return the product?

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by adafruit_support_carter on Fri Feb 15, 2019 6:41 pm

The high pitch sound is coming from the speakers? Or the board itself?

adafruit_support_carter
 
Posts: 11064
Joined: Tue Nov 29, 2016 2:45 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Sat Feb 16, 2019 9:30 am

speakers, tried with headphones, and separately battery powered speaker as well

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Mon Feb 18, 2019 1:02 pm

Any update? Should I start a return?

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by adafruit_support_carter on Mon Feb 18, 2019 2:29 pm

Do you get the sound in the headphones as well?

adafruit_support_carter
 
Posts: 11064
Joined: Tue Nov 29, 2016 2:45 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Mon Feb 18, 2019 8:56 pm

Yes both headphones and battery powered speakers

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by adafruit_support_carter on Mon Feb 18, 2019 10:38 pm

Some noise is known to be possible:
https://learn.adafruit.com/adafruit-neo ... ting#faq-1
It sounds like you've tried all the suggestions there.

Going back to this:
When battery-powering displaying "white" shows closer to "yellow"

That might be a not fully charged battery. Or a battery that can not output enough current to light everything. Turning them all on to white is the most current demanding.

adafruit_support_carter
 
Posts: 11064
Joined: Tue Nov 29, 2016 2:45 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Tue Feb 19, 2019 12:59 pm

Can you verify by testing https://github.com/ajstocchetti/neotrellis-beat-stepper
This was the first code I tried that I noticed the problem with. The first "row" makes the most noise (lights on the left side of the board make more noise than lights on the right.

(without pressing any buttons, just the "white row" of lights going across make the whine/hiss noise)

Is this normal? Or should I send my unit back for replacement?

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by adafruit_support_carter on Tue Feb 19, 2019 1:38 pm

The FAQ indicates this is likely normal behavior. Can you recreate the issue with one of our examples? I can try one of those and see what I get.

adafruit_support_carter
 
Posts: 11064
Joined: Tue Nov 29, 2016 2:45 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Wed Feb 20, 2019 3:03 pm

The existing adafruit samples don't have enough pixels on to show the issue, but like I said in the original post, if I modify the existing trellis_flash_sampler example, to turn more leds on, I see the same issue.

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Re: Neotrellis Neopixel feedback?

by adafruit_support_carter on Wed Feb 20, 2019 3:38 pm

Can you post the code listing for your modified trellis_flash_sampler. I'll try it here and see what I get.

adafruit_support_carter
 
Posts: 11064
Joined: Tue Nov 29, 2016 2:45 pm

Re: Neotrellis Neopixel feedback?

by spiffomatic64 on Thu Feb 21, 2019 3:38 pm

Code: Select all | TOGGLE FULL SIZE
/* This example shows how to play samples from internal flash.
 * The first 6 keys play samples.
 */

#include <Audio.h>

// WAV files converted to code by wav2sketch
#include "AudioSampleSnare.h"        // http://www.freesound.org/people/KEVOY/sounds/82583/
#include "AudioSampleTomtom.h"       // http://www.freesound.org/people/zgump/sounds/86334/
#include "AudioSampleHihat.h"        // http://www.freesound.org/people/mhc/sounds/102790/
#include "AudioSampleKick.h"         // http://www.freesound.org/people/DWSD/sounds/171104/
#include "AudioSampleGong.h"         // http://www.freesound.org/people/juskiddink/sounds/86773/
#include "AudioSampleCashregister.h" // http://www.freesound.org/people/kiddpark/sounds/201159/

#include "Adafruit_NeoTrellisM4.h"

#define NEO_PIN 10
#define NUM_KEYS 32

// Create the Audio components.  These should be created in the
// order data flows, inputs/sources -> processing -> outputs
//
AudioPlayMemory    sound0;
AudioPlayMemory    sound1;  // six memory players, so we can play
AudioPlayMemory    sound2;  // all six sounds simultaneously
AudioPlayMemory    sound3;
AudioPlayMemory    sound4;
AudioPlayMemory    sound5;
AudioMixer4        mix1;    // two 4-channel mixers are needed in
AudioMixer4        mix2;    // tandem to combine 6 audio sources
AudioOutputAnalogStereo  audioOut;

// Create Audio connections between the components
//
AudioConnection c1(sound0, 0, mix1, 0);
AudioConnection c2(sound1, 0, mix1, 1);
AudioConnection c3(sound2, 0, mix1, 2);
AudioConnection c4(sound3, 0, mix1, 3);
AudioConnection c5(mix1, 0, mix2, 0);   // output of mix1 into 1st input on mix2
AudioConnection c6(sound4, 0, mix2, 1);
AudioConnection c7(sound5, 0, mix2, 2);
AudioConnection c8(mix2, 0, audioOut, 0);
AudioConnection c9(mix2, 0, audioOut, 1);

// The NeoTrellisM4 object is a keypad and neopixel strip subclass
// that does things like auto-update the NeoPixels and stuff!
Adafruit_NeoTrellisM4 trellis = Adafruit_NeoTrellisM4();

void setup() {

  trellis.begin();
  trellis.show(); // Initialize all pixels to 'off'
  trellis.setBrightness(255);

  // Audio connections require memory to work.  For more
  // detailed information, see the MemoryAndCpuUsage example
  AudioMemory(10);

  // by default the Teensy 3.1 DAC uses 3.3Vp-p output
  // if your 3.3V power has noise, switching to the
  // internal 1.2V reference can give you a clean signal
  //dac.analogReference(INTERNAL);

  // reduce the gain on mixer channels, so more than 1
  // sound can play simultaneously without clipping
  mix1.gain(0, 0.4);
  mix1.gain(1, 0.4);
  mix1.gain(2, 0.4);
  mix1.gain(3, 0.4);
  mix2.gain(1, 0.4);
  mix2.gain(2, 0.4);

  for(int i=0; i<trellis.numPixels(); i++) {
   
    trellis.setPixelColor(i, trellis.Color(64,64,64));
  }
  trellis.show(); // Initialize all pixels to 'off'
}

void loop() {

  trellis.tick();
 
  trellis.fill(0);
  while(trellis.available())
  {
    keypadEvent e = trellis.read();
    if(e.bit.EVENT == KEY_JUST_PRESSED){
      trellis.setPixelColor(e.bit.KEY, 0x0000FF);
      switch(e.bit.KEY){
        case(0):
          sound0.play(AudioSampleSnare);
          break;
        case(1):
          sound1.play(AudioSampleTomtom);
          break;
        case(2):
          sound2.play(AudioSampleHihat);
          break;
        case(3):
          sound3.play(AudioSampleKick);
          break;
        case(4):
          sound4.play(AudioSampleGong);
          break;
        case(5):
          sound5.play(AudioSampleCashregister);
          break;
        default:
          break;
      }
    }
  }
  trellis.show();
  delay(10);
}

spiffomatic64
 
Posts: 19
Joined: Sat Sep 17, 2011 6:36 pm

Please be positive and constructive with your questions and comments.