I have a “star” which has 2 sides back to back. Every side have 25 leds (WS2811 bullet type with a Wemos D1 mini), I have 5 segments (5 leds for each segment) with some presets which I am happy with for side 1.
I tried a ledmap. Create the ledmap.json file and put the right definition ({“map”:[0,2,3,1,4,5,7,8,6,9,10,12,13,11,14,15,17,18,16,19,20,22,23,21,24]}) for side 1. It does what is suppose to do. I have a second ledmap (ledmap1.json) for side 2 ({“map”:[25,27,28,26,29,30,32,33,31,34,35,37,36,39,40,41,43,44,42,46,47,49,48,45,50]}). Yeah is different because it can’t be wired normally (length of the wires doesn’t allow otherwise )
Now the question’s:
how can I make the side 2 star to have the same patterns?
it is possible to mirror segments?
what is the best approach to accomplish this?
Thank you
Gabi
question is a bit unclear.
if you set both sides to the same FX, they should display the same.
if you want them to be in sync, use the same time base “tb”:0
you can can create one segment out of the two and use mirror.
also: there is a pending PR that allows to copy segments
Lenght of leds is 50. All of this is segmented in 5 leds which means 10 segments. The first 5 segments (side 1) work properly (with ledmap applied), but the other 5 segments (side 2) dissipear when the ledmap is applied ( reboot). What I am doing wrong?
Thank you for tour time.
I dont use ledmaps. KB sais " Multiple maps are supported in the latest versions by using ledmapx.json
where x is a number. Maps can be selected in a preset using {"ledmap":x,...
."
so I suspect only 1 map can be used at a time. why do you divide your map into two files?
It was an excersise. On the device everything is in one string. First I tried to add the “second” map to the end of the “first” one. That did nothing. After that I tried to interlace the maps. Seg 0 with seg 5, seg 1 with seg 6 and so on, again nothing.
Do you suggest to edit the API?
Thanks
the map remaps strip indices to wled indices, so you need to map all of them, not half and half. did you do it like this?
{“map”:[0,2,3,1,4,5,7,8,6,9,10,12,13,11,14,15,17,18,16,19,20,22,23,21,24,25,27,28,26,29,30,32,33,31,34,35,37,36,39,40,41,43,44,42,46,47,49,48,45,50]}
maybe someone with more experience in ledmaps can help.
Yes. That string it is on device. It does something with some segments, but not with all of them. There is a mistake somewhere, but I can’t find it.
Edit Json will help?
LED38 is missing.
@dedehai Where do you set the time base? Is that in ledmap.json or somewhere else?
@gabi68 The “easy” way to keep the two sides in sync is via hardware changes, not software. Obviously hardware changes may or may not be easy, but here’s the idea:
- Wire one side of the star with 25 LEDs however you want.
- Mirror the wiring on the other side with a separate set of 25 LEDs. Side 2 is completely disconnected from side 1, not in series as they are now. LED #N on both sides should be directly behind each other.
- Wire the two sides together in parallel. (Join each of the positive, ground, and data wires.)
- Configure the software for 25 LEDs on one side as you do now and both sides will do that exact same thing since they share the data line.
preset.
I managed to make it work as I wanted. Good spot with that missing led in the ledmap.
Now I have another problem. I make a playlist with 9 effects, but for an unknown reason wled do not save it. I did not have too much time to investigate, but I saw other people reporting the same behaviour.
One solution was to reinstall wled, another was to downgrade to 14.xx.
I will try both of them to see which one will work.
Thank you all for taking time to have a look on this.
Gabi
I disagree completely.
Mirroring in software is much simpler, just wire the entire set in series and group the leds as you need to in order to get mirroring. You then have the option of running various segments as mirrored or reversed or regular.
Don’t limit your hardware because you think understanding the software is too difficult.
Just asking since I found a working solution.
How do you will do this?
Asking because I tried and failed.
Thank you
Gabi
Start with the simplest case (ignore your physical setup for a moment) - 50 LEDs in 1 string. They are addressed as 0-50, with 0-24 being physically at the top of a window (left to right) and 25-50 physically at the bottom (left to right).
In WLED if you create a single simple Segment of 0-50 and apply the “Sweep” effect, you’ll get lights running from the upper left to upper right, then jump to the lower left and run to lower right.
If you create an ledmap like:
{"map":[0,25,1,26,2,27,3,28,4,29,5,30,6,31,7,32,8,33,9,34,10,35,11,36,12,37,13,38,14,39,15,40,16,41,17,42,18,43,19,44,20,45,21,46,22,47,23,48,24,49]}
(reboot WLED after you do to get it active)
And run the same Lighthouse effect, it will alternate from top to bottom and left to right.
Now change the Segment to Group 2, and Spacing 0.
The effect will mirror top and bottom, while moving left to right.
So when you want to have different physical sections of your display “mirror” each other, you create an Ledmap to put pairs (or sets of 3, or 4, or…) of LEDs to display next to each other.
You can then use the Grouping feature of Segments to combine the pairs (or sets of 3,4,5, etc) so that they display in unison.
This lets you display your setup as if you wired parts of it in “parallel” but preserves the ability to also display the setup as “one long string” for different effects. You can of course have multiple map files that “rewire” your setup in different fashions and apply them on the fly in different presets.
This technique can be a very powerful way to manage your displays, but there are a few “gotchas” to watch out for when you’re setting it up.
- Ledmap files are very picky about formatting and whitespace.
You can have what looks like a proper file, but things like:
Extra spaces, misused quotes, apostrophes, backquotes, and others - will let you save the file, but when you try and use it, “nothing happens” (with no error messages). - When creating or changing Ledmap files, you need to reboot WLED before the changes will be effective.
- You can have multiple Ledmap files, but there is a physical limit (currently 10 including the Default???)
- There is also a physical limit to the number of LEDs you can manage via Ledmap files (currently hardcoded at 1600???)
- The numbering vs naming of the files is slightly odd, ledmap0.json (the Default) is just named ledmap.json while any others are ledmap1.json, ledmap2.json, etc.
Keep at it, this is a great feature of WLED that can work very well for you