Arnov Sharma
Published © GPL3+

Obito Uchiha PCB Badge

Made a PCB Badge of my favorite character from Naruto Anime! Driven by an Attiny13A

BeginnerFull instructions provided1 hour584
Obito Uchiha PCB Badge

Things used in this project

Hardware components

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

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Custom parts and enclosures

Gerber data for PCB

Schematics

sch

Code

code

C/C++
int pinsCount=3;                        // declaring the integer variable pinsCount
int pins[] = {0,1,2};          // declaring the array pins[]


void setup() {
  pinMode(0, OUTPUT);
  pinMode(1, OUTPUT);
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
                  
}

 
void loop() {
  for (int i=0; i<pinsCount; i=i+1){    // chasing right
    digitalWrite(pins[i], HIGH);         // switching the LED at index i on
    delay(70);                          // stopping the program for 100 milliseconds
    digitalWrite(pins[i], LOW);          // switching the LED at index i off
  }
  for (int i=pinsCount-1; i>0; i=i-1){   // chasing left (except the outer leds)
    digitalWrite(pins[i], HIGH);         // switching the LED at index i on
    delay(70);                          // stopping the program for 100 milliseconds
    digitalWrite(pins[i], LOW);          // switching the LED at index i off
  }
digitalWrite(3, HIGH);
delay(1000);
digitalWrite(3, LOW);
delay(1000);
  

}

Credits

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

Comments