I’m looking for a way to use a strip of 50 WS2801 leds with my beaglebone black. All the documents I’ve found are related to Arduino or Raspberry so I have some issues to know the path I should follow.
They should use the same communication “protocol” right ? Just SPI, but yeah I have no hands on there, but I’ve known the person who made that post for a while, so the information presented will be good.
I’ve just managed to make it work so I will give some feedback for those who would like to do the same.
Start with a fresh Angstrom kernel.
Disable HDMI :
Plug in the mini-usb cable from your board to your computer, open the Beaglebone partition and the uEnv.txt inside it.
Add this to the file : capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN- Boot the board. Run : cat /sys/devices/bone_capemgr.*/slots. You should see the two lines concerning the HDMI with P-O-- flags. There’s no L in this so it means it is disabled.
Thanks for the detailed instructions. It’s working for me with very little effort. In fact, if your are running the latest Debian image [1] the setup is even easier. py-spidev is already installed and you don’t have to disable the HDMI, rather you just disable a PWM.
SPI is ready to go. py-spidev is already installed, so back to the original instructions, except, we are running a different SPI, so some adjustments are needed
Finally run python demo.py
I powered the string off of a 5V supply and controlled it with the bone at 3.3V. This worked fine for about 90 LEDs, after that the colors weren’t right. I’m going to try a level converter to see if I can control a string of 240 LEDs.