Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie Questions
#1
Started using the AllPixel and immediately see some cool uses for it. I have read the documentation and have not found an answer to the following so here it goes:

1) Python Scripts / Bibliopixel / test scripts - what is the recommended directory structure for all of this. So far, I have only got the scripts to work when I run them in the Bibliopixel directory, that cannot be right. Is there some global path directory I need to set up on my Mac (did the GitHub manual install).

2) What is the best platform to drive the AllPixel - I don't want to dedicate my laptop to this long term - is it a RaspBerry Pi? If so, should I spring for the new hotness or is any old model fine.

3) If I want to control the LED strip remotely, what is the best approach? Wired Ethernet or Wifi with a web page running on the Pi? Some Bluetooth LE interface such as the Adafruit Bluefruits? Has anyone done this and shared their approach?

4) Can I power the AllPixel with the same 5V supply I am using to drive my 5m APA102 5V strip? I have a 10A supply.

5) I saw your store on SeeeeeeeedStudio - very cool - where can I buy an enclosure for my AllPixel?

6) How can you dynamically change the Python scripts running on the AllPixel. For example, I might want to adjust the brighness based on the ambient light.

I am sure there will be more and I promise that I will document my project and provide links here so your help will be paid forward to other hapless newbies discovering the wonder of this product.

Thanks, Chip
#2
Chip, Glad to have you on the forums Smile

1) You said you installed from GitHub but did you run setup.py? I'm guessing not. If you do, then BiblioPixel will be in your python path and you can import as normal. That will not work for matrix_animations, strip_animations, etc. that are in the root of the repo. You can also add to your PYTHONPATH system var manually... see here: http://stackoverflow.com/questions/3387695/add-to-python-path-mac-os-x

2) We designed it to run on anything that runs Python and has USB. But obviously, performance will depend on the device. We tested on the original Pi and got great results but the Pi 2 is much better. But more often than not, we just control it from a laptop. See here for Pi vs Pi2 speed results: http://maniacallabs.com/2015/02/09/raspi-2-bibliopixel-allpixel-speed-test/

3) There's a bunch of options. If the animations are being run on the Pi itself, then WiFi with a web interface is fine. Or just SSH into the pi and run your script. It's nowhere near done, but I'm currently working on a web interface: https://github.com/adammhaile/PixelWeb

You can also setup a Pi as a receiver and run the animations on another machine using DriverNetwork. In that case, I recommend Wired. https://github.com/ManiacalLabs/BiblioPixel/wiki/DriverNetwork

Bluetooth on a Pi would also work if you just need to control which animation is running, but I've never tried it.

4) We don't sell the enclosures, technically. There are 3D files for them here: http://www.thingiverse.com/thing:725143
Check out MakeXYZ if you don't have access to a printer. we're on there and would be happy to print one for you: http://www.makexyz.com/printer/maniacallabs

5) What you want is to write a custom animation (doc link below). Animations take care of all the timing bits and a bunch of other stuff for you (i.e. run at 30FPS). For your brightness example, I would just check your sensor in every step() and then call the setMasterBrightness() function accordingly. Without knowing more, that's the best I can suggest right now... and we really do recommend using the Animation classes to make your development easier.

https://github.com/ManiacalLabs/BiblioPixel/wiki/Animations
#3
(08-05-2015, 09:05 AM)Adam Wrote: Chip, Glad to have you on the forums Smile

3) There's a bunch of options. If the animations are being run on the Pi itself, then WiFi with a web interface is fine. Or just SSH into the pi and run your script. It's nowhere near done, but I'm currently working on a web interface: https://github.com/adammhaile/PixelWeb
How goes the work on the web interface? i see you or someone just did some work on it 19 minutes ago.
just picked up two allpixels this past week got one up and running last night.
#4
Hey Ruden,

It goes great actually! Smile We're going to be showing off some of our work at SparkCon in Raleigh, NC next weekend, and I really wanted to have a usable UI for controlling everything instead of my usual pile of console scripts Tongue

That being said, it's not 100% ready for public consumption yet. It's right on the edge between an Alpha and a Beta release. It's technically feature complete (for my v1 plans anyways) but there's cleanup work to be done in order to prevent bad user input and better handle any errors that do arise. For example, right now, there's nothing from preventing you from trying to run an animation when you haven't actually setup your hardware config yet... at which point your get a very cryptic python stacktrace as an error. But when you know what not to do it works Smile

I'll probably have a public beta available (and actually announce it) in the next 1-2 weeks, depending on my schedule.
You are welcome to try it out... but user be warned and all that. You'll need the dev branches of PixelWeb, BiblioPixel and BiblioPixelAnimations.

BTW... out of curiosity, which of the various places did you purchase the AllPixels from? We get sales details from Seeed and Tindie but once they are off to the other distributors we have no idea.

Let me know if you have any questions Smile
#5
Hi, thats great, looking forwards to testing it out, no issues running dev branches im here to play with them in my own place.

as for location 2 via Tindie shipped out last week arrived on Tuesday, only have a 5m strip of ws2812b's, will probably get a second strip of something before xmass to use with the other controller.

Questions.. ya im not a python expert, its been 17 years since ive done C or anything at all really so im slow to start here but getting the hang of it bit by bit, any examples playing with dimming the LED's sitting around you (or another lurker) could throw up online to see.
#6
You want to dim all of the LEDs at once or just specific ones? If all of them, you can always use setMasterBrightness() to globally set the whole display level: https://github.com/ManiacalLabs/BiblioPixel/wiki/LEDBase#setmasterbrightnessbright
#7
(09-11-2015, 11:02 PM)Adam Wrote: You want to dim all of the LEDs at once or just specific ones? If all of them, you can always use setMasterBrightness() to globally set the whole display level: https://github.com/ManiacalLabs/BiblioPixel/wiki/LEDBase#setmasterbrightnessbright

oh hah, thats easy.

thanks.
#8
No problem Smile
#9
(09-12-2015, 09:18 AM)Adam Wrote: No problem Smile

Yes, no problem.




192.168.1.1
#10
I am having trouble figuring out how to set up my directories such that matrix_animations and strip_animations modules are found...Could anyone point me in the right direction?

Please and thank you.

1) You said you installed from GitHub but did you run setup.py? I'm guessing not. If you do, then BiblioPixel will be in your python path and you can import as normal. That will not work for matrix_animations, strip_animations, etc. that are in the root of the repo. You can also add to your PYTHONPATH system var manually... see here: http://stackoverflow.com/questions/3387695/add-to-python-path-mac-os-x


Forum Jump:


Users browsing this thread: 1 Guest(s)