'dtparam=spi=on' to '/boot/config.txt'
(i think this option is also available in the 'graphical' config menu)
after an reboot now all works fine:Steve French of Volt Vision wrote:
> 1) How do you change the APA102 SPI clock rate? Is this just an OLA config
> file thing or do you actually dive into the SPI kernel driver? (I am
> wondering how different this experience will be on BBB vs rPi).
This will be same on all Linux systems where the spidev kernel
interface is used. If it isn't already an OLA configuration item then
it will be.
> 3) I have been noticing that most APA102C flex strip providers do not
> design-in decoupling capacitors on their strips. I actually asked my
> Chinese factory about it and they responded "APA102C more stable, dont
> need". I recently designed some APA102C panels (10x10array) and I was
> getting crazy flicker on the 2nd panel in the chain
> (FastLED/Teensy3.1)...as soon as I added 10uF bulk capacitance to the 2nd
> panel, the flicker immediately went away.
Do you connect the power supply every 100 LEDs or so? So you have a
star network for power and ground? This greatly helps signal
integrity as well as voltage levels at high current draw.
> I had a recent situation where I was testing Peter Stuge's special
> code for the WS2811 pixels, but it wasnt working
Please note that I haven't tested that code myself and while I was
looking at it just yesterday I believe I found some bugs in it. I've
attached an updated version of the source code. Please try it out.
> and I kept getting sharkfins...I wasnt sure if it was a BBB
> pin-muxing problem
Please show me your dts file that you use to enable spidev.
root@vBBB12-bassAmp:~# cat /sys/devices/bone_capemgr.*/slots
> I was too embarrassed to share my results
Please stop wasting time and get in touch with me maybe on IRC in the
next couple of hours. I will not be around the rest of this week but
I have some time right now.
//Peter
Stefan,Great work on the APA102 stuff!! I am getting ready to test the APA102C on both the BBB and the rPiB and rPiB+ here in the next few days hopefully. I have a few generic/simple questions/comments for you:1) How do you change the APA102 SPI clock rate? Is this just an OLA config file thing or do you actually dive into the SPI kernel driver? (I am wondering how different this experience will be on BBB vs rPi).
there you can change the pixel-count and the spi-speed -base_uid = 7a70:00000100 device_prefix = spidev enabled = true spidev0.0-0-dmx-address = 1 spidev0.0-0-pixel-count = 25 spidev0.0-0-personality = 7 spidev0.0-backend = software spidev0.0-ports = 1 spidev0.0-spi-speed = 10000000
2) I am surprised you were having good luck through a breadboard @ such high (10MHz) clock rates. I wonder if this was limiting your high frequency results?
3) I have been noticing that most APA102C flex strip providers do not design-in decoupling capacitors on their strips. I actually asked my Chinese factory about it and they responded "APA102C more stable, dont need". I recently designed some APA102C panels (10x10array) and I was getting crazy flicker on the 2nd panel in the chain (FastLED/Teensy3.1)...as soon as I added 10uF bulk capacitance to the 2nd panel, the flicker immediately went away. I am also working on a new installation using APA102C strips (310 total pixels) and I was having flicker problems that I was attributing to FastLED/Teensy3.1 clockrates, but today I have a pocketful of capacitors and I have a feeling they will improve the problem...
4) I was noticing on some of your oscilloscope captures that the lower frequency stuff was square waves, but the higher frequency stuff was turning into "Sharkfins"....most likely bandwidth limitations of your oscilloscope/probes. I had a recent situation where I was testing Peter Stuge's special code for the WS2811 pixels, but it wasnt working and I kept getting sharkfins...I wasnt sure if it was a BBB pin-muxing problem or a bandwidth problem of my Picoscope2203 (Analog Bandwidth = 5MHz)....I was too embarrassed to share my results and I never got back to it. What is the bandwidth of your scope?
On Wed, May 13, 2015 at 8:24 AM, Zeph Smith <zha...@gmail.com> wrote:
> A few updates to the info here on the APA102, which is becoming the
> favorite chipset of the FastLED folks (using Arduinos and Teensy's), and of Adafruit.
>
> They have operated it at up to 24Mbps SPI clock, so it's much faster
> than the example calculations used in this thread
I'd be a little cautious radiating 24Mbps from some improperly terminated impedance mismatched dangling wires. I imagine it would only work reliably over a fairly short distance from controller to first LED module. Perhaps careful consideration should be given to what clock rate is actually required in a real application? Unless your goal is to run 1000's of APA102 modules in 1 chain there really isn't much justification for such high clock rates.
And another of those limiting factors is whether you have a good electrical driver sending signal to the first pixel. A 5v driver may help, especially if your first pixel is further away; various chips can be used for 3.3v to 5v buffering, like the 74HCT08 quad and gate (which could interface to 2 SPI strips, or 4 of the single wire chips like WS281x, and also provide an enable function to allow sharing the same SPI port).
hello,AFAIK, I'm driving the first LED with channel 2-4, the second with channel 6-8 and so on.Channels 1, 5 and n*4+1 should be set to 255.So only 512/4 = 128 LED fit in a DMX universe.As far as I understand, I can't have more than one DMX universe mapped on SPI output.And so come 2 questions :- in my setup I have OSC input and SPI output : why should I be limited by a slow 30 years old protocol aka DMX ?RPi SPI output could drive more than 300 LED on the same wire.- why my LED become crazy as soon as I send more than 18*4 bytes on the SPI ? (moreover, the same setup works great with Pyhton, so I'm thinking something is wrong with my setup or with OLA itself)To see that, I made a chaser : only one LED is on at each step so it's not a power supply failure or something like that.I increase the chaser length one by one.As soon as the chaser length reach 19 LED nothing work as excepted.I understand I could overflow my universe, but this shouldn't be the case with only 19 * 4 = 76 channels.CheersAntoine
To unsubscribe from this group, send email to open-lighting+unsubscribe@googlegroups.com
To unsubscribe from this group, send email to open-lightin...@googlegroups.com
To unsubscribe from this group, send email to open-lightin...@googlegroups.com
Hi Peter,thanks for the hintsbut unfortunately I give up with OLA and now I'm using a python script that does the same better.It is easier to configure number of LED, to control global brightness per led etc...So I will not work anymore with OLA I think.SorryAntoine
To unsubscribe from this group, send email to open-lighting+unsubscribe@googlegroups.com
To unsubscribe from this group, send email to open-lighting+unsubscribe@googlegroups.com