MakerWorld
Electronics
Vai al Modello
UFO lamp
4
Download
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 pubblica anche su
138 modelli aggiuntivi su altre 4 piattaforme
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!