Search results

  1. M

    Yet another highly optimzed ILI9341 library: for T4/4.1 with diff updates and vsync !

    The string is not the problem (i know it doesn’t crash tested extensively with much larger data before). But just to eliminate the “noise” i replaced the yield with just read write. So for sure the Serial Interrupt Must be interfering. I’m not writing anything over Serial1, just reading (empty...
  2. M

    Yet another highly optimzed ILI9341 library: for T4/4.1 with diff updates and vsync !

    I have an esp8266 connected to the teensy and i telnet into it. And if i paste over 400 characters the driver crashes. The teensy uses Serial1 to read/write to the esp. https://github.com/MaltWhiskey/Mega-Cube/blob/master/Software/LED%20Display/src/main.cpp void setup() { // Start with...
  3. M

    Yet another highly optimzed ILI9341 library: for T4/4.1 with diff updates and vsync !

    Is it possible something in HardwareSerial is messing with the interrupts? The driver crashes when i send 400 characters over Serial1. It hangs in _waitUpdateAsyncComplete() indicating that somehow an interrupt is missed and _dma_state isn't set back to ILI9341_T4_DMA_IDLE. I put up an issue...
  4. M

    How to view generated assembly?

    Im using visual studio code to build my project, but some parts i just want to see what the compiler generated. There are “start debugging” options in the menu, but it doesn’t do anything. (Need to connect some way other than usb?) But i can do without debugging, i just want to view the assembly...
  5. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    You upload the board with assembly instructions. The components to use are in the assembly file. I used jlcpcb (in the assembly file are their components id’s) Some through hole / connectors you need to solder yourself. But the smd components will all be placed. I ordered 5 boards so i have 4...
  6. M

    [posted] AudioToy - modular 8x8 channel Teensy 4.0 pro-grade audio mixer hardware

    Can i have a look at your code somewhere? I’m interested in the communication part between teensy and esp.
  7. M

    [queued] 16x16x16 led cube build video

    Thanks for looking at the video :) Not sure if it is homepage blog material, since i hardly show off the teensy. If i didn’t have to wait for the leds to refresh i could run my animations @1350 fps so that show what a beast the teensy4 really is :cool:
  8. M

    [queued] 16x16x16 led cube build video

    I made a build video for my big 16x16x16 led cube (using adressable leds) the video is on youtube: https://youtu.be/ciaFar8nfHc This is nothing like the old tech rgb leds with multiplexing. Full power @ 1200 Watt and rendering/displaying frames arround 180fps….
  9. M

    Make a game console from my led cube.

    Well nobody able to shed some advice or point to a comparable project? I probably will start on this in about 6 months so in the meantime all advice is appreciated…
  10. M

    Make a game console from my led cube.

    Thanks :) Code and pcb is on github, but i don’t recommend soldering something this size :cool:
  11. M

    Make a game console from my led cube.

    I made this thing of beauty https://youtu.be/xidPiL3ZEh8 There is a teensy 4.0 running the show with a custom pcb that outputs to 32 channels to run all leds. On that pcb is also I2C to a touch screen (sd card, touch input and tft screen all separate I2C devices) the frame rate is about 179...
  12. M

    Looking for LED driver with individual PWM for Teensy

    You can still buy tlc5940 on AliExpress. They may be fake, but work still the same..
  13. M

    How many LEDS can teensy4.1 Drive ?

    I’m not sure if this will work. But with flexio + pll + dma i run 4096 leds & 178 fps. This uses 3 pins, 1 for data to external 32bit shifter. You can output to more than one bit, so you can try to output 8 bits. There are 3 flexio, but only 1 and 2 can use dma. So that maybe thats 16 bits...
  14. M

    Display_ili9341

    Just confirming sd card working by bridgeing r1,r2 and r3. I left vcc on 5v. Seems like those resistors are too high for the 3.3v signals from the teensy 4.0 i used.
  15. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Good to hear it is working now! So you ended up using my Display class ? Or still on the original library? Anyway took some time to make it all a bit nicer, nice fade in and out, sparkling fireworks etc. Starting to look like a real work of art. Everything non blocking, so hopefully I can work...
  16. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    I can’t really help with the library since i made my own display class for flexio 2 on pin’s 8,9 and 10. I only use the dmachannel library. Everything i did was checked wirh the rt1060 manual you can download from nxp. I documented the source code with reference to the manual. And everything is...
  17. M

    Teensy 4.0 crashes, am I or compiler to blame?

    Ok thank you for the feedback, bells started ringing... Turns out i created the animation objects and let them go out of scope, but I kept the pointers intact so the code would run at the memory adresses, but later crash semi randomly.... It had nothing to do with the code above, that indeed...
  18. M

    Teensy 4.0 crashes, am I or compiler to blame?

    I made a new animation for my led cube, but it kept crashing while I could not find an error. After putting printf everywhere and commenting out lines it looks like writing to the brighten array, modifies the running code and makes it crash. But I never go above the allowed boundaries. So I...
  19. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Ok crazy fast, running animations and display refresh at 178 fps https://youtu.be/GKh33_mIz6Y And data glitch fixed, no more disbehaving pixels.
  20. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Well i checked with theory and with serial monitor. I use 450ns per 1/4 bit so 1800 ns per bit and i use 50 bits for reset, 128 leds per channel and 24 bits per led that’s 1800*(24*128+50) => 0,0056196s so the display frame rate is 177,95hz :P The serial printed 0,01124 seconds because my...
  21. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    After a bit of tinkering 16x16x16 Led cube begins to look respectable https://youtu.be/rLcbkJqM98Q Haven’t checked the framerate but should be well above 100Hz
  22. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    https://youtu.be/mgr0I7CNi-A Well running 4096 leds, with quick and dirty code, no double buffering. Sometimes there is a dataglitch indeed on last channel (31 counted from 0) But it seems a bit random. If i turn it off and on again, somethings the glitch is gone. I think it’s fixable. Anyway...
  23. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    PCB board was delivered from China today. I can confirm it working without any glitches for PL9823 leds 128 leds/channel all 32 channels. Not tested anything else, life gets in the way.... Origional problem may have come from too long 100mhz trace, giving reflections? Using 2 boards with...
  24. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Quick test program cycling a rainbow using FlexIO2 pin 8,9 and 10 and 1 or 2 DMA channels depending on the LED type (PL9823 or WS2811). I have not tested my new board design, but KiCad files are included. https://github.com/MaltWhiskey/Mega-Cube
  25. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Made a new board, going to flexio2 those pins are closer. Going to test out if I get the software to work before ordering this PCB with assembly, because no way I can solder this by hand anymore.... Hopefully this board will work do the job.... Any comments on the design? I started 2 years ago...
  26. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Arrrg i’m way over my head here in the electrical engineering department... I made this 2 layer board and i put ground on top and on bottom layer with a few traces, but there are not many on the top, just 4 cm in total. And 20 ish via’s just in case. Big 5v trace, but i don’t think i need it at...
  27. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    https://youtu.be/kyNZUKwg11s Well this must be part of the problem???
  28. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    This is a copy of the issue on github: I'm working with your lib and so far it's great, thanks for it! I reached out to you on linkedin during the month of june about some issues and I'd like to thank you for the help and time you took to help me solve them. There is still one issue I face...
  29. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    The idea behind this library is fantastic, credits to Ward! But it seems to me there needs to be a little more effort in the coding part. Like this: pinConfig=IOMUXC_PAD_DSE(7)+IOMUXC_PAD_SPEED(3)+~IOMUXC_PAD_PKE+~IOMUXC_PAD_SRE; IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_04 |= pinConfig...
  30. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    Well, it is still black magic to me, but it seems the pll5 timing and the dma timing is loosly coupled... meaning ifyou adjust the pll5 timing the 4 pieces of dma don’t adjust accross the new range. This might give a problem with your sk6812 leds, you should grab your scope and check if the...
  31. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    I have to look into it, but those zero’s are probably the reset. The reset for ws2811 (don’t know sk6812) needs to be at least 280000 ns acording to the datasheet, hook up a scope and verify?. The double buffering in the lib is also looking a bit scetchy, buffer might change before a frame is...
  32. M

    [queued] TriantaduoWS2811, a 32-channel WS* library for Teensy 4.0 using FlexIO & DMA

    I had some problems getting the lib to work, but i resolved it by tweaking the pll5 clock. I’m just posting this here because this beast deserves way more attention than it is currently getting ;) https://github.com/wramsdell/TriantaduoWS2811/issues/5 I don’t consider myself a professional...
  33. M

    Teensy 4.1 with 12 TLC5940s over SPI with DMA (8x8x8 RGB LED Cube)

    TLC5490 is very sensitive to static discharge, you may have damaged the ic if they are behaving badly. Take very good care of the ground. In the design stage my 9x9x9 led cube was blinking all over the place. After impoving my grounding i could get 17 TLC working great, nr 18 was still a bit...
Back
Top