I finally decided to show that Fire lamp I made by recycling an old

fastled-showtell
gplus
(JP Roy) #1

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.

I also have a video posted on youtube…

cf20452026bae7be3ca5ac3caba12544.jpeg

3991ea92729887f48fdbba3c189e4b23.jpeg

c035e59768fb3f6c357867828e190df8.jpeg

14bfa33f9d98d2120782c16dbca99c72.jpeg

efbf047042154115891bd619bdd09b44.jpeg

(Jason Coon) #2

Great build, as always, JP!

(Marc Miller) #3

I really like that JP! Very cool with all your different animations.
How many modes does that left potentiometer control?

(Jason Coon) #4

Any interesting code to share? I see many people asking about using potentiometers and/or rotary encoders for pattern/palette selection.

(JP Roy) #5

@marmil At this time, only 16 but with a bit of tweaking, you can easily go to 64 or even 128 if your 5V is not too noisy !

(JP Roy) #6

Hi @Jason_Coon , I have no problem with sharing…

jpro56 / gist:43a2f46bfbf86f38e62c

you will see, I am not a tidy programmer and it is definitely a messy pile of…

code !

(Marc Miller) #7

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! :stuck_out_tongue:

(JP Roy) #8

ooops… did not paste the right thing…

(JP Roy) #9

@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 !

(Mark Kriegsman) #10

Looks GREAT!

(Marc Miller) #11

Great little trick JP. Thanks.

(Jack Keeney) #12

WOW!, that is amazing. Great job dude!

(Antonio Valenti) #13

Great job, very very interesting.
Thanks for sharing!

(Brian van vlymen) #14

awesome great job!