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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 539
» Latest member: scissorcraft
» Forum threads: 88
» Forum posts: 404

Full Statistics

Online Users
There are currently 6 online users.
» 0 Member(s) | 6 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,694
Art-Net Support
Forum: AllPixel Support
Last Post: dfive
03-04-2017, 03:09 PM
» Replies: 3
» Views: 1,225
Animated Porch Lights
Forum: Show-And-Tell
Last Post: emilyford33
02-22-2017, 07:18 AM
» Replies: 3
» Views: 4,803
Project Northern Lights
Forum: Show-And-Tell
Last Post: mlapasa
01-25-2017, 12:05 PM
» Replies: 3
» Views: 862
What sources do people us...
Forum: General Discussion
Last Post: stharocks77
01-14-2017, 11:39 AM
» Replies: 3
» Views: 8,628
AllPixels to drive a 6x9x...
Forum: AllPixel Support
Last Post: ghowles
01-12-2017, 12:30 AM
» Replies: 5
» Views: 1,327
Need help to determine a ...
Forum: BiblioPixel Support
Last Post: vied12
12-31-2016, 01:41 PM
» Replies: 3
» Views: 1,044
LarsonScanner Problem
Forum: BiblioPixel Support
Last Post: kwalkerk
12-25-2016, 01:00 PM
» Replies: 4
» Views: 864
Individual LED control or...
Forum: General Discussion
Last Post: Adam
12-24-2016, 05:41 PM
» Replies: 5
» Views: 1,605
Matrix dots made of multi...
Forum: General Discussion
Last Post: jack
12-24-2016, 07:47 AM
» Replies: 8
» Views: 4,046

 
  inspired by the povstick
Posted by: KayJay - 02-15-2016, 05:02 AM - Forum: General Discussion - Replies (1)

Hello
After seeing your "Povstick" ive been inspired to build my own. I remember seeing the pixelstick on kickstarter and am kicking myself i didnt get in on it back then as our dollar has taken a sharp drop and i would need to lay out close $400 for pixel stick and then another $60 for shipping.....you can understand my position.

My plan so far, A Pi B to run bibliopixel and webpixel, a tft 4" touch screen to help with on the go mods and selecting the file to be displayed, have a freind 3d print a custom case for the Pi/TFT/Allpixel to live, a standard rc xt60 plug for power, 2m of RGB leds in a channel with diffusion to spread the light evenly. did i miss anything? probably Wink

Before i commit to the idea of building my own i have a few questions to ask before i go ahead with ordering a Allpixel board and led strip.
My questions are how dose one convert a .bmp file to the coding so the allpixel can read and display?
Can i use any pixelart code i download from the internet?
Do you recommend a preferred converter?


my list of parts so far:
Raspberry pi B model (original version, i hope its powerfull enough)
AllPixel board
2 meters of RGB led strip (Im still researching which one is best for my needs but im thinking something with 60leds per meter, any recommendations?)
wifi dongle for Pi
3200mah s3 lipo battery (left overs from my rc plane days)
2x 1meter Led channel from ebay, i plan to use some left over xt60 connectors to join each section so each length is 1m long and can be plunged together for portability

if anyone is interested in helping or if ive missed something lease let me know, coding is not my strong point but building and tinkering is

Print this item

  Issue running LEDPOV script with Neopixel
Posted by: Todddogg - 02-08-2016, 11:38 PM - Forum: BiblioPixel Support - Replies (4)

Hi,

I'm having some trouble running the LEDPOV example script from the POVStick project using a strip of Neopixels (144 LED/m), AllPixel and Raspberry Pi.
(I've successfully run AllPixelStripTest.py and changed the RGB channel order accordingly)

The only changes I've made to the example script are with the driver, number of LEDs, and channel order.

Code:
from bibliopixel.led import *
import bibliopixel.image as img
from bibliopixel.drivers.serial_driver import *
import bibliopixel.gamma as gamma

#Takes a matrix and displays it as individual columns over time
class LEDPOV(LEDMatrix):

   def __init__(self, driver, povHeight, width, rotation = MatrixRotation.ROTATE_0, vert_flip = False):
       self.numLEDs = povHeight * width

       super(LEDPOV, self).__init__(driver, width, povHeight, None, rotation, vert_flip, False)
   
   #This is the magic. Overriding the normal update() method
   #It will automatically break up the frame into columns spread over frameTime (ms)    
   def update(self, frameTime = None):
       if frameTime:
           self._frameTotalTime = frameTime

       sleep = None
       if self._frameTotalTime:
           sleep = (self._frameTotalTime - self._frameGenTime) / self.width

       width = self.width
       for h in range(width):
           start = time.time() * 1000.0

           buf = [item for sublist in [self.buffer[(width*i*3)+(h*3):(width*i*3)+(h*3)+(3)] for i in range(self.height)] for item in sublist]
           self.driver.update(buf)
           sendTime = (time.time() * 1000.0) - start
           if sleep:
               time.sleep(max(0, (sleep - sendTime) / 1000.0))

#convert 6 character hex colors to RGB tuple
def hex2rgb(hex):
   """Helper for converting RGB and RGBA hex values to Color"""
   hex = hex.strip('#')
   if len(hex) == 6:
       split = (hex[0:2],hex[2:4],hex[4:6])
   else:
       raise ValueError('Must pass in either a 6 character hex value!')

   r, g, b = [int(x, 16) for x in split]

   return (r, g, b)

argv = sys.argv
argc = len(argv)

file = ""
bright = 100
col_time = 50
bgcolor = (0,0,0)

#load in command line args
if argc > 1:
   file = argv[1]
else:
   print "Must specifiy an input file!"
   sys.exit(2)

#get brightness value
if argc > 2:
   bright = int(x=argv[2])

#col_time is time to display each vertical line for, in ms
if argc > 3:
   col_time = int(argv[3])

#bgcolor is the color that will be used on transparent pixels
if argc > 4:
   bgcolor = hex2rgb(argv[4])

#open the file so it is not loaded each time through
i = img.Image.open(file)

img_width = i.size[0]
totalFrameTime = img_width * col_time

print "Image Display Time: {0:.1f}s".format(totalFrameTime/1000.0)

driver = DriverSerial(LEDTYPE.NEOPIXEL, num = 144, c_order=ChannelOrder.GRB, gamma=gamma.NEOPIXEL)

#automatically configure matrix width to image width.
#change povHeight to match your setup
led = LEDPOV(driver, povHeight = 144, width = img_width, rotation=MatrixRotation.ROTATE_0, vert_flip=True)
led.setMasterBrightness(bright)

img.showImage(led, imageObj = i, bgcolor=bgcolor)

try:
   while True:
       led.update(frameTime=totalFrameTime)
except KeyboardInterrupt:
   led.all_off()
   led.update()

Here's the error I'm getting:

pi@raspberrypi ~ $ python POVStick-example.py TSX-144.jpg 64 100
Image Display Time: 21.6s
INFO - serial_driver - Using COM Port: /dev/ttyACM0, Device ID: 0, Device Ver: 0
Traceback (most recent call last):
  File "POVStick-example.py", line 93, in <module>
    led.update(frameTime=totalFrameTime)
  File "POVStick-example.py", line 29, in update
    self.driver.update(buf)
AttributeError: 'list' object has no attribute 'update'


Any suggestions?

Print this item

  Which SPI pins to use?
Posted by: st0kes - 02-07-2016, 04:41 PM - Forum: General Discussion - Replies (5)

I have a raspberry pi which I've connected to a 150 RGB LED strip and I managed to get lights to turn on and off using pigpio which was wonderful and quite satisfying. I followed this tutorial which basically says put this pin here, put that pin there, etc .. so it was pretty hard to go wrong. http://popoklopsi.github.io/RaspberryPi-LedStrip/#/

Now I'd really like to use BiblioPixel since I've proved the concept and would like to go to the next level but I'm struggling to work out where the pins should plug on the SPI bus. The documentation says use pins 19 (MOSI) for Data and 23 (SCLK) for Clock. But using my existing wiring I have 4 cables in the SPI - ground, R G and B. The strip itself has 4 pins and which are labelled R, G, B and 12V. So I am confused. Is there a wiring diagram for dummies I could take a peek at?

Sorry for the newbie question.

Print this item

  Driving AllPixel from SPI
Posted by: JDCartee - 02-05-2016, 10:53 AM - Forum: General Discussion - Replies (4)

I'm really enjoying playing with the AllPixel. I have a couple of questions to hopefully help me take it to the next level and drive it with a Raspberry Pi.

I'm exploring the possibility of driving the AllPixel from the SPI of my PiZero so that I can keep the USB port free for a wifi adapter. Is that possible using BiblioPixel? I've seen a reference to it so I believe it is. Does anyone have documentation regarding how to wire up SPI to the AllPixel. I'm not sure whether that would involve breaking out from the SPI on the PI and splicing properly into a USB cable or whether there is another option for driving the AllPixel.

That leads to my second questions. There are 6 connectors at the "top" of the board right beside the "Maniacal Labs AllPixel" text printed on the board. Are these functional? I couldn't find a reference for them. I'm wondering if they may be an alternate connection for driving the board other than USB.



Attached Files Thumbnail(s)
   
Print this item

  2 x ws2812b
Posted by: Ash45 - 01-28-2016, 04:53 AM - Forum: AllPixel Support - Replies (1)

Hi this may seam like a daft question but I'm waiting on 2 strips of 5m 300led ws2812b strips. I've been looking into controllers or doing it my self with a arduino etc. I stumbled across this product and looks a good solution .

Question. Can I run both strips off 1 all pixle or will I need to purchase 2. If one would I be better off working both strips directly into the screw terminals of chaining them together injecting power into the middle of the strips

Thank ash

Print this item

  LedStrip - Audio - Loudness
Posted by: giovanne - 01-04-2016, 02:58 PM - Forum: User Animations - Replies (3)

Hi,

I was inpressed from http://jared.geek.nz/2013/jan/sound-reactive-led-lights
I think a very interesting animation.
But how to get this with Bibliopixel working, that
- 1 LEDStrip WS2801 (e.g. 60 LEDs)
- Raspberry Pi SPI
- FFT/Numby/pyaudio?
for getting the loudness
and transform into rgb for the leds
- set the leds for the Ws2801 Driver

I already tested https://github.com/ManiacalLabs/BiblioPixelAnimations/blob/master/BiblioPixelAnimations/matrix/FFT_Audio_Animation.py
but this is for LEDMatrix and a Spectrum/Frequency
(btw. how to set the sensitivity for this code? I have to shout into the mic :-(

I think I/we can use the code from the link above combined with Bibliopixel code?

Would be great to get this running.

Print this item

  include animations lib?
Posted by: giovanne - 01-03-2016, 06:57 PM - Forum: BiblioPixel Support - Replies (6)

Hi,
thanks for the great Bibliopixel ;-)

One question, after installing incl. the animations (pip install https://github.com/ManiacalLabs/BiblioPixelAnimations/archive/master.zip --upgrade) I can't access e.g. the LarsonScanner from the script.

On Raspberry Pi

What is wrong?

Info: PYTHONPATH is empty...
Info2: StripChannelTest is working...

Script:

Code:
from bibliopixel.drivers.visualizer import *
from bibliopixel.animation import *
from bibliopixel import *
from BiblioPixelAnimations.strip import LarsonScanners
import bibliopixel.colors as colors

driver = DriverVisualizer(num=25, pixelSize=20)
led = LEDStrip(driver)

try:
    anim = LarsonScanner(led, colors.Red, tail=6)
    anim.run(amt=1, fps=20, max_steps=50)
    anim = StripChannelTest(led)
    anim.run(fps=30)
except KeyboardInterrupt:
    led.all_off()
    led.update()

Result:
Code:
root@Testing:~/BiblioPixel# python StripTestDemo.py
Traceback (most recent call last):
  File "StripTestDemo.py", line 13, in <module>
    anim = LarsonScanner(led, colors.Red, tail=6)
NameError: name 'LarsonScanner' is not defined

Thanks

Print this item

Music Animated GIF Support
Posted by: snrkl - 12-28-2015, 01:02 AM - Forum: General Discussion - Replies (10)

Just a quick question... I read through the wiki and couldn't see any relevant info and I was wondering: does the BiblioPixel library support animated GIFs?

Print this item

  Viualizers
Posted by: Electriccraft1 - 12-15-2015, 06:46 AM - Forum: General Discussion - No Replies

To continue with a discussion with Adam Haile about visualizers via the contact form....

Vixen is a free, open source visualizer mainly for the diy community. It outputs many different protocols. Really should look into it.

Print this item

  LPD6803 Support?
Posted by: beatryder - 12-13-2015, 07:21 PM - Forum: BiblioPixel Support - Replies (1)

I've seen mention of LPD6803 in the source code for Bibliopixel. I'm wondering what I need to do in order to use this library with those LEDs.

https://github.com/ManiacalLabs/BiblioPixel/search?utf8=%E2%9C%93&q=lpd6803

Print this item