Please help! AllPixelMini and Dotstar LED Strip - No Joy on initial StripChannelTest Run

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4

···

AllPixelMini Now Available! – Maniacal Labs

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

···

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigbaker@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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/68db4c0c-9a78-450f-b00b-1941b4d50d38%40googlegroups.com.

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

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

···

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%40googlegroups.com.

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

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

···

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigbaker@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

···

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adammhaile@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigbaker@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

Arg… Python and Windows. Never easy! So much is dependent on how the user installed it… it normally just works, but not always.
Output looks good, assuming lights are working :wink:

···

On Wed, Jan 17, 2018 at 2:00 PM, Justin Baker sigbaker@gmail.com wrote:

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adammhaile@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigbaker@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

Hi Adam,
Lights not working while the output looks good. Hmm…is there a way to test the LED strip as it sounds like the AllPixelMini is working?

···

On Wed, Jan 17, 2018 at 1:04 PM, Adam Haile adammhaile@gmail.com wrote:

Arg… Python and Windows. Never easy! So much is dependent on how the user installed it… it normally just works, but not always.
Output looks good, assuming lights are working :wink:

On Wed, Jan 17, 2018 at 2:00 PM, Justin Baker sigbaker@gmail.com wrote:

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adammhaile@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigbaker@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

This IS the test. At this point, you just gotta make sure it’s connected correctly. Not all strips are made the same. Ensure that V, Data, Clock, and Ground are all connected to the correct pin on the AllPixel.
Those should be labeled on the strip itself. Can you please take a picture of those labels and send to me?

···

On Wed, Jan 17, 2018 at 2:26 PM, Justin Baker sigbaker@gmail.com wrote:

Hi Adam,
Lights not working while the output looks good. Hmm…is there a way to test the LED strip as it sounds like the AllPixelMini is working?

On Wed, Jan 17, 2018 at 1:04 PM, Adam Haile adammhaile@gmail.com wrote:

Arg… Python and Windows. Never easy! So much is dependent on how the user installed it… it normally just works, but not always.
Output looks good, assuming lights are working :wink:

On Wed, Jan 17, 2018 at 2:00 PM, Justin Baker sigbaker@gmail.com wrote:

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adammhaile@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigbaker@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

Sorry for the delay. Here are some photos.

···

On Wednesday, January 17, 2018 at 1:29:58 PM UTC-6, Adam Haile wrote:

This IS the test. At this point, you just gotta make sure it’s connected correctly. Not all strips are made the same. Ensure that V, Data, Clock, and Ground are all connected to the correct pin on the AllPixel.
Those should be labeled on the strip itself. Can you please take a picture of those labels and send to me?

On Wed, Jan 17, 2018 at 2:26 PM, Justin Baker sigb...@gmail.com wrote:

Hi Adam,
Lights not working while the output looks good. Hmm…is there a way to test the LED strip as it sounds like the AllPixelMini is working?

On Wed, Jan 17, 2018 at 1:04 PM, Adam Haile adamm...@gmail.com wrote:

Arg… Python and Windows. Never easy! So much is dependent on how the user installed it… it normally just works, but not always.
Output looks good, assuming lights are working :wink:

On Wed, Jan 17, 2018 at 2:00 PM, Justin Baker sigb...@gmail.com wrote:

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adamm...@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigb...@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

All!
Have it working now…the issue was that the data and clock wires were not connect correctly to the board, had them backwards. After reviewing the document below and with Adam’s help I was able to get up and running. Thanks again!!!

https://cdn-learn.adafruit.com/downloads/pdf/adafruit-dotstar-leds.pdf

···

On Thursday, January 18, 2018 at 8:40:33 PM UTC-6, Justin Baker wrote:

Sorry for the delay. Here are some photos.

On Wednesday, January 17, 2018 at 1:29:58 PM UTC-6, Adam Haile wrote:

This IS the test. At this point, you just gotta make sure it’s connected correctly. Not all strips are made the same. Ensure that V, Data, Clock, and Ground are all connected to the correct pin on the AllPixel.
Those should be labeled on the strip itself. Can you please take a picture of those labels and send to me?

On Wed, Jan 17, 2018 at 2:26 PM, Justin Baker sigb...@gmail.com wrote:

Hi Adam,
Lights not working while the output looks good. Hmm…is there a way to test the LED strip as it sounds like the AllPixelMini is working?

On Wed, Jan 17, 2018 at 1:04 PM, Adam Haile adamm...@gmail.com wrote:

Arg… Python and Windows. Never easy! So much is dependent on how the user installed it… it normally just works, but not always.
Output looks good, assuming lights are working :wink:

On Wed, Jan 17, 2018 at 2:00 PM, Justin Baker sigb...@gmail.com wrote:

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adamm...@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigb...@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%40googlegroups.com.

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

Awesome! Glad it works! Was just about to say I need pics of the actual strips so I could see the labels, but then saw your next message.

···

On Thu, Jan 18, 2018 at 9:49 PM, Justin Baker sigbaker@gmail.com wrote:

All!
Have it working now…the issue was that the data and clock wires were not connect correctly to the board, had them backwards. After reviewing the document below and with Adam’s help I was able to get up and running. Thanks again!!!

https://cdn-learn.adafruit.com/downloads/pdf/adafruit-dotstar-leds.pdf

On Thursday, January 18, 2018 at 8:40:33 PM UTC-6, Justin Baker wrote:

Sorry for the delay. Here are some photos.

On Wednesday, January 17, 2018 at 1:29:58 PM UTC-6, Adam Haile wrote:

This IS the test. At this point, you just gotta make sure it’s connected correctly. Not all strips are made the same. Ensure that V, Data, Clock, and Ground are all connected to the correct pin on the AllPixel.
Those should be labeled on the strip itself. Can you please take a picture of those labels and send to me?

On Wed, Jan 17, 2018 at 2:26 PM, Justin Baker sigb...@gmail.com wrote:

Hi Adam,
Lights not working while the output looks good. Hmm…is there a way to test the LED strip as it sounds like the AllPixelMini is working?

On Wed, Jan 17, 2018 at 1:04 PM, Adam Haile adamm...@gmail.com wrote:

Arg… Python and Windows. Never easy! So much is dependent on how the user installed it… it normally just works, but not always.
Output looks good, assuming lights are working :wink:

On Wed, Jan 17, 2018 at 2:00 PM, Justin Baker sigb...@gmail.com wrote:

Ah! I didn’t have the C:\Python\Python36\Scripts dir in the windows path variable so I could call bp. Added and here is what I get from the command.

bp run test.json --loglevel frame

DEBUG - run - Running file test.json

DEBUG - animation_threading - Animation starts on main thread

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

On Wed, Jan 17, 2018 at 11:50 AM, Adam Haile adamm...@gmail.com wrote:

oh… just call it from the windows cmd prompt, not python. bp gets installed as a system command. Under the hood it’s calling python for you :wink:

On Wed, Jan 17, 2018 at 12:48 PM, Justin Baker sigb...@gmail.com wrote:

Hi Adam!
Thanks for reaching out! Need a little context sorry…

You said:

"The in the command line, run: bp run test.json --loglevel frame"

Do I call this from a cmd window under python? Just need an example of running the command in windows shell.

On Tuesday, January 16, 2018 at 7:01:31 PM UTC-6, Adam Haile wrote:

Justin,

Have no fear, we’ll get you sorted :slight_smile:
Hmm… no error messages is good.
For one, in that test script, can you try changing the log level line at the top to bibliopixel.log.setLogLevel('frame')?
It looks like I need to actually update that demo script as it’s got some older conventions.

But lets boil this down to something simpler… Save the following to a file named test.json

  {
"animation": {
"typename": "strip_test"
},
"driver": {
"num": 12,
"typename": "serial",
"c_order": "RGB",
"ledtype": "APA102"
},
"layout": {
"typename": "strip",
"brightness": 64,
"threadedUpdate": true
}
}

The in the command line, run: bp run test.json --loglevel frame
You should see something like this:

DEBUG - run - Running file test.json
DEBUG - animation_threading - Animation starts on main thread
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms
FRAME - animation - 0ms/1000fps / Frame: 0ms / Update: 0ms

There may be a slight delay while it reboots the AllPixel and waits for it to restart, assuming no errors.

Let’s just make sure that works first and then we can go back to python scripts, if you want to. (Thought we highly recommend our json projects feature!)

Regarding power, I don’t think you need more. But it can never hurt! If you have a ~3A @ 5V adapter that fits the barrel jack on the AllPixel, definitely hook it up. In my test.json file above, you’ll see I set brightness to 64 (25%) which should help in testing. It’s unlikely your strip will draw too much power at that level.

Also, THANK YOU for such detailed information!

Let me know how that goes, and we can go from there :slight_smile:

Cheers,

Adam

On Tue, Jan 16, 2018 at 7:28 PM, Justin Baker sigb...@gmail.com wrote:

Hi!
Over the winter break I picked up an AllPixelMini and a Dotstar LED Strip https://www.adafruit.com/product/2239 for a fun father and son (I work in tech) project. When I run the sample from https://github.com/ManiacalLabs/AllPixel/wiki/Library-Install-and-Strip-Example after updating to use type ‘APA102’ I hear windows make a sound like a USB was unplugged and the LED strip doesn’t do anything. I’m assuming that sound is the AllPixelMini rebooting as it only does it when I change types . I’m not receiving code error when running the script. Curious if I need to be pushing more power or if I missed a step? See below for details and thanks in advance for the help! - Justin

Here is my wiring:

Run Example:

"C:\Python\Python36\python.exe C:/PycharmProjects/LED_Lights_Control/main.py

DEBUG - animation_threading - Animation starts on main thread"

OS - Windows 10.1 Pro (1703)

Python 3.6

Install log pf BiblioPixel and pyserial and :

C:\Python\Python36\Scripts>pip install BiblioPixel

Collecting BiblioPixel

Downloading BiblioPixel-3.4.2.tar.gz (1.9MB)

100% |████████████████████████████████| 1.9MB 468kB/s

Collecting BiblioPixelAnimations (from BiblioPixel)

Downloading BiblioPixelAnimations-3.20171217.174917.tar.gz (51kB)

100% |████████████████████████████████| 61kB 1.2MB/s

Collecting BiblioPixelTriggers (from BiblioPixel)

Downloading BiblioPixelTriggers-1.0.1.tar.gz

Collecting flask (from BiblioPixel)

Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)

100% |████████████████████████████████| 92kB 1.1MB/s

Collecting loady (from BiblioPixel)

Downloading loady-1.7.8.tar.gz

Collecting pyserial (from BiblioPixel)

Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)

100% |████████████████████████████████| 194kB 170kB/s

Collecting pyyaml (from BiblioPixel)

Downloading PyYAML-3.12.tar.gz (253kB)

100% |████████████████████████████████| 256kB 181kB/s

Collecting croniter (from BiblioPixelTriggers->BiblioPixel)

Downloading croniter-0.3.20.tar.gz

Collecting Werkzeug>=0.7 (from flask->BiblioPixel)

Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

100% |████████████████████████████████| 327kB 187kB/s

Collecting click>=2.0 (from flask->BiblioPixel)

Downloading click-6.7-py2.py3-none-any.whl (71kB)

100% |████████████████████████████████| 71kB 269kB/s

Collecting Jinja2>=2.4 (from flask->BiblioPixel)

Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)

100% |████████████████████████████████| 133kB 1.1MB/s

Collecting itsdangerous>=0.21 (from flask->BiblioPixel)

Downloading itsdangerous-0.24.tar.gz (46kB)

100% |████████████████████████████████| 51kB 1.6MB/s

Collecting GitPython (from loady->BiblioPixel)

Downloading GitPython-2.1.8-py2.py3-none-any.whl (448kB)

100% |████████████████████████████████| 450kB 1.1MB/s

Requirement already satisfied: beautifulsoup4 in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: requests in c:\python\python36\lib\site-packages (from loady->BiblioPixel)

Requirement already satisfied: python_dateutil in c:\python\python36\lib\site-packages (from croniter->BiblioPixelTriggers->BiblioPixel)

Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->BiblioPixel)

Downloading MarkupSafe-1.0.tar.gz

Collecting gitdb2>=2.0.0 (from GitPython->loady->BiblioPixel)

Downloading gitdb2-2.0.3-py2.py3-none-any.whl (63kB)

100% |████████████████████████████████| 71kB 1.7MB/s

Requirement already satisfied: six>=1.5 in c:\python\python36\lib\site-packages (from python_dateutil->croniter->BiblioPixelTriggers->BiblioPixel)

Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython->loady->BiblioPixel)

Downloading smmap2-2.0.3-py2.py3-none-any.whl

Installing collected packages: BiblioPixelAnimations, croniter, BiblioPixelTriggers, Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, smmap2, gitdb2, GitPython, loady, pyserial, pyyaml, BiblioPixel

Running setup.py install for BiblioPixelAnimations … done

Running setup.py install for croniter … done

Running setup.py install for BiblioPixelTriggers … done

Running setup.py install for MarkupSafe … done

Running setup.py install for itsdangerous … done

Running setup.py install for loady … done

Running setup.py install for pyyaml … done

Running setup.py install for BiblioPixel … done

Successfully installed BiblioPixel-3.4.2 BiblioPixelAnimations-3.20171217.174917 BiblioPixelTriggers-1.0.1 GitPython-2.1.8 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 croniter-0.3.20 flask-0.12.2 gitdb2-2.0.3 itsdangerous-0.24 loady-1.7.8 pyserial-3.4 pyyaml-3.12 smmap2-2.0.3

C:\Python\Python36\Scripts>pip install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4


AllPixelMini Now Available! – Maniacal Labs

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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/68db4c0c-9a78-450f-b00b-1941b4d50d38%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-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/2e2bb2b9-73f0-450c-9ca8-fa462ddc35fe%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/c9ad9e62-36c4-45da-86e5-14a01c881d4c%40googlegroups.com.

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