Now thinking about adding some knobs and dials to my project.

Now thinking about adding some knobs and dials to my project.
I have been looking at some rotary encoders with push button.
http://m.ebay.co.uk/itm/291347112498
Has anyone else used anything like this or should I just stick with some potentiometers?

I just received a bunch of those and will get around to them when I have a chance. Let’s see. . select a mode. . . select a palette.

Yea just wondering if polling the switches would play nice with FastLED.

Polling switches works just fine so long as you’re a) not relying on a lot of delays inside the code and b) not doing SUPER intensive code that would delay getting to the polling sequence then you’re fine.

Rotary encoders work just as well if you’re prudent with your fastLED.show(). My must recent project used a rotary encoder dial to change hue while the button changed the mode in a user programming mode then switched function in normal operation. Full disclosure, I was using a Teensy3.1 which is a lot more friendly to interrupts than the relatively slower Arduino platform but with minor modifications it would work (probably).

Rotary encoders can be coded to use a poll method, albeit, not the most elegant nor consistent/foolproof solution, but unless you’re spinning the dial repeatedly, it should work…

I’m using a mega at the moment. I suppose for the price I might as well give them a go. Will report back how well it goes (in about a month when they arrive!)

they got 20 clicks per rotation. That might feel a bit mushy. If possible try to find something like 12 clicks / rotation.

Used them, worked like a charm. Starting point in Arduino playground: http://playground.arduino.cc/Main/RotaryEncoders

@Christoph_Sold on what platform did you use them? Arduino or Teensy?
Could you please share how you set them up?
Interrupt based? Multiple encoders?
(I am looking for someone who used multiple interrupts on a Teensy)

@Juergen_Bruegl , I used them on Arduino, polling the encoders.

That’s reassuring, thanks.