Lamp with WS2812B led

Lamp with WS2812B led

thingiverse

Lamp i design with three strips of WS2812B leds. Total 39 leds and a Arduino Nano to control the light. Adafruit effect aka FastLED Please note I am not a programmer so I am in no way saying this is properly made. But this code works for me :) Source code: (https://gofile.io/?c=ZmQHGg) <pre><code>#include &lt;FastLED.h&gt; #define NUM_LEDS 39 #define BRIGHTNESS 170 CRGB leds[NUM_LEDS]; void setup() { delay( 3000 ); // power-up safety delay FastLED.addLeds&lt;WS2812B, 3, GRB&gt;(leds, 0, 13); //Pin 3, LED 0 to 13 FastLED.addLeds&lt;WS2812B, 5, GRB&gt;(leds, 13, 26); //Pin 5, LED 13 to 26 FastLED.addLeds&lt;WS2812B, 7, GRB&gt;(leds, 26, 39); //Pin 7, LED 26 to 39 FastLED.setBrightness( BRIGHTNESS ); } void loop() { randomSeed(millis()); int wait=30; rainbow(wait); } void rainbow(uint8_t wait) { uint16_t i, j; for(j=0; j&lt;256; j++) { for(i=0; i&lt;NUM_LEDS; i++) { CRGB ledColor = wheel((i*1+j) &amp; 255); leds[i]=ledColor; } FastLED.show(); FastLED.delay(wait); } } CRGB wheel(byte WheelPos) { CRGB color; if (WheelPos &lt; 85) { color.r = WheelPos * 3; color.g = 255 - WheelPos * 3; color.b = 0; } else if (WheelPos &lt; 170) { WheelPos -= 85; color.r = 255 - WheelPos * 3; color.g = 0; color.b = WheelPos * 3; } else { WheelPos -= 170; color.r = 0; color.g = WheelPos * 3; color.b = 255 - WheelPos * 3; } return color; }</code></pre>

Download Model from thingiverse

With this file you will be able to print Lamp with WS2812B led with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Lamp with WS2812B led.