Is it possible to use an Arduino Uno as a serial device with a raspberry pi to run a ws2812b strip and ws2812b 16x16 matrix. I would like to use bibliopixel to test the channel order of the matrix and strip using channel order test. I found the bibliopixel serial receiver but I am confused with its’ setup.
Why don’t you just drive the LEDs directly off the Raspberry Pi with the PiWS281X driver? https://github.com/ManiacalLabs/BiblioPixel/wiki/PiWS281X
If you already have a Pi you don’t need another device to run the LEDs. And either way, the Uno in incapable of running the Serial Receiver code, you would need the Leonardo or something similar with native USB serial support. The Serial Receiver code is just an AllPixel clone but there’s no need if you’ve already got the Pi
···
On Tue, Dec 4, 2018 at 6:09 AM Robert Joyce trirob34@gmail.com wrote:
Is it possible to use an Arduino Uno as a serial device with a raspberry pi to run a ws2812b strip and ws2812b 16x16 matrix. I would like to use bibliopixel to test the channel order of the matrix and strip using channel order test. I found the bibliopixel serial receiver but I am confused with its’ setup.
–
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/78e4fbdd-6834-4cd8-9b8b-d49fe452e129%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you I have installed the driver and setup the hardware on my Pi. Is the a test project I can use to verify that I have it setup correctly?
I have a quick question. I have my project setup and I am running Ws281x driver setup and I get Ws281x needs to be run from “sudo”. Is that done from command line or can it be run from thonny ide on Rpi . I am running the python script: StripChannelTest.py in thonny and am getting the error.
You’d have to do it from the command line.
···
On Thu, Dec 6, 2018 at 6:07 PM Robert Joyce trirob34@gmail.com wrote:
I have a quick question. I have my project setup and I am running Ws281x driver setup and I get Ws281x needs to be run from “sudo”. Is that done from command line or can it be run from thonny ide on Rpi . I am running the python script: StripChannelTest.py in thonny and am getting the error.
–
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/9db4fc90-f9c2-4ffe-a604-81b9bd0d1170%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you
I am having a problem with loading an image to an ws281x matrix. I have the matrix ws281x driver running correctly. I am using the image module and when I run my program I get the error message “image must be in RGB or RGBA format”. I have looked at the metadata and verified that the image is in RGB format,but I still get the error. I am importing a 16x16 pixel art image from gimp as RGB color profile. Any ideas why this isn’t working?
Sorry didn’t include the image specs: It is a 16x16 pixel RGB png image from gimp.
Can you send the file?
···
On Tue, Dec 11, 2018, 5:17 PM Robert Joyce <trirob34@gmail.com wrote:
Sorry didn’t include the image specs: It is a 16x16 pixel RGB png image from gimp.
–
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/2cb28eb9-d9be-436c-a29e-76d875ebf0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have sent you an email with the files attached. I don’t know how to include attachments in this forum.
I have sent you an email with the files I don’t know how to post attachments here.
You can disregard the above.
Here are the files I am using and a screenshot of the error I am getting. I am not a programmer so the python file is what I was able to come up with looking through the bibliopixel documentation and plugging in different parts of python programs in the documentation and reading through others. That is why parts are commented out , it is intended to plug and play configurations for testing until I have a better understanding of the Python programming language and its use in bibliopixel. After getting the Piws281x driver working and using the StripChannel test and Matrix calibration test, I determined that my pixel strip and matrix are GRB color order so it is the reason for the Pi WS281X driver modification.
gifTest_t.py (522 Bytes)
IMG_2140.heic (2.18 MB)
···
On Thursday, December 13, 2018 at 11:46:26 AM UTC-5, Robert Joyce wrote:
I have sent you an email with the files I don’t know how to post attachments here.
Sorry for the delay… Something seems to still be up with my email and I"m not getting these right away.
What software are you using to create that image or did you just find it somewhere?
The problem is that the image is using the wrong color mode. It needs to be either RGB or RGBA and yours is what’s called “Indexed” which is a little to complicated to explain here.
I’ve attached an image file that should work for you.
In whatever software you are using there should be an “Image mode” (or similar wording) option where you can switch it to RGB before saving. Another fool proof option is to save as a BMP file which is always RGB. MS Paint even will do that just fine.
···
On Thu, Dec 13, 2018 at 12:54 PM Robert Joyce trirob34@gmail.com wrote:
On Thursday, December 13, 2018 at 11:46:26 AM UTC-5, Robert Joyce wrote:
I have sent you an email with the files I don’t know how to post attachments here.
You can disregard the above.
Here are the files I am using and a screenshot of the error I am getting. I am not a programmer so the python file is what I was able to come up with looking through the bibliopixel documentation and plugging in different parts of python programs in the documentation and reading through others. That is why parts are commented out , it is intended to plug and play configurations for testing until I have a better understanding of the Python programming language and its use in bibliopixel. After getting the Piws281x driver working and using the StripChannel test and Matrix calibration test, I determined that my pixel strip and matrix are GRB color order so it is the reason for the Pi WS281X driver modification.
–
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/3b141294-d32f-4d7c-a857-642719fc15b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry for the delay... Something seems to still be up with my email and I"m not getting these right away.
What software are you using to create that image or did you just find it somewhere?
The problem is that the image is using the wrong color mode. It needs to be either RGB or RGBA and yours is what's called "Indexed" which is a little to complicated to explain here.I've attached an image file that should work for you.
In whatever software you are using there should be an "Image mode" (or similar wording) option where you can switch it to RGB before saving. Another fool proof option is to save as a BMP file which is always RGB. MS Paint even will do that just fine.I use a pixel art app on iOS called PixelArt, I can set up a specific size grid to match the matrix I am using and then transfer that to gimp on my MacBook and ssh into my Pi to transfer the image. After I verify the test image works I think that I will convert my images to bmp and use bmp in the future. Is the code I am using correct? Not at my computer right now so haven’t tested it with the test image.
Edit: I am no longer getting the image error, but my program is not displaying anything on my matrix then I run the MatrixCalibration Test and that works. I am pretty sure it is my code can you take a look at it. As I said I am not a programmer.
gifTest_t.py (522 Bytes)
···
On Thursday, December 13, 2018 at 1:23:10 PM UTC-5, Adam Haile wrote:
On Thu, Dec 13, 2018 at 12:54 PM Robert Joyce <trir...@gmail.com> wrote:
On Thursday, December 13, 2018 at 11:46:26 AM UTC-5, Robert Joyce wrote:> I have sent you an email with the files I don’t know how to post attachments here.
You can disregard the above.
Here are the files I am using and a screenshot of the error I am getting. I am not a programmer so the python file is what I was able to come up with looking through the bibliopixel documentation and plugging in different parts of python programs in the documentation and reading through others. That is why parts are commented out , it is intended to plug and play configurations for testing until I have a better understanding of the Python programming language and its use in bibliopixel. After getting the Piws281x driver working and using the StripChannel test and Matrix calibration test, I determined that my pixel strip and matrix are GRB color order so it is the reason for the Pi WS281X driver modification.
--
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/3b141294-d32f-4d7c-a857-642719fc15b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I no longer get the image message however when I run my program nothing is displayed on my matrix, then I double check my setup using the MatrixCalibrationTest and it works. So I think my code is a problem. Not surprising as I am not a programmer and just trying to learn. If you could take a look at it and let me know where I went wrong, I’d appreciate it.
Well still can’t seem to get it to work. I am getting totally lost with the programming . Which I am sure is the problem. Do you have a sample program to show an image displayed on a matrix using the image module?