Hackster is hosting Impact Spotlights: Industrial Automation. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Industrial Automation. Stream on Thursday!
Wicked Makers
Published © CC BY-SA

Backlit LED Skull Sign

We used the X-Carve CNC, along with an Arduino Micro and an LED strip, to make an AWESOME backlit skull sign for our workshop!

BeginnerFull instructions provided3,287
Backlit LED Skull Sign

Things used in this project

Story

Read more

Schematics

Schematic

Code

Code

Arduino
// Include Libraries
#include "FastLED.h"

// Define Global Variables
#define NUM_LEDS 300 // How many LEDs are in the strip
#define DATA_PIN 2 // Which pin on the Arduino?
int fadeAmount = 5; // How fast does it fade? e.g. Higher number = faster fade.
int brightness = 0;

// Define the LED Array
CRGB leds[NUM_LEDS];

void setup() { 
      // Based on which LEDs you're using. See FastLED docs.
      FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
}

void loop() { 

  for(int i = 0; i < NUM_LEDS; i++ )
   {
   leds[i].setRGB(47,49,61);  // Set Color (RGB)
   leds[i].fadeLightBy(brightness);
  }
  FastLED.show();
  brightness = brightness + fadeAmount;

  if(brightness == 0 || brightness == 255)
  {
    if(brightness == 0){
      delay(20000);
    }
    fadeAmount = -fadeAmount ; 
  }    
  delay(10); 
    
}

Credits

Wicked Makers
0 projects • 55 followers
Contact

Comments

Please log in or sign up to comment.