psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.59k stars 190 forks source link

More than 255 led strip ? #149

Closed asgardc3r closed 6 years ago

asgardc3r commented 7 years ago

hello,

i'm trying to make prismatik work with a 262 SK9822 led strip. it is working perfectly until 255 led, but no more

i've tried to change the number of led in main.conf but keeps crashing prismatik after.

do anyone have a solution ?

Thanks

sofos1990 commented 6 years ago

That would be so useful! I'm looking for exactly the same. In fact if you go to custom layout you can have up to 99 LEDs per side but even that is not enough with the 144 LEDs/m strip these days. I would appreciate if somebody could fix this.

psieg commented 6 years ago

I don't remember whether or not there was a good reason for that. Feel free to change the number here and try

asgardc3r commented 6 years ago

hi, i've tried to get this compile but no success so far. could anyone help me get this done ?

sofos1990 commented 6 years ago

Same here. I can't compile it.

asgardc3r commented 6 years ago

@psieg i've got it to work ( althought some warning in visual studio). works perfect with 262 SK9822 leds.

do you think it will be possible to increase the max number of led to the original code and unlock the max number of led per side ?

thanks a lot for the work

psieg commented 6 years ago

If it works I can consider it for the next release, sure.

In the meantime, you should be able to try it by adding

<property name="maximum">
          <number>999</number>
</property>

here for sbBottomLeds, sbSideLeds and sbTopLeds.

Let me know how it works out

asgardc3r commented 6 years ago

nouvelle image bitmap

hi, It works perfectly. How can i merge the changes with the main sources ? I have put the number of led to 511 without any probleme.

2 more things : 1/ i have modified the baudrate to 1500000 then 2000000 and every thing is working great. i think the code should have those baud rates. 2/ i have several warning and error. but the code works. i put the log out.

thanks

asgardc3r commented 6 years ago

@psieg , how do i merge the code ? #

psieg commented 6 years ago

If it's only the three changes I described, it's probably easiest if I just do the changes for the next release. If you want to, you can create a pull request.

Given your fork has no new commit, I assume you downloaded a zip archive (and are unfamiliar with git)? In that case, just open the file in your fork (https://github.com/asgardc3r/Lightpack/blob/master/Software/src/wizard/ZonePlacementPage.ui) click the pen in the upper right corner and do the changes there. Then click new pull request

dtydings commented 4 years ago

Hey hey! This was the only thread on the entire internets that mentioned increasing the max led count in prismatik. Were you all able to get this working? If so, would anyone be so kind as to help me understand how to install the modified version of prismatik on macOS? If you're still reading this thread 3 years later, thank you in advance!

zomfg commented 4 years ago

Adalight has doubled up to 511 since then. If you need more, that would need a new build. Unless you use ESP8266/ESP32 board in which case you can go up to 1500 over UDP. There is nothing special about macOS version, you download and install like any other app.

mannebanco commented 4 years ago

I have the same issue. Using the unofficial version of Prismatik 5.11.2.23. It even says 511 Leds in the setup guide. But I can't get it pass 255 leds. I know I have enough power using an injector at the end. Using WS2812B 144 leds/m and an Arduino Uno. They light up correct when I upload the scratch. I would want 310 Leds for the strip to be at the edge of the screen.

Is there possibly any limitations on the actual strips? Or is it a bug related to Prismatik?

Does anyone have an idea where this limit could come from?

dtydings commented 4 years ago

@zomfg Thank you!! Yes I'm using an ESP8266 with WLED. I was previously using the official prismatik download from the lightpack website with someone's WLED plugin. That worked well but the 255 pixel limitation was still there. What I liked about that plugin though was that I could duplicate the plugin for multiple devices/IP addresses and run them separately from the terminal.

With this unofficial fork, I'm using the DNRGB UDP setting with 647 leds and it looks great. However, is there a way to forward this to multiple ESP8266's/IP addresses? My other 3 strips/controllers have 150 pixels each but I don't mind setting it to 647 and using that for all the strips. I've already confirmed setting the pixel count higher than the actual numbers of pixels in the strip is fine and doesn't cause any problems. I'm not really going for placement accuracy, more for average color and I just want all pixels to be active. Would it be possible to run multiple profiles at the same time without running multiple grabbers? Having 4 grabbers active would bring my mac to a crawl.

In the main.conf file, I tried adding IP addresses like below, but that didn't work.

[Dnrgb] Address="192.168.1.51","192.168.1.38" NumberOfLeds=647 Port=21324 Timeout=255

I also tried duplicating that entire section like below but prismatik also didn't like that. On startup, it deleted the first group.

[Dnrgb] Address=192.168.1.51 NumberOfLeds=647 Port=21324 Timeout=255

[Dnrgb] Address=192.168.1.38 NumberOfLeds=647 Port=21324 Timeout=255

Any help would be greatly appreciated!!

@mannebanco When you do the configuration wizard in prismatik with this unofficial version, use DNRGB UDP. That one has a max of 1500 leds.

mannebanco commented 4 years ago

I Will try that. Thank you very much!

EDIT: Did not work. The scratch was limited. Used another one and got it working.

Appreciate the help!

Have a good evening.

zomfg commented 4 years ago

is there a way to forward this to multiple ESP8266's/IP addresses?

in a way, WLED allows that https://github.com/Aircoookie/WLED/wiki/Sync-WLED-devices-(UDP-Notifier) but this will sync all your 4 strips, which means you probably need to set Prismatik to 150 leds (or whatever number you have per device) I don't know if you can combine 4 into 1 though

Would it be possible to run multiple profiles at the same time without running multiple grabbers?

if by multiple profiles you mean 1 esp does screen grab, 2 soundviz, and 1 moodlamp, then no and you can't (and don't need) to run multiple grabbers, but I'm not sure what are you trying to do exactly

dtydings commented 4 years ago

What I meant was to have prismatik send the same UDP packets to multiple IP addresses at once which should indeed sync all 4 strips. Unfortunately it seems like the WLED UDP sync only works for commands sent from other WLED platforms and it doesn't forward UDP packets to other controllers.

I did some digging though and it turns out it's possible to just set the IP address in prismatik to broadcast IP address 192.168.x.255 and the UDP port to 21324. This makes the router duplicate and forward the UDP packets to anything on the network listening on port 21324. So far it seems like this is working very well! Probably this would work with Hyperion as well.

mekochapo commented 4 years ago

@mannebanco, I have the same issue that you had.... I bough a Dream color ambilight kit with a 5 meters led strip but its not enough to go around my 108 inch projector screen so I added 2 meters of LED strip. Installed the unofficial version of prismatik ( that is ment to support up to 511 LED) but it still doesnt work.

What did you do to get yours working?

Thanks,