WS2801 and Beaglebone

624 views
Skip to first unread message

jocelyn....@gmail.com

unread,
Oct 20, 2013, 8:59:55 AM10/20/13
to beagl...@googlegroups.com
Hello guys !

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. 

I have this driver : http://elinux.org/BeaconBoard so currently I'm trying to rebuild an Angstrom kernel with this. 

If anyone has already done it or have any advice I'm eager to hear it ! 

Thanks !

William Hermans

unread,
Oct 20, 2013, 3:34:58 PM10/20/13
to beagl...@googlegroups.com


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

jocelyn....@gmail.com

unread,
Oct 21, 2013, 12:32:52 PM10/21/13
to beagl...@googlegroups.com
Thanks !! I'll try to adapt this to ws2801.

William Hermans

unread,
Oct 21, 2013, 2:15:52 PM10/21/13
to beagl...@googlegroups.com
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.

jocelyn....@gmail.com

unread,
Oct 21, 2013, 4:58:42 PM10/21/13
to beagl...@googlegroups.com
I guess ! Maybe the timing is different, I'll have to check the spreadsheet for that

jocelyn....@gmail.com

unread,
Oct 27, 2013, 11:37:21 AM10/27/13
to beagl...@googlegroups.com, jocelyn....@gmail.com
I've just managed to make it work so I will give some feedback for those who would like to do the same.

Enjoy ! If it helped you, just let me know ; )

Mark A. Yoder

unread,
May 28, 2014, 8:59:44 AM5/28/14
to beagl...@googlegroups.com, jocelyn....@gmail.com
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.
  • beagle$ cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
7: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_42_27
8: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_41_27
9: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
10: ff:P-O-L Override Board Name,00A0,Override Manuf,bspwm_P9_21_b

  • Slot 10 is the PWM, so disable it with:  beagle$ echo -10 > /sys/devices/bone_capemgr.*/slots
  • beagle$ cat /sys/devices/bone_capemgr.*/slots
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 7: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_42_27
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_41_27
 9: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
  • It's gone, next enable SPI 0, beagle$ echo BB-SPIDEV0 > /sys/devices/bone_capemgr.*/slots
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 7: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_42_27
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_41_27
 9: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPIDEV0
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.

--Mark

Reply all
Reply to author
Forward
0 new messages