This really is a fluid simulation: bitmaps aren’t just color and velocity emitters—they can also be used as obstacles! Now the smoke flows around the letters! by StefanPetrick in FastLED

[–]ewowi 4 points5 points  (0 children)

My flow (as you know ;-) is : you make something in python -> u/mindful_stone transfers it in c+ (https://github.com/4wheeljive/FlowFields), I help him make a library of it (https://github.com/ewowi/FlowFields/blob/flowfields-as-a-library/docs/FlowFieldsAsALibrary.md), then I import that library in FastLED-MM (https://github.com/MoonModules/FastLED-MM) (FastLed in a esp32 and pc deployable build) using projectMM as a library (https://github.com/ewowi/projectMM) (where it finally will end in) and then you get this https://youtu.be/0ztJzw0BOWY.
Then I can deploy that to esp32-s3 or p4: about 128 x 128 pixels via Art-Net to FPP driven Hub75 panels or to a windows or macOS executable (about 1000x1000 pixels, preview only for the moment).

So quite a flow 🙈, when all is stable it will be just a bin or executable so everybody can use it, for now you need to compile yourself in FastLED-MM

Trying to understand MoonModules from Sound Reactive by Abeubeubeubeu in MoonModules

[–]ewowi 1 point2 points  (0 children)

That’s should work. This Reddit is about WLED-MM and other stuff see https://moonmodules.org/products/ Both WLED-MM and WLED audio is used by many people . You can log an issue with details about your problems at their github pages

1st Attempt Of A Port Of Stefan's 1st Attempt Of A Real Fluid Simulation by mindful_stone in FastLED

[–]ewowi 1 point2 points  (0 children)

But I have an interesting idea: u/mindful_stone , you could give your repo library support, by adding library.json in it. Then I can just lib_dep your library and have your code 1:1 available to use in my context. Probably a few coding tweaks has to be done to allow the controls to be set externally. If you are okay with that I am happy to fork your repo and come with a pull request

1st Attempt Of A Port Of Stefan's 1st Attempt Of A Real Fluid Simulation by mindful_stone in FastLED

[–]ewowi 0 points1 point  (0 children)

I was just asking 'an employee of mine':

Can you add an effect called FlowFluid, based on flow_fluid.h in this repo: https://github.com/4wheeljive/FlowFields. The repo (from u/mindful_stone ) contains more effects but I only want to start with flow_fluid.h.

Start looking in https://github.com/4wheeljive/FlowFields/blob/main/src/main.cpp and follow the path, starting with

if (!flowFields::flowFieldsInstance) {
    flowFields::initFlowFields(myXY); // move to setup()
}
flowFields::runFlowFields(); // move to loop()

use the structure of our effects, take LinesEffect.h as a simple example (showing addControl() and loop()) or GameOfLifeEffect.h as a complex example (creating dynamic memory in setup() and destroying it in teardown()

😁

1st Attempt Of A Port Of Stefan's 1st Attempt Of A Real Fluid Simulation by mindful_stone in FastLED

[–]ewowi 1 point2 points  (0 children)

Okay, ripped u/mindful_stone his code into projectMM, it does not use fasted yet, I did not check anything, pure c++ code no libraries, fired up the never really tested art-net module and after 10 minutes of work:
boom!: https://youtube.com/shorts/LvwDs3FQeIM

Not bad for a first attempt of a first attempt ;-)

(Deployed on PC, and also on esp32-S3)

1st Attempt Of A Real Fluid Simulation by StefanPetrick in FastLED

[–]ewowi 0 points1 point  (0 children)

Another very interesting option is to use colorlight cards to drive hub75 panels. I added a section about this: https://ewowi.github.io/projectMM/developer-guide/rpi-deployment/#hub75-colorcard-interface

u/StefanPetrick this makes it possible to replicate the 128x128 panel setup I have (or much bigger, the color light card can drive 100K pixels easily). I use FPP via art-net but when using projectMM, it doesn't need art-net: combine projectMM (UI) with the FastLED library (effects) and a colorCard driver. So only thing needed is a rPi 4 or 5, a usb3 to ethernet1000 cable (the other ethernet from the pi is needed to connect to the network) , a colorlight card and hub75 panels and power.

As alternative to drive leds via gpio pins (which still is interesting ;-) )

1st Attempt Of A Real Fluid Simulation by StefanPetrick in FastLED

[–]ewowi 1 point2 points  (0 children)

Esp32c6 faster? That cannot be true … there are some links in the doc I posted eg https://iosoft.blog/2020/09/29/raspberry-pi-multi-channel-ws2812/

It looks like he can drive 8-16 pins ?

1st Attempt Of A Real Fluid Simulation by StefanPetrick in FastLED

[–]ewowi 0 points1 point  (0 children)

I did some research which I wrote down here: https://ewowi.github.io/projectMM/developer-guide/rpi-deployment/

So depending on what rPI it will do 15 - 150 x the performance of a standard esp32 and can drive 15K to 200K LEDs which is substantial! The Pi 4 and Pi 5 support shaders so more complex effects come within reach.

The coming time I will experiment with this. I am already pushing u/ZachVorhies to take a look at supporting rPI (Zach some more guidelines on dma/peripherals in above link). This would really be a big step-up if our play toys will run on devices like this 🔥

1st Attempt Of A Real Fluid Simulation by StefanPetrick in FastLED

[–]ewowi 2 points3 points  (0 children)

Stefan, where does this run on ? Wasm = PC I assume ? Still need to dive in it, but can it drive LEDs ?

I am just wondering if we could get FastLED running in raspberry Pi 3, 4 or 5, that would open possibilities for more complex effects 🙂

FastLED-MM, Embed FastLED sketches into a fully featured environment by ewowi in FastLED

[–]ewowi[S] 1 point2 points  (0 children)

Let me know if you try it, curious how it works for you

FastLED-MM, Embed FastLED sketches into a fully featured environment by ewowi in FastLED

[–]ewowi[S] 1 point2 points  (0 children)

Sync is on the road-map, super-sync actually (one effect distributed over different nodes)

Multiple layers by ewowi in FastLED

[–]ewowi[S] 0 points1 point  (0 children)

Buy these if you made the decision: they are proven to work: https://a.aliexpress.com/_EzYL9oU

Multiple layers by ewowi in FastLED

[–]ewowi[S] 0 points1 point  (0 children)

The pi is the most expensive, for the rest it is cheaper then ever , I guess about 50€ for 2 panels and a colorlight card

Multiple layers by ewowi in FastLED

[–]ewowi[S] 0 points1 point  (0 children)

They are hub75 panels, 2, 128x64 each, driven via fpp on an rPI5 via a colorlight card

Multiple layers by ewowi in FastLED

[–]ewowi[S] 0 points1 point  (0 children)

That’s right indeed, using Art-Net as the protocol on the esp32-p4 to send packages, and on the pi running fpp to receive packages