A post was split to a new topic: Troubleshooting an LED suit with 2D pixel maps
This tool is awesome. I just mapped the order of my nanoleaf panels and will be diving into the code soon.
I cant make it work. What I have to do before add the image or having the mapper done? I set it up to the Led quantity, leave the PB in a 2D pattern then I press save and nothing happens.
M
it won’t update that display, that’s just a rainbow display, leave that page, select a pattern and see if the actual pattern works as expected.
That said, that rainbow display looks wrong, given what we know the real thing looks like… @wizard?
I do that already. The display look ok. It move like left to right. But when I select the pattern it won’t do a 2D on the Leds. I try with some 2D patterns. I am trying with a pixelblaze v2. Any pattern that you know it work? Could be the pattern?
Could be the pattern, some require you to edit it to put in the size of the matrix you are using, so it understands height/width.
In your case, looks like 5 height and 22 wide
Since Ben’s recent update of the code to add transformation, many of the existing 2D patterns could use an update to the newer ways of handling things. I’d say try a bunch, figure out which work as expected, and then make a list of the ones that don’t (and the ones that do) and post the list. Some of us might take a look and figure out what needs an update.
Please remember, this forum is all volunteers. We’re often happy to help, but at the end of the day, learning how this works for your particular setup (especially non standard layouts, not 8x8 or 16x16, etc) and how to tweak it to work right will take some learning how this stuff works.
@Changchung ,
Your preview doesn’t look very uniform, but I can’t tell if it actually looks that way in the picture you used to map. It should be mostly OK for patterns even if it’s a little off.
If you post the image you used to map, and the text of your pixel map coordinates, any of us can put these into the pixel mapper tool and help troubleshoot the map itself.
Pixelblaze V2 didn’t ship with many patterns that used render2D
and could take advantage of the pixel map. Give it a try with “cube fire”, or some of the 2D patterns from the pattern site. Very old 2D patterns calculated the coordinates via pattern code, and assumed regular matrix configurations so won’t work with your sign. Look for “render2D” in the code.
Thanks Ben. Here is the picture and code that I am getting.
[
[232,252],
[388,248],
[586,256],
[936,294],
[1378,297],
[1626,267],
[2425,309],
[2631,278],
[2977,294],
[3476,290],
[224,408],
[681,423],
[921,438],
[1374,476],
[1584,442],
[2250,393],
[2741,400],
[2985,457],
[3115,396],
[3450,457],
[190,636],
[651,647],
[990,598],
[1252,587],
[1588,625],
[2254,564],
[2414,594],
[2578,583],
[2760,590],
[2985,644],
[3217,537],
[3301,640],
[3484,636],
[178,826],
[655,838],
[1134,697],
[1572,788],
[2262,777],
[2726,788],
[2997,819],
[3442,800],
[152,956],
[323,967],
[517,975],
[1131,982],
[1123,845],
[1584,986],
[1725,963],
[1892,975],
[2029,967],
[2269,979],
[2753,963],
[2993,979],
[3438,979]
]
Her
Hmm, I think the forum might have resized your image - it’s only showing up at 1920x662 pixels. If I double it, it’s close, but not quite. Whats the resolution of your source image?
It looks like the clicks/points aren’t on-center. The back of the D looks off a bit. Still, it’s close enough you’ll get some nice 2D effects from it. You could try mapping it again, just be sure to click right in the center of the LED each time - undo if needed to adjust.
That looks correct to me.
That’s not in the pattern library (yet), but does the KITT scan with 2D. Compare that to the normal KITT pattern (which would trace out each letter back and forth)
Yep, looks about right. You can also try “Red-Green XY 2D Sweep”
Red-Green XY 2D Sweep.epe (3.1 KB)
You could add a fake pixel to the map to lock in the aspect ratio to a square. .e.g add [3484,3484]
at the end of your list. Don’t forget to add a comma, its sneakily absent on that last entry.
Just wanted to be sure you’re clicking on the image in the order that the pixels are wired, right? I am seeing some of the wires inside and wondering if you were marking them all, but not in their wiring order. For example, I couldn’t tell if a wire is directly connecting pixels numbered 14 and 15:
If you can post a video of the pattern Wizard included - Red-Green XY 2D Sweep.epe - that would be the most definitive answer as to whether it seems to be mapped correctly.
@jeff is right, you need to click on them in order. That should be listed clearly too on that page.
You need to start on the first pixel and click on them in order. Not just across the board, but the way the wiring goes. Otherwise it’ll be lighting up the wrong light and nothing will look right.
@jeff jeff Ok. I understand now. I was selecting the Leds wrong. I will try it again.
@Scruffynerf Ok. Thanks. I will try it again and post the results.
@jeff nice write up on mapping:. intro_to_mapping.md
I’d link to it, but unsure which link to use. @wizard?
Hopefully with the above discussion/confusion, some more “howto” will be added as well, including linking to the tool here.
Thanks! I appreciate you noticing!
This mapping content’s been live here for a little over a year, but one effort I’ve been trying to support is unifying the navigation/cohesion of bhencke.com/pixelblaze, the github repos, and everything that lives on electromage.com. Within a few weeks, I’d like to see much of the “how to” type content fully migrated from bhencke.com/pixelblaze
to electromage.com
. It probably doesn’t have a durable, linkable home until then.
However, linking to it in it’s github.com/simap/pixelblaze/guides/ home is likely to be durable for quite some time, it’ll just be github markdown there, whereas it’ll be rendered into a cohesive nav experience when it gets integrated with electromage.com/setup/