Hackster is hosting Impact Spotlights: Connectivity. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Connectivity. Stream on Thursday!
Arnov Sharma
Published © MIT

Minecraft Torch

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

BeginnerFull instructions provided1 hour288

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
347 projects • 354 followers
I'm Arnov. I build, design, and experiment with tech—3D printing, PCB design, and retro consoles are my jam.
Contact

Comments

Please log in or sign up to comment.