Individually program LEDs with rotary encoder

Hi, I'm new to the forum, Arduino, and electronics in general, so help and advice is much appreciated.

I'm trying to create a project that allows me to change the colors of 8 individual LEDs with a single knob. From what I've dug up via Google and YouTube, I think my best bet is something like a WS2812B LED strip and a push button rotary encoder.

However, the videos I've seen of rotary encoders being used for LED strips changes ALL the LEDs whenever the button is pushed and it changes to a different setting.

Specifically, I want to manipulate each of the 8 LEDs one at a time without changing any of the others, using a single knob and one button to select which LED I am currently editing (with one selection being "none of the LEDs are currently selected," so the knob won't change any LEDs when I don't want it to). So when I change the first LED to red, I can switch to change the second LED to blue without the red one changing, then move on to the third without changing the first two and so on.

Is this even possible with a single Arduino Nano (or an Uno), one strip of WS28212B lights (with only 8 LEDs on the strip), and one rotary encoder? Sorry for being redundant, I'm still trying to make sense of everything electronics.

Yes

1 Like

Okay yes, that makes sense! That's helpful, so now I need to go figure out how to use values to change the colors of LEDs and then how to access/manipulate/create those values using an encoder, is that about right?

With one thing to twist, the encoder, and one thing to,lush, a button or the one your encoder may have when you push down on the knob, you have limited user interface choices.

Before you write or borrow any code, please describe in near-excruciating detail exactly how the user is meant to twist and push so as to make every LED the desired colour.

Doing will make writing the software very much easier as you can focus on the pesky details without worrying about how it will work.

a7

How many different colors may each LED assume?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.