Search results

  1. J

    OctoWS2811 flicker

    Hi Paul, Just wanted to ping you again and see if you had any thoughts on this (or whether you could see the problem on the strip that I mailed). Jim
  2. J

    Arduinoesque overriding of core functionality

    That's strange. With Arduino 1.0.5 + Teensyduino 1.18, and with Arduino 1.6.4 + Teensyduino 1.23, your code compiles just fine (with those lines). Maybe try upgrading to the latest Teensyduino? Besides that, I don't have any ideas, sorry. There may be differences in the way the UART0 and...
  3. J

    Arduinoesque overriding of core functionality

    I'd start by changing HardwareSerial() to HardwareSerial3(), then change all the UART0 to UART2 (UART2 is serial 3). Might work!
  4. J

    Arduinoesque overriding of core functionality

    It looks like the MKL26Z64 doesn't separate the UART0 interrupts like the MK20DX128 did, so properly catching the BREAK condition (frame error) will require modifications to the Teensy core code. Which is really the right way to do it anyway. I just don't know what the best interface is to...
  5. J

    Arduinoesque overriding of core functionality

    Here's a section of the design where I'm using it:
  6. J

    OctoWS2811 flicker

    Paul, any updates? Did you ever get a chance to look at the example I mailed? Jim
  7. J

    OctoWS2811 flicker

    Try StableWS2811. It might not handle 1920 LEDs nicely, but I've used it up to 1000.
  8. J

    OctoWS2811 flicker

    I have some "older" WS2812B strips from Adafruit that works just fine, but my "newer" ones flicker. The chips themselves are almost identical, but they do have slight differences in the LED die bonding, at least, so they're definitely different manufacturing runs: Works fine: Flickers...
  9. J

    OctoWS2811 flicker

    I see it with as few as 120 LEDs, when it's really bad (unlucky code layout + USB connection active). I really suspect that it is related to the specific batch of LEDs; my WS2812B chips from Adafruit seem very different from those others are using, based on their 5V requirement, their timings...
  10. J

    mk20dx256 - where is SPI1_SCK?

    Yep, works! I added an spi1 branch to the StableWS2811 library that simply changes everything over to SPI1 on pin 0, including DMA.
  11. J

    mk20dx256 - where is SPI1_SCK?

    Yeah, I only use DOUT.
  12. J

    mk20dx256 - where is SPI1_SCK?

    If SPI1 DOUT works, it would be useful for adding a second output to StableWS2811.
  13. J

    OctoWS2811 flicker

    Since FlickerTest worked, my guess would be that your buffers aren't sized right. For OctoWS2811 with 800 LEDs (100 LEDs per strip), you'd use something like DMAMEM int displayMemory[100 * 6]; int drawingMemory[100 * 6]; OctoWS2811 leds(100, displayMemory, drawingMemory, config); whereas for...
  14. J

    Arduinoesque overriding of core functionality

    Hi, Ward's code has problems with any DMX controller that doesn't have a long MARK time between the last DMX value and the BREAK. Chauvet brand controllers work fine, but my uDMX USB adapter does not. The symptom is that the values in the DMX buffer will be randomly shifted by 1-4 addresses...
  15. J

    Confounding Flicker with WS2812 strips and OctoWS2811 on Teesny 3.1

    My guess is that changing the order of the #includes changed the code layout in flash. This causes different access patterns when running code, which will in turn affect bus arbitration, which is the cause of the flicker I saw in this thread. As you mention, the WS2812B are very finicky in...
  16. J

    OctoWS2811 flicker

    StableWS2811 I wrote a library that utilizes the SPI hardware FIFO to eliminate jitter, while still feeding data via DMA so that the CPU is free to do other things. It ended up needing even more RAM than I thought, and can only handle one output at a time, but at least it's completely...
  17. J

    OctoWS2811 flicker

    Maybe it's specific to my strips, which I get here. Does my above code work for you with no flicker, on a 3.1 board? Would it be useful if I mailed you a strip that exhibits this problem?
  18. J

    OctoWS2811 flicker when connected via USB

    Thanks Paul. It turns out that this is not just caused by USB, so I started a new thread here with full code, and will follow up there.
  19. J

    OctoWS2811 flicker

    Adjusting the timings to shift the center of the histograms closer to 400/800ns doesn't help. To validate my hardware, I wrote a test that uses the SPI peripheral at 1.2 MHz, with Continuous SCK and Continuous Selection to generate unbroken waveforms (as shown in Figure 45-76 in the reference...
  20. J

    OctoWS2811 flicker

    Hi, This is related to the OctoWS2811 flicker when connected via USB thread, but after further testing, USB is not the root cause or even necessary to show the problem. It seems that OctoWS2811 has bus arbitration issues with the DMA whenever the CPU is doing anything else. With a small strip...
  21. J

    OctoWS2811 flicker when connected via USB

    It flickers a lot less, but still flickers, if I change the MCM_CR line in OctoWS2811.cpp to: MCM_CR = MCM_CR_SRAMLAP(0) | MCM_CR_SRAMUAP(0);
  22. J

    OctoWS2811 flicker when connected via USB

    Hi, I see the same problem, and it appears to be software or CPU related. I have a large single strip (704 LEDs, stripLen==704) with WS2812B LEDs that require >3.3V. Power and ground are connected in 8 locations along the strip; the power looks clean everywhere and doesn't droop below 4V...
  23. J

    static local variables aren't static

    Yep, that does the trick. Thanks Paul.
  24. J

    static local variables aren't static

    This sketch: class Foo { public: Foo(); }; Foo::Foo() { Serial.println("Foo()"); } void setup(void) { Serial.begin(115200); delay(5000); } void loop(void) { static Foo foo = Foo(); Serial.println("loop"); delay(1000); } doesn't work right...
Back
Top