MakerWorld
Electronics
Go to Model
UFO lamp
4
Downloads
2
Likes
1
Makes
UFO lamp using Arduino and WS2812B LED To build this you need:1 Arduino pro mini3 WS2812B LED strip, 60LEDs/meter, each with 9 LEDsThe UFO closes with 10*2mm magnets or you can just glue the 2 halves together. Connect the data pin of the three LED strips together to pin 11 on the Arduino.----------------------------------------------------Arduino code----------------------------------------------------// Adafruit NeoPixel library#include <Adafruit_NeoPixel.h>#ifdef __AVR__#include <avr/power.h> // Required for 16 MHz Adafruit Trinket#endif// Which pin on the Arduino is connected to the NeoPixels?#define PIN 11// How many NeoPixels are attached to the Arduino?#define NUMPIXELS 9Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);void setup() { // These lines are specifically to support the Adafruit Trinket 5V 16 MHz. // Any other board, you can remove this part (but no harm leaving it):#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000) clock_prescale_set(clock_div_1);#endif
G4ZO also publishes on
138 additional models across 4 more platforms
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!