WS2801 not working with Bibliopixel

I’m new to bibliopixel and have been trying to get some sample scripts going using the ws2801 led strip, but unfortunately everything I have tried so far is not working.

Maybe a little bit of help will get me going.

I started with a few demo commands such as (bp demo, bp demo list, and bp devices), but I could not get any led’s to light up.

I have been able to successfully get the Adafruit_ws2801 python plugin to work.

Import the WS2801 module.

import Adafruit_WS2801

import Adafruit_GPIO.SPI as SPI

Configure the count of pixels:

#PIXEL_COUNT = 150

#PIXEL_COUNT = 96

PIXEL_COUNT = 32

Alternatively specify a hardware SPI connection on /dev/spidev0.0:

SPI_PORT = 0

SPI_DEVICE = 0

pixels = Adafruit_WS2801.WS2801Pixels(PIXEL_COUNT, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE), gpio=GPIO)

So after a bit of reading on your site I found a script that should be closer to what I need to test the bibliopixel installation with the ws2801 led strip.

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

#from bibliopixel.drivers.SPI import SPI

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)

load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

load channel test animation

from bibliopixel.animation import StripChannelTest

anim = StripChannelTest(led)

try:

run the animation

anim.run()

except KeyboardInterrupt:

Ctrl+C will exit the animation and turn the LEDs offs

led.all_off()

led.update()

But unfortunately I get the following error when running the script:

python3 pixel.py

WARNING - deprecated - util.setLogLevel

Traceback (most recent call last):

File “pixel.py”, line 10, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py”, line 62, in init

resp = self._connect()

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py”, line 88, in _connect

idv = self.devices.get_device(self.device_id)

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/devices.py”, line 81, in get_device

raise ValueError(‘No default device for %s’ % self.hardware_id)

ValueError: No default device for 1D50:60AB

Any help would be appreciated.

Are you using our PiPixel or just manually connecting the LEDs to the Pi?

···

On Tue, Feb 26, 2019 at 8:42 AM Mike Beaudette beaudett@gmail.com wrote:

I’m new to bibliopixel and have been trying to get some sample scripts going using the ws2801 led strip, but unfortunately everything I have tried so far is not working.

Maybe a little bit of help will get me going.

I started with a few demo commands such as (bp demo, bp demo list, and bp devices), but I could not get any led’s to light up.

I have been able to successfully get the Adafruit_ws2801 python plugin to work.

Import the WS2801 module.

import Adafruit_WS2801

import Adafruit_GPIO.SPI as SPI

Configure the count of pixels:

#PIXEL_COUNT = 150

#PIXEL_COUNT = 96

PIXEL_COUNT = 32

Alternatively specify a hardware SPI connection on /dev/spidev0.0:

SPI_PORT = 0

SPI_DEVICE = 0

pixels = Adafruit_WS2801.WS2801Pixels(PIXEL_COUNT, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE), gpio=GPIO)

So after a bit of reading on your site I found a script that should be closer to what I need to test the bibliopixel installation with the ws2801 led strip.

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

#from bibliopixel.drivers.SPI import SPI

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)

load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

load channel test animation

from bibliopixel.animation import StripChannelTest

anim = StripChannelTest(led)

try:

run the animation

anim.run()

except KeyboardInterrupt:

Ctrl+C will exit the animation and turn the LEDs offs

led.all_off()

led.update()

But unfortunately I get the following error when running the script:

python3 pixel.py

WARNING - deprecated - util.setLogLevel

Traceback (most recent call last):

File “pixel.py”, line 10, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py”, line 62, in init

resp = self._connect()

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py”, line 88, in _connect

idv = self.devices.get_device(self.device_id)

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/devices.py”, line 81, in get_device

raise ValueError(‘No default device for %s’ % self.hardware_id)

ValueError: No default device for 1D50:60AB

Any help would be appreciated.


You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/b051ba25-13da-40a4-b593-2162c66edaf3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Just manually connecting to the raspberrypi

Will the ws2801 work with out the pipixel, and the led strip connected directly to the pi?

   Original Message

···

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

From: beaudett@gmail.com
Sent: February 26, 2019 6:51 PM
To: maniacal-labs-users@googlegroups.com
Subject: Re: WS2801 not working with Bibliopixel

Just manually connecting to the raspberrypi

--
You received this message because you are subscribed to the Google Groups "Maniacal Labs Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.
To post to this group, send email to maniacal-labs-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/dcd3c903-1164-41b7-a08d-3e8563d67742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you are using the PiPixel, you should connect the WS2801 strip to the PiPixel, not directly to the Pi. That would defeat the point of the PiPixel.
Unless I’m misunderstanding your question.

···

On Wed, Feb 27, 2019 at 5:28 AM Mike Beaudette beaudett@gmail.com wrote:

Will the ws2801 work with out the pipixel, and the led strip connected directly to the pi?

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

      Original Message  

From: beaudett@gmail.com

Sent: February 26, 2019 6:51 PM

To: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

Just manually connecting to the raspberrypi

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/dcd3c903-1164-41b7-a08d-3e8563d67742%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/v46baabg73u3vogtrmrv6r4u.1551263319318%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

Hi Adam, I currently don’t have a pipixel. Is it required to work with Bibliopixel with ws2801 led strip or can I just keep the strip connected right to the spi pins on the pi. This would allow me to also work with adrafruit Python plugin as well.

···

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

From: adammhaile@gmail.com

Sent: February 27, 2019 9:18 AM

To: beaudett@gmail.com

Cc: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

If you are using the PiPixel, you should connect the WS2801 strip to the PiPixel, not directly to the Pi. That would defeat the point of the PiPixel.
Unless I’m misunderstanding your question.

On Wed, Feb 27, 2019 at 5:28 AM Mike Beaudette beaudett@gmail.com wrote:

Will the ws2801 work with out the pipixel, and the led strip connected directly to the pi?

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

      Original Message  

From: beaudett@gmail.com

Sent: February 26, 2019 6:51 PM

To: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

Just manually connecting to the raspberrypi

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/dcd3c903-1164-41b7-a08d-3e8563d67742%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/v46baabg73u3vogtrmrv6r4u.1551263319318%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

No, you don’t need it. Just makes it easier.
The adafruit plugin also works with the PiPixel… it just provides easy power and logic level shifting.

···

On Wed, Feb 27, 2019 at 9:34 AM Mike Beaudette beaudett@gmail.com wrote:

Hi Adam, I currently don’t have a pipixel. Is it required to work with Bibliopixel with ws2801 led strip or can I just keep the strip connected right to the spi pins on the pi. This would allow me to also work with adrafruit Python plugin as well.

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

From: adammhaile@gmail.com

Sent: February 27, 2019 9:18 AM

To: beaudett@gmail.com

Cc: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

If you are using the PiPixel, you should connect the WS2801 strip to the PiPixel, not directly to the Pi. That would defeat the point of the PiPixel.
Unless I’m misunderstanding your question.

On Wed, Feb 27, 2019 at 5:28 AM Mike Beaudette beaudett@gmail.com wrote:

Will the ws2801 work with out the pipixel, and the led strip connected directly to the pi?

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

      Original Message  

From: beaudett@gmail.com

Sent: February 26, 2019 6:51 PM

To: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

Just manually connecting to the raspberrypi

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/dcd3c903-1164-41b7-a08d-3e8563d67742%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/v46baabg73u3vogtrmrv6r4u.1551263319318%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

I’ll look into getting a pipixel at later time. Would you be able to help me get going with the connection directly to the pi?

···

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

From: adammhaile@gmail.com

Sent: February 27, 2019 9:45 AM

To: beaudett@gmail.com

Cc: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

No, you don’t need it. Just makes it easier.
The adafruit plugin also works with the PiPixel… it just provides easy power and logic level shifting.

On Wed, Feb 27, 2019 at 9:34 AM Mike Beaudette beaudett@gmail.com wrote:

Hi Adam, I currently don’t have a pipixel. Is it required to work with Bibliopixel with ws2801 led strip or can I just keep the strip connected right to the spi pins on the pi. This would allow me to also work with adrafruit Python plugin as well.

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

From: adammhaile@gmail.com

Sent: February 27, 2019 9:18 AM

To: beaudett@gmail.com

Cc: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

If you are using the PiPixel, you should connect the WS2801 strip to the PiPixel, not directly to the Pi. That would defeat the point of the PiPixel.
Unless I’m misunderstanding your question.

On Wed, Feb 27, 2019 at 5:28 AM Mike Beaudette beaudett@gmail.com wrote:

Will the ws2801 work with out the pipixel, and the led strip connected directly to the pi?

Sent from my BlackBerry - the most secure mobile device - via the Bell Network

      Original Message  

From: beaudett@gmail.com

Sent: February 26, 2019 6:51 PM

To: maniacal-labs-users@googlegroups.com

Subject: Re: WS2801 not working with Bibliopixel

Just manually connecting to the raspberrypi

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/dcd3c903-1164-41b7-a08d-3e8563d67742%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/v46baabg73u3vogtrmrv6r4u.1551263319318%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

So back to the original post, how do I get around the error below with this script with the led strip directly connected to the pi?

import bibliopixel
# causes frame timing information to be output
bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)
                                                                                                                                                            
# Load driver for the AllPixel
from bibliopixel.drivers.serial import *
                                                                                                                                                            
# set number of pixels & LED type here
driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)
                                                                                                                                                            
# load the LEDStrip class
from bibliopixel.layout import *
led = Strip(driver)
                                                                                                                                                            
# load channel test animation
from bibliopixel.animation import StripChannelTest
anim = StripChannelTest(led)
                                                                                                                                                            
try:
   # run the animation
   anim.run()
except KeyboardInterrupt:
   # Ctrl+C will exit the animation and turn the LEDs offs
   led.all_off()
   led.update()

Error when running the script:

# python3 pixel.py
WARNING - deprecated - util.setLogLevel
Traceback (most recent call last):
  File "pixel.py", line 10, in <module>
    driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)
  File "/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py", line 62, in __init__
    resp = self._connect()
  File "/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py", line 88, in _connect
    idv = self.devices.get_device(self.device_id)
  File "/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/devices.py", line 81, in get_device
    raise ValueError('No default device for %s' % self.hardware_id)
ValueError: No default device for 1D50:60AB

You need to use the SPI driver not Serial:


import bibliopixel

# causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

# Load driver for the AllPixel

from bibliopixel.drivers.SPI import SPI

# set number of pixels & LED type here

driver = SPI(ledtype = LEDTYPE.WS2801, num=10, interface='FILE')

# load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

# load channel test animation

from bibliopixel.animation import StripChannelTest

anim = StripChannelTest(led)

try:

# run the animation

anim.run()

except KeyboardInterrupt:

# Ctrl+C will exit the animation and turn the LEDs offs

led.all_off()

led.update()

···

On Wed, Feb 27, 2019 at 6:47 PM Mike Beaudette beaudett@gmail.com wrote:

So back to the original post, how do I get around the error below with this script with the led strip directly connected to the pi?

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)

load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

load channel test animation

from bibliopixel.animation import StripChannelTest

anim = StripChannelTest(led)

try:

run the animation

anim.run()

except KeyboardInterrupt:

Ctrl+C will exit the animation and turn the LEDs offs

led.all_off()

led.update()

Error when running the script:

python3 pixel.py

WARNING - deprecated - util.setLogLevel

Traceback (most recent call last):

File “pixel.py”, line 10, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2801)                                                                                                     

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py”, line 62, in init

resp = self._connect()                                                                                                                                 

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/driver.py”, line 88, in _connect

idv = self.devices.get_device(self.device_id)                                                                                                           

File “/usr/local/lib/python3.6/site-packages/BiblioPixel-3.4.44-py3.6.egg/bibliopixel/drivers/serial/devices.py”, line 81, in get_device

raise ValueError('No default device for %s' % self.hardware_id)                                                                                         

ValueError: No default device for 1D50:60AB

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/92a947e2-95bf-4997-938c-0c17d2a5f9fa%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.