Code Monkey home page Code Monkey logo

Comments (3)

ulri-me avatar ulri-me commented on June 30, 2024

Hi

your question is missing an essential information:
Which LED strip do you want to use?

In case it is the WS2812(b) then your idea will not work.

https://www.digikey.com/en/datasheets/parallaxinc/parallax-inc-28085-ws2812b-rgb-led-datasheet
Have a look at the datasheet above. It states the LED has a "Cascading port transmission signal by single line".

This cascading transmission means that the first LED receives the RGB information for every pixel upcoming. It cuts away the first three bits (and displays them itself as RGB information) and transmit the remaining RGB information for the upcoming pixels in the transmission line.

Assuming you have a count of p pixels, then the first LED in the line must receive
(p+1 - 1(the first pixel)) * 3 bits for RGB.
It cuts away 3 bits (RGB) and transmits
(p+1 - 2(the second pixel)) * 3 (RGB) bits
down the line.
The p'th pixel will then receive
(p+1 - p(the p'th pixel)) * 3 (RGB) bits,
so there is nothing to transmit left.

To sum up this explanation you cannot build groups within one LED strip as you have the cascading transmission line.

Your only option would be to use multiple LED strips in parallel powered by one output. As the transmission is unidirectional, you can connect multiple "first LEDs" of multiple LED strips to the same output and therefore control a higher count.

from esp8266_artnetnode_v2.

oligriffiths avatar oligriffiths commented on June 30, 2024

Perhaps I wasn’t clear enough in my description.

What I am suggesting is merely assigning 1 set of 3 DMX channels (RGB) to N pixels, so say instead of using 12 channels for the first 4 pixels, you could use 3 channels and have all 4 pixels be set to the same value as those 3 DMX channels. Essentially copying and pasting the value of each set of DMX channels to N pixels, rather than it being a 1:1 mapping.

from esp8266_artnetnode_v2.

oligriffiths avatar oligriffiths commented on June 30, 2024

Alternatively a very simple example would be a group size of N pixels where N = pixel strip length, thus being able to control the entire strip as one color with just 3 DMX channels.

from esp8266_artnetnode_v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.