• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
UFO lamp 3D Printer File Image 1
UFO lamp 3D Printer File Image 2
UFO lamp 3D Printer File Image 3
UFO lamp 3D Printer File Image 4
UFO lamp 3D Printer File Image 5
UFO lamp 3D Printer File Image 6
UFO lamp 3D Printer File Thumbnail 1
UFO lamp 3D Printer File Thumbnail 2
UFO lamp 3D Printer File Thumbnail 3
UFO lamp 3D Printer File Thumbnail 4
UFO lamp 3D Printer File Thumbnail 5
UFO lamp 3D Printer File Thumbnail 6

UFO lamp

G4ZO avatarG4ZO

March 20, 2026

makerworld-icon
DescriptionCommentsTags

Description

UFO lamp using Arduino and WS2812B LED 

 

To build this you need:
1 Arduino pro mini
3 WS2812B LED strip, 60LEDs/meter, each with 9 LEDs
The 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 9

Adafruit_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
 // END of Trinket-specific code.

 pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
 pixels.clear();


}

void loop() {
 for(int i=8; i+1>0; i--) { 
   pixels.setPixelColor(0, pixels.Color(0, 100, 0)); //reset last led

   //First wave
   // pixels.Color() takes RGB values, from 0,0,0 up to 255,255,255
   pixels.setPixelColor(i, pixels.Color(60, 220, 0));
   if(i<9) pixels.setPixelColor(i+1, pixels.Color(00, 100, 0)); //reset last led

   //Second wave
   if(i+5<9) pixels.setPixelColor(i+5, pixels.Color(60, 200, 0)); 
   else pixels.setPixelColor(i-4, pixels.Color(60, 220, 0));    
   if(i+5<9) pixels.setPixelColor(i+6, pixels.Color(00, 100, 0)); //reset last led
   else pixels.setPixelColor(i-3, pixels.Color(0, 100, 0)); //reset last led  

   pixels.show();   // Send the updated pixel colors to the hardware.
   delay(120); // Pause before next pass through loop
 }
}

License:

BY-NC-SA

Related Models

Bottle Cap Boy v2 preview image

Bottle Cap Boy v2

RoughlyModule profile image

RoughlyModule

3,753

Stitch preview image

Stitch

szbalazs profile image

szbalazs

3,180

Mini Alien preview image

Mini Alien

Pappis320 profile image

Pappis320

645

Scalar Family - 3D Printer preview image

Scalar Family - 3D Printer

3DModularSystems profile image

3DModularSystems

2,908

Magnetic UFO preview image

Magnetic UFO

Sevro profile image

Sevro

2,825

Impossible Passthrough UFO Abduction preview image

Impossible Passthrough UFO Abduction

N426 profile image

N426

1,234

Earphone Guys! preview image

Earphone Guys!

muzz64 profile image

muzz64

2,855

No Evil – Alien Collection (See No Evil, Hear No Evil, Speak No Evil) preview image

No Evil – Alien Collection (See No Evil, Hear No Evil, Speak No Evil)

DeadMoon profile image

DeadMoon

950