-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More than one lamp on a WLED AP #628
Comments
If I have you right, they call this "analog" LED support and it's in there. Support for RGBW[W] support is also in there. |
Hi @harueg, @tonyn0 is right: this is the "analog LED support" and it can be enabled either using
And the H801 Wifi uses:
The PWM frequency used for an ESP8266 is set to 880 Hz (see line 179 in Right now you need one ESP per LED strip. |
Yes, i found it. It's in the b2 release. Will these settings appear on the app as well ? On the WS2812B RGB Strip there should be some animation running, fed by a tpm2 file. As boards I either have TTGO-T Display or heltec wifi kit32, will it work on them ? Due to the low price of the ESp32s, there is no problem using 2 controller, it's more a matter of comfort. Thanks a lot ! |
@harueg have you installed all the libraries from the Quick start guide? What is your NeoPixelBus version? Yes, sure, WLED should run on any ESP8266 or ESP32 based board :) |
@Aircoookie for the esp32 there is only one mentioned : Arduino Core v1.0.4 Thank you |
Hi @harueg, another quite easy way is to install VSCode and then the PlatformIO extension. Having done this you only need to open the WLED main folder where you cloned the repo in and hit the ✔️ in the status line at the bottom: The good thing with this is that PlatformIO does handle all the library constrains on a "per-project" basis (while the Arduino IDE does this globally for all projects). |
Hi @Def3nder for me it stops there with being " quite easy ". Do I have to have all libraries and environments in the wled-master folder ? Thanks |
Hi @harueg, no - even more "easy". You do not have to care about libraries at all. With these changes you get a binary for the ESP32 with the following PINs activated:
Coming back to PlatformIO: Does this work for you ? |
Hi @Def3nder Well, yeah, kind of working, managed to produce binaries with various settings. Obviously I can have parallel support of WS2801 and anlog RGB ? |
yep, that works. Now " just " trick the code, that even when set to RGBW in the UI the output is RGB for PIN 2. Would that be possible, would it make sense at all ? |
@harueg: to your questions before: yes: analog LEDs is right now not in the UI settings (I plan to add this) and: yes, analog and digital (WS2812 etc) strips can be used in parallel. But: using RGB for the digital one and the white channel for the analog would not make sense, because the analog strip is "grabbed" only from the very first pixel, while the digital strip has differnet colors for each pixel. To use RGBW you need to get an SK6812 strip that supports 4 color (like this). |
Hello @Def3nder Yes, it takes the color values from the 1st LED. So that idea only works with a RGB Led strip and one white strip. |
Hi @harueg, from a coding perspective this would be easy. So, you could then have the one strip for"RGB effects" and the other one for " white light only". |
Hi @Def3nder Thank you very much |
Hi @Def3nder Maybe you can make the binary and I get a normal ESP32. Thanx and good night Harald |
Hi @harueg, had some problems with the build process, too, this morning - anyhow - deleting the .pio folder did solve this for me (I'm using VScode with PlatformIO extension). I've created the ESP32 binary with these options:
You need to enable the checkbox I could not test this as I'm at work right now - I wil try it this evening... I hope you can flash this (I did not test flashing an ESP32 other than directly from PlatformIO or the Arduino IDE) - inside the ZIP there is a file firmware.bin - I think it should work to use this for a manual update ( ...just one thought: if you want to control both RGB and W separately, you could go to the segments, Then you can select seg0 and control the W-channel |
Hi @Def3nder Thank you, yeah work, stupid topic. I was able to flash it, but there was no reaction on pin13. Segments : Good night Harald |
Hi @harueg, yes, the "normal" behavior would be to get 32 bit colors, but I changed the code that way that it stays with 24 bit colors for the digital LEDs and only uses the additional 8 bits for the white channel on GPIO13. |
ah, ok Then there is no need for segments? Also tried this board : |
Hi @harueg, yes - the slider will go directly to the white LED strip. And all the rest to the RGB strip. I just saw that Please try the following binary - I've disabled the |
Hi @Def3nder Nope, doesn't work on either board. Completely other topic, just slightly related. Would it be possible to integrate it into WLED as an effect ? How much would that be in time and money ? I suppose you heard of the espressif mesh other promising tries : Thank you Harald |
btw. I ordered some normal ESP32s, just to check. |
I checked the other analogue outputs, there is just a very dim glim. Good Night Harald |
Hi Did you uncomment line 10 in NpbWrapper.h ? Good Night Harald |
Hi @harueg, no I did nothing with line 10 - this would switch from WS281x type LEDs to the old WS2801. And: yes, the effects that use FastLED palettes don't work with RGBW - they use RGB only. |
Hi @Def3nder Line 10 in NpbWrapper.h does matter, if commented analogue LEDs don't work. 10 //#define WLED_USE_ANALOG_LEDS //Uncomment for using "dumb" PWM controlled LEDs (see pins below, default R: gpio5, G: 12, B: 15, W: 13) |
So WLED uses NeoPixelBus and FastLed ? Thanks and good night Harald |
Hello Def3nder , I love this project! What did you change where in the code? I want to transfer the settings for a Wemos D1 mini. One pin for digital RGB and one pin for analoge white. Thanks |
Hallo @nelzon101 Vielen Dank das habe ich bereits kompiliert und hat auch funktioniert. Noch einen schönen Abend Harald |
Hallo Harald. Ich würde gerne selbst kompilieren (VSCode, aktuelle Wled-Version) und folgendes umsetzen wollen: "(Ich würde den Streifen nur als RGB initialisieren und dann den weißen Kanal in der SetPixelColor () -Funktion abrufen und an PIN 13 senden. Das sollte funktionieren.)" Wo passe ich das im Code an? PS: ich benutze einen ESP8266. Gruß Nelzon |
Hallo @nelzon101 Das ist jetzt schon wieder so lange her. Beste Grüße Harald |
Schau mal hier |
Danke, aber das ist nicht das selbe. theoretisch also RGBW wobei RGB an WS2811 & W an PWM geschickt wird. @Def3nder please let see your changes in your .bin file below ;) |
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. |
Hi !
I would like to build a lamp with just mere dimmable white and color effects.
So the white would need it's own channel.
With a Meanwell LED driver that would just be any pin, which could give a ~ 2kHz PWM output.
Is there any planning of a multichannel WLED ?
Now I need one WLED ESP32 per lamp, or did I get something wrong ?
Thanks
The text was updated successfully, but these errors were encountered: