some version of Linux are real time, and some rt features are present in the mainstream kernel. not sure if rt linux kernel works on rpi?Linux is not a real time OS and even with highest process priority there are various glitches
I can get very fast looping with the help of SPI, by simply shift out next layer's 8 bytes, prev layer off, latch, new layer on and repeat! I think that will come in handy when I want to fade the LED's. Since id like 1024 levels of brightness, I could do with about 8192 fps.Mrkva wrote:Yeah, latching registers are usually better - you can easily achieve almost 1/8 (12%) duty cycle. I have achieved with RPi without any latching ~75%/8 (9%) DTC and even had to decrease it a little bit - it was just too bright.
I've successfully built RasPi controlled 8x8x8 LED cube. Currently, I'm doing everything - generatingeffects and LED multiplexing RasPi, which is not ideal: Linux is not a real time OS and even with highest process priority there are various glitches, flashes etc. when something interrupts the multiplexing loop. I'll eventually move multiplexing code to some AVR uC, communicating with RasPi over RS232/I2C.
The whole application is designed as a client-server, client generating effects and sending them in 64B data packets through a named pipe to server. Server periodically refreshes the whole cube from its "video memory (updated with data received from FIFO)", creating desired effect.
I'll release the source code anytime soon
Website with more informations, incl. circuit diagram, board design: http://dev.mrkva.eu/elektro/ledcube/
Demo of first 16 implemented effects https://www.youtube.com/watch?v=S6P3jcxKh-k
Users browsing this forum: No registered users and 9 guests