Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 516
» Latest member: lebaobei123
» Forum threads: 88
» Forum posts: 404

Full Statistics

Online Users
There are currently 10 online users.
» 0 Member(s) | 10 Guest(s)

Latest Threads
New tdsp color list Pytho...
Forum: BiblioPixel Development
Last Post: roykerman222
03-14-2017, 05:13 AM
» Replies: 1
» Views: 1,511
Art-Net Support
Forum: AllPixel Support
Last Post: dfive
03-04-2017, 03:09 PM
» Replies: 3
» Views: 969
Animated Porch Lights
Forum: Show-And-Tell
Last Post: emilyford33
02-22-2017, 07:18 AM
» Replies: 3
» Views: 4,510
Project Northern Lights
Forum: Show-And-Tell
Last Post: mlapasa
01-25-2017, 12:05 PM
» Replies: 3
» Views: 723
What sources do people us...
Forum: General Discussion
Last Post: stharocks77
01-14-2017, 11:39 AM
» Replies: 3
» Views: 7,973
AllPixels to drive a 6x9x...
Forum: AllPixel Support
Last Post: ghowles
01-12-2017, 12:30 AM
» Replies: 5
» Views: 1,085
Need help to determine a ...
Forum: BiblioPixel Support
Last Post: vied12
12-31-2016, 01:41 PM
» Replies: 3
» Views: 805
LarsonScanner Problem
Forum: BiblioPixel Support
Last Post: kwalkerk
12-25-2016, 01:00 PM
» Replies: 4
» Views: 696
Individual LED control or...
Forum: General Discussion
Last Post: Adam
12-24-2016, 05:41 PM
» Replies: 5
» Views: 1,211
Matrix dots made of multi...
Forum: General Discussion
Last Post: jack
12-24-2016, 07:47 AM
» Replies: 8
» Views: 3,606

 
  Allpixel USB cable length
Posted by: kwalkerk - 10-31-2016, 12:59 PM - Forum: AllPixel Support - Replies (2)

I have an Allpixel setup and running well in my lightshowpi setup on a Raspberry Pi.  I'm running it with the short USB cable supplied with the Allpixel.  I'd like to move the strip further from the Pi.  I have a 15ft USB cable.  I have attempted to use it, but the AllPixel does not get recognized by the lightshowpi software when the longer cable is used.  I've tried it both with supplying separate power to the led's thru the barrel jack and just with power over the usb.  I get the same result either way.

Is there a limit to the length of the USB cable?

Thanks.

Ken

Here's the trace I get when I use the longer cable.

pi@piclock:~ $ start_music_and_lights

pi@piclock:~ $ Traceback (most recent call last):

  File "/home/pi/lightshowpi/py/synchronized_lights.py", line 897, in <module>

    lightshow.play_song()

  File "/home/pi/lightshowpi/py/synchronized_lights.py", line 732, in play_song

    result = PrePostShow('preshow', hc).execute()

  File "/home/pi/lightshowpi/py/prepostshow.py", line 106, in execute

    self.hc.turn_off_lights(True)

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 246, in turn_off_lights

    self.led.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

serial.serialutil.SerialException: write failed: [Errno 5] Input/output error

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs

    func(*targs, **kargs)

  File "/home/pi/lightshowpi/py/synchronized_lights.py", line 199, in exit_function

    hc.clean_up()

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 311, in clean_up

    self.turn_off_lights()

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 246, in turn_off_lights

    self.led.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

SerialException: write failed: [Errno 5] Input/output error

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs

    func(*targs, **kargs)

  File "/home/pi/lightshowpi/py/led_module.py", line 93, in exit_function

    self.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

SerialException: write failed: [Errno 5] Input/output error

Error in sys.exitfunc:

Traceback (most recent call last):

  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs

    func(*targs, **kargs)

  File "/home/pi/lightshowpi/py/led_module.py", line 93, in exit_function

    self.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

serial.serialutil.SerialException: write failed: [Errno 5] Input/output error

Traceback (most recent call last):

  File "/home/pi/lightshowpi/py/synchronized_lights.py", line 897, in <module>

    lightshow.play_song()

  File "/home/pi/lightshowpi/py/synchronized_lights.py", line 732, in play_song

    result = PrePostShow('preshow', hc).execute()

  File "/home/pi/lightshowpi/py/prepostshow.py", line 106, in execute

    self.hc.turn_off_lights(True)

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 246, in turn_off_lights

    self.led.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

serial.serialutil.SerialException: write failed: [Errno 5] Input/output error

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs

    func(*targs, **kargs)

  File "/home/pi/lightshowpi/py/synchronized_lights.py", line 199, in exit_function

    hc.clean_up()

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 311, in clean_up

    self.turn_off_lights()

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 246, in turn_off_lights

    self.led.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

SerialException: write failed: [Errno 5] Input/output error

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs

    func(*targs, **kargs)

  File "/home/pi/lightshowpi/py/led_module.py", line 93, in exit_function

    self.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

SerialException: write failed: [Errno 5] Input/output error

Error in sys.exitfunc:

Traceback (most recent call last):

  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs

    func(*targs, **kargs)

  File "/home/pi/lightshowpi/py/led_module.py", line 93, in exit_function

    self.all_leds_off()

  File "/home/pi/lightshowpi/py/led_module.py", line 133, in all_leds_off

    self.led.update()

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/led.py", line 136, in update

    d._update(self.buffer[pos:d.bufByteCount + pos])

  File "/usr/local/lib/python2.7/dist-packages/bibliopixel/drivers/driver_base.py", line 51, in _update

    self.update(data)

  File "/home/pi/lightshowpi/py/lightshow_serial_driver.py", line 367, in update

    self._com.write(packet)

  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 554, in write

    raise SerialException('write failed: {}'.format(v))

serial.serialutil.SerialException: write failed: [Errno 5] Input/output error

Print this item

  PixelWeb
Posted by: kwalkerk - 10-23-2016, 12:18 PM - Forum: General Discussion - Replies (1)

I just got my AllPixel yesterday. Assembled it and everything works fine from both my mac and my Pi.

Decided to try using PixelWeb. I can't get the config to work. No matter what I put in my Device Path setting I get back an "Invalid Controller" error. On my Pi I entered the /dev/ttyACM0. But no joy.

Am I missing something simple?

Thanks.


(10-23-2016, 12:18 PM)kwalkerk Wrote: I just got my AllPixel yesterday.  Assembled it and everything works fine from both my mac and my Pi.

Decided to try using PixelWeb.  I can't get the config to work.  No matter what I put in my Device Path setting I get back an "Invalid Controller" error.  On my Pi I entered the /dev/ttyACM0.  But no joy.

Am I missing something simple?

Thanks.

I found the problem - bad user Smile  I had not added a controller.  Now all works well.  Thanks

Print this item

Rainbow BiblioPixel and AllPixel
Posted by: Tom.Enos - 10-23-2016, 03:46 AM - Forum: Show-And-Tell - No Replies

I've been able to integrate the BiblioPixel library into a project I am working on.  So far so good.  Not only that but it also uses the AllPixel firmware on an Arduino.   There are still a few bugs to work out, but it is working.
https://tom_slick@bitbucket.org/tom_slick/lightshowpi-led.git

LightshowPi is a poor mans way to sync lights to music for a Christmas display (or any other time you want to sync lights to music),  while not yet part of the main project it will be.

I promised Adam that I would share this here, as we seem to be the first to adapt the open source AllPixel firmware for something other then the AllPixel.

Thank you Adam for making this open source so others could use this great work of yours.

Print this item

  Helping hand starting with animation
Posted by: snrkl - 10-03-2016, 05:44 AM - Forum: BiblioPixel Support - Replies (3)

All,
So here is where I admit that use Python as a functional language, and struggle with Object Oriented languages.

I have been writing animations for my LPD8806 strips for a while now and have switched to using AllPixel.

- BUT -

I am still driving the pixels and animations in my own code, not using the anim() routines.

Where I am stuck is that my capabilities for OO programming are causing me to hit a wall and the fantastic samples out there, while impressive are not the easiest thing for me to learn from.

While I don't need anyone to tutor me in OO programming, I just need a really simple example to build off.

Does ANYONE have a SIMPLE animation sample that I can clone that does something super simple like a single LED chaser or similar?

Once I can get started and figure this out, I have some animations that I quite like that I would like to contribute back to the library...

Cheers.

snrkl.

Print this item

  Blinkt! support
Posted by: halldn - 09-26-2016, 08:36 PM - Forum: BiblioPixel Support - Replies (2)

Hello,

I'm new to Python development and I'm trying to use the BiblioPixel library with the Blinkt! device described here: https://github.com/pimoroni/blinkt. It has 8 APA102 LEDs and covers all of the GPIO pins of a Raspberry Pi. I tried to use the APA102 driver because I read that the SPI-based drivers can be faster, but I didn't have any luck even after enabling the SPI config on my RPi. Could anyone advise on how to tell if the device is compatible with SPI?

I was able to get Blinkt to work by writing my own driver which just called the device's python library (below, if it helps anyone else), but if I could get even a little more performance by using SPI I would be interested. By the way, I'm really enjoying using the framework! Awesome work!



Code:
from blinkt import set_clear_on_exit, set_brightness, set_pixel, show

class BlinktDriver(DriverBase):


    def __init__(self, delay=0):
        super(BlinktDriver, self).__init__(num = 8, c_order=ChannelOrder.RGB)

    def update(self, data):
        p, r, g, b = 0, 0, 0, 0

        for i in range(len(data)):
            p = int(i / 3.0)
            if i % 3 == 0:
                r, g, b = data[i], data[i + 1], data[i + 2]
                set_pixel(p, r, g, b)
                show()

Print this item

  Art-Net Support
Posted by: oniondan - 09-19-2016, 08:02 AM - Forum: AllPixel Support - Replies (3)

Hi,

Do you have any plans for Art-net support? I am looking in to purchasing a controller like this to drive my LED panels but want to stick to using professional stage lighting controllers (Chamsys/Avolites) which output on Artnet. I am particularly interested in something that could do a matrix of 600 pixels over 4 universes of Artnet.

Thanks, Dan

Print this item

  Adafruit 32x32 RGB LED Matrix
Posted by: snrkl - 08-29-2016, 10:41 AM - Forum: AllPixel Support - Replies (3)

Researching my next project (well, I just ordered the last 4 Allpixels in Australia, so maybe it is passing beyond just research...) 

I was looking at the Adafruit 32x32 RGB LED Matrix (https://www.adafruit.com/products/2026) but based on my reading, this panel has too many pixels for AllPixel to drive, would this be correct?  Huh  At USD $50 for the panel, it's price was looking good...

My fallback plan was to look at using 4x(8x32) displays, but I wasn't sure if:

a) I wanted to burn all four of my soon to arrive AllPixels on a single project;  
b) A Raspi2 was going to be able to drive 4 of them with interesting (read: possibly CPU intensive) animations; and
c) I wanted to spend USD $400 on 4x of those matrices.. I was looking at the Neopixel or the DotStars to build a 4x(8x32) display, but for the same pixel count, it comes in at $8x the price of the 32/32 display...  Yes, that is USD$400 for 4x of these puppies... Sad  

Fallback plan for the fall back plan was to look at only using 2x (8x16) displays and scaling my project down, but adafruit doesn't stock any decent sized 8x16 matrices.. I looked but it seems the http://wyolum.com/ TiMs are out of stock at seedstudio...

Thoughts / Suggestions sought... what panels are others sourcing for large matrix fun?

Cheers.

snrkl

Print this item

  Changing the speed of animations
Posted by: jimlondon - 07-14-2016, 08:40 AM - Forum: BiblioPixel Support - Replies (4)

Apologies in advance for newbie question!

I wish to change the speed of animations, how is this possible please?

Specifically, I wish to run a continuous loop of the pixel chaser animation on an LED strip, but on each iteration I want to check an external input which will determine the speed that the led appears to whizz down the strip.

Any advice greatfully received, thanks Smile


p.s. I am ok on getting the external input as a variable (e.g. a value between 0.5 and 1), it's the Bibliopixel bit I need help with

Aha 'fps' seems like it might do what I want:
https://github.com/ManiacalLabs/BiblioPixel/wiki/Animations#runamt--1-fpsnone-sleepnone-max_steps--0-untilcomplete--false-max_cycles--0

I'll have a play around with that

Print this item

  Gridded display of LED matrix panels
Posted by: bonnieb - 06-13-2016, 11:00 PM - Forum: BiblioPixel Support - Replies (4)

I've been enjoying using the adafruit matrix hat with the matrix hat driver (https://github.com/adafruit/rpi-rgb-led-matrix/blob/master/ada-matrix.py) to animate bibliopixel patterns on one of these LED panels: https://www.adafruit.com/product/607

Now I'd like to upgrade to four 32x32 LED matrix panels arranged in a square to produce a 64x64 display, but I'm struggling with how to tell it the relative orientation of the 4 panels (e.g. that I have them in a square rather than a straight chain).

Is there a way to use the multi-map builder and matrix orientation (as described here: https://github.com/ManiacalLabs/BiblioPixel/wiki/Display-Setup#multimapbuilder-and-mapgen) with a chain of 4 panels, or will this only work for LED strips?

Or is there some other way to specify the orientation/layout of 4 LED panels in a chain?
thanks
bonnie

Print this item

  Programmable controller for ws2813 led
Posted by: daisy1988 - 06-03-2016, 05:29 AM - Forum: General Discussion - No Replies

ws2813 led is ws2812 updated version,it has dual-signal wires version , signal break-point continuous transmission,does rfduino suit for it?thanks.
ws2813 led datasheet is http://www.normandled.com/upload/201605/WS2813%20LED%20Datasheet.pdf



Attached Files
.pdf   WS2813 LED Datasheet.pdf (Size: 1.12 MB / Downloads: 0)
Print this item