OTA Updates / Segments / OLED Display / questions

Hello wled community,

unfortunately, I’m still completely new to this area and wanted to throw a question around.

I am currently building my own “fluorescent tubes”, which I would like to control with WLED (WLED on a Wemos D1 Mini).

If I want to do an OTA update, how does that work with Usermods? My question is specific to this mod: WLED/usermods/ssd1306_i2c_oled_u8g2 at master · Aircoookie/WLED · GitHub. Do I have to reinstall the usermod after every OTA update?

As far as I know WLED supports multi-LED stripes, but can you still have both data pins synchronized?

Thank you for the answers! :nerd_face:

To enable a user mod, someone has to do a custom compile.
You can compile the code yourself or pick it up off a fork.
As long as the fork is based on a version that has OTA functionality, OTA should remain even with the usermod.

Simplest way to check is to load up a current version of WLED (0.13-b4) .bin and use that instance to do an OTA update to the compiled .bin file you get from another source. When that version is live, try to OTA back to the previous .bin version.

It will be pretty obvious if the OTA functionality is present under Config->Security&Updates.

Not sure What you mean by

When you do multi-pin strips, you effectively end up with one long strip that is driven from different data pins. You can create multiple segments that all have the same effects at the same time so they’ll be “synchronized”.

Another alternative if the strips will never be “unsynchronized” would be to drive more than one strip from the same data output pin. This will probably require a level shifter to be totally reliable, but you can tie multiple strips to one output, giving you copies of the data on that pin.

Various bins with usermods is available here WLED-wemos-shield/resources/Firmware/WLED_wemos_shield at master · srg74/WLED-wemos-shield · GitHub

1 Like

Ahh okay i understand the OTA Update with the Usermods now! Thanks a lot. I just thought too complicated.

Okay to explain it a little better. I have two physically separated LED strips in one tube. But these should be able to show the same effect, synchronized of course, or one stripe (effectively one side of the tube) should be darker than the other or completely off.

An example. Stripe A lights up red. Stripe B flashes green, can I then also synchronize it over the WiFi?
Another example: Stripe A should flash red and Stripe B too. Stripe A has 100% brightness. Stripe B only 50% but of course they should flash Synhcron.

For a better understanding of the product. I developed the tube in this video: LED Tubes selber bauen I DIY TUTORIAL mit Philipp Schultze - YouTube at the beginning I took the SP108E and switched on both strips separately.
But now I would like to use WLED for this, I have a total of 12 of these tubes.

Is that possible via WLED?

Ok, if you have two potentially independent strips in one tube, you can handle that a couple of ways.

WLED will deal with the two strips as one long symbolic strip to make sure that data is sent at the right times. This is true whether you physically tie the two strips in series or attach each to a different output pin.

What gets added to the mix (and makes things really interesting) is the concept of segments.
A segment lets you deal with some portion of the full symbolic strip as if it were a smaller subset.
So in your case, assuming each strip is 80 LED’s, your total strip is addressed as 0…159 but you can reach each physical piece in separate segments A & B numbered 0…79 and 80…159.

You spend time and effort configuring the 2 segments the way you want, applying colors and effects as you see fit. You can save that configuration in a preset making it easy to recall all the work you did getting things right.

That’s all from the Web GUI, if you need more control, there’s an API interface under the hood that will let you update WLED via some other program/software. And to cap it all off, multiple WLED devices can synchronize via Udp over WiFi.

From what I can glean of the tubes described in your video (sorry German isn’t one of my languages) WLED could be a very good fit to control them.

1 Like

Thank you a lot for your answer and help!

I will try this when i have all Parts here :slight_smile: i will then come back with my solution and maybe problems ^^

Just another short question: When i use two Data Pins, should i use two SN74AHCT125N or is one enough? I read that this can handle up to 4 is this true? I didnt find any info about this and about the wiring for 2 Stripes then.

That shifter has four channels.

Thank you all! I get the system running with segments and everything is fine.

The only thing that doesn’t work is the OLED mod.
@srg74 I took the Version you linked and installed it. But the OLED doesn’t show anything. Can you help me to get it run? I checked wiring and try another display.

Standart firmware will not work with display. Firmware must be with display usermod. If you have proper one, did you select proper display from setting, check pin settings?

I thought the firmware you linked is with the mod with the display. Then I will test it tomorrow with a usermod, not sure how to install it, but I will find out :slight_smile:

He linked to all of the bins. :wink:

Im completely new to this, so i don’t know much about this, i’m sorry.

I think one time you get this and how it work and so on its strate forward. But to get there without any knowledge befor is not that easy.

Edit:

I know that this is the mod I need: WLED/usermods/ssd1306_i2c_oled_u8g2 at master · Aircoookie/WLED · GitHub

But the part under Platformio is isn’t ear for me. Where to put what? Do I need to connect it to the Pc and so on. Sometime it’s the basic that runs you into issues. And I don’t find any real tutorial for this. (For usermods in general)

ESP32 bin file for display mod - WLED-wemos-shield/esp32_display.bin at master · srg74/WLED-wemos-shield · GitHub
ESP8266 bin file for display mod - WLED-wemos-shield/esp8266_display.bin at master · srg74/WLED-wemos-shield · GitHub
After you flash your board you need to go in mod settings and set according to your setup.

I flashed the firmware you linked. But under Usermods is only “autosave” not the display mod.

it is not.

you need 4 Line Display.

What is not?

But in the link I posted earlier a SSD1306 128x32 OLED I2C is used.

obsolete.
kept only for backwards compatibility.

4 Line Display usermod is al that and much more.

So what should i do to get it work? When installing the Firmware, the usermod doesnt show up on the 4.3.2.1 side under usermods.

I don’t know what did you flash to your board. This is screenshot from bin file I downloaded from my GitHub and flashed to brand new board


Also I don’t have autosave mod in my bin file.

I download and flashed this bin: WLED-wemos-shield/esp8266_display.bin at master · srg74/WLED-wemos-shield · GitHub

Nothing more, nothing less. I will try it again tomorrow.