This is a simple mood lamp which gradually changes its color according to HSV color model.
- Arduino Nano.
- WS2812 LED strip.
- Power supply (5V). Each RGB LED draws approximately 50 mA. If you have 20 LEDs, then you will need a 5V power supply capable of delivering at least 1A (and more is better).
- Lamp. I took a cheap one, pulled out a socket, and replaced it with an Arduino wired to both LED strips and power supply (see photo above).
I had two LED strips wired in parallel, so I addressed both of them in led-lamp-sketch.ino
file. You may change it for your needs. FastLED library is required for compilation.