Hackster is hosting Hackster Holidays, Ep. 4: Livestream & Giveaway Drawing. Start streaming on Wednesday!Stream Hackster Holidays, Ep. 4 on Wednesday!
Arnov Sharma
Published © MIT

Minecraft Torch

Made a Minecraft torch using 3D Printed parts and Attiny85 MCU

BeginnerFull instructions provided1 hour244

Things used in this project

Story

Read more

Custom parts and enclosures

Fusion360File

STEP FILE

Schematics

sch LED Board

sch Attiny Main board

Wiring

Code

code

C/C++
void setup() {
  pinMode(0, OUTPUT);
  pinMode(1, OUTPUT);
}

void loop() {
  // fade in LED connected to pin 9
  for (int i = 0; i <= 100; i++) {
    analogWrite(0, i);
    delay(10);
  }
  
  // fade out LED connected to pin 9
  for (int i = 100; i >= 0; i--) {
    analogWrite(0, i);
    delay(10);
  }
  
  // fade in LED connected to pin 10
  for (int i = 0; i <= 100; i++) {
    analogWrite(1, i);
    delay(10);
  }
  
  // fade out LED connected to pin 10
  for (int i = 100; i >= 0; i--) {
    analogWrite(1, i);
    delay(10);
  }
}

Credits

Arnov Sharma

Arnov Sharma

310 projects • 311 followers
Just your average MAKER

Comments