I need some help with the setup of my project. I'm trying to make my own nanoleaf LED panels. Since a couple of days I'm working on the mechanical and electrical parts of this project and now continuing with the programming of it. To give some more information about the project I have made a simple picture of a possible setup of the panels in the project, shown below:
Each panel has the shape of a triangle, which will consist of a microcontroller and a WS2812B LED strip (for now, maybe later on using other type of LEDs). The panels (nodes) will be chainable as shown in the picture below:
The red node will be the master which will be controlled by an ESP32 connected to WiFi to adjust settings and set color schemes (the microcontroller for the slaves is not chosen yet!). The way I see it is that the ESP32 will get a start and end color, calculates all colors in between for each node from start to end and send that color the the microcontroller for that specific node. This is easily done when the project consists of a default layout and number of nodes. But now I'm trying to create it that the master will count the number of chains, the amount of nodes and to give each node a unique ID which is easily mapped to the physical layout (such that it is possible to set each chain individually). The problem is that I can't think of anything to get this working, so I thought maybe someone here can help me further with this problem.