Skip to content

Mood Lamp Based on Arduino and WS2812 RGB LEDs 💡

License

Notifications You must be signed in to change notification settings

maximtrp/rgb-led-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RGB LED Lamp

RGB LED Lamp

Codacy Badge

This is a simple mood lamp which gradually changes its color according to HSV color model.

Build setup

  1. Arduino Nano.
  2. WS2812 LED strip.
  3. 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).
  4. 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).

Example wiring

Wiring

Arduino sketch

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.

About

Mood Lamp Based on Arduino and WS2812 RGB LEDs 💡

Topics

Resources

License

Stars

Watchers

Forks

Languages