Arnov Sharma
Published

HALO Energy Sword

Made a life size Energy Sword from Halo Franchise, Attiny85 is being used here to drive WS2812 LEDs that illuminate the Blades.

BeginnerFull instructions provided1 hour487

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
ATtiny85
Microchip ATtiny85
×1
PCBWay Custom PCB
PCBWay Custom PCB
×1

Software apps and online services

Fusion
Autodesk Fusion
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

Fusion360File

Schematics

POWER MODULE

ATTINY85 Board

LED BOARD

Code

code

C/C++
#include <Adafruit_NeoPixel.h>

#define LED_PIN 3
#define LED_COUNT 20

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();
}

void loop() {
  for (int i = 0; i < 256; i++) {
    for (int j = 0; j < strip.numPixels(); j++) {
      int blue = 255 - i;
      int red = i;
      int green = 0;
      strip.setPixelColor(j, strip.Color(red, green, blue));
    }
    strip.show();
    delay(10);
  }

  for (int i = 255; i >= 0; i--) {
    for (int j = 0; j < strip.numPixels(); j++) {
      int blue = 255 - i;
      int red = i;
      int green = 0;
      strip.setPixelColor(j, strip.Color(red, green, blue));
    }
    strip.show();
    delay(10);
  }
}

Credits

Arnov Sharma
403 projects • 446 followers
I'm Arnov. I build, design, and experiment with tech; 3D printing, PCB design, and retro consoles are my jam.

Comments