I finally decided to show that Fire lamp I made by recycling an old lamp made of bamboo sticks.
Credits to Mark Kriegsman for his original Fire2012 sketch that was at the heart of my decision to adapt it for an ambiance lamp.
Basically an Arduino Uno, 8 homemade strips of 25 WS2812b RGB LEDs mounted on small PCBs, a small 5V 7A PSU, 2 potentiometers for control, the FastLED library and hours and hours of fun programming animations.
That’s great.
Ha, if you started dividing it up that much you might need to add a couple of LED digit displays so you could show what mode number your were running!
@marmil , the number of clean, distinct steps you can get depends on the amount of noise you have on the analog pin.
With a lot of switching noise you can see the value of a potentiometer changing wildly with each sample.
I find that I get less than +/- 4 in my current setup so I do nothing with the mode until it has changed by at least 8 then I verify if that was enough to actually change modes.
Have a look in that code I just posted to see how I did it !