Michael Portera
Published © GPL3+

Legend of Zelda: Majora's Mask

Bring Majora's Mask to life by building a replica with glowing LED spikes.

IntermediateFull instructions provided10 hours106
Legend of Zelda: Majora's Mask

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
3 mm LED: Green
3 mm LED: Green
×2
3 mm LED: Red
3 mm LED: Red
×2
3 mm LED: Yellow
3 mm LED: Yellow
×4
LED (generic)
LED (generic)
Blue
×2
Micro-USB to USB Cable (Generic)
Micro-USB to USB Cable (Generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

LoZ_MM

Code

loz_mm

Arduino
int led1 = D0;
int led2 = D1;
int led3 = D2;
int led4 = D3;
int led5 = D4;
int led6 = D5;
int led7 = D6;
int led8 = D7;

int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

void setup() {
   pinMode (led1, OUTPUT);
   pinMode (led2, OUTPUT);
   pinMode (led3, OUTPUT);
   pinMode (led4, OUTPUT);
   pinMode (led5, OUTPUT);
   pinMode (led6, OUTPUT);
   pinMode (led7, OUTPUT);
   pinMode (led8, OUTPUT);
}

void loop() {
  analogWrite(led1, brightness);
  analogWrite(led2, brightness);
  analogWrite(led3, brightness);
  analogWrite(led4, brightness);
  analogWrite(led5, brightness);
  analogWrite(led6, brightness);
  analogWrite(led7, brightness);
  analogWrite(led8, brightness);
  brightness = brightness + fadeAmount;
  if (brightness <= 0 || brightness >= 255) {
    fadeAmount = -fadeAmount;
  }
  // wait for 30 milliseconds to see the dimming effect
  delay(30);
}

Credits

Michael Portera

Michael Portera

4 projects • 11 followers

Comments