Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Arnov SharmaMakerPals
Published © LGPL

Goku PCB Badge

Made a PCB badge of our beloved hero Goku, LEDs sequence will look like Kamehameha in this badge.

BeginnerFull instructions provided1 hour2,401

Things used in this project

Hardware components

Microchip attiny84
×1
PCBWay Custom PCB
PCBWay Custom PCB
×1
SMD LEDs Blue 0603
×21
8205S Mosfet IC
×5
10K Resistance 0603
×10
1k resistance 0603
×1
THT SPST Switch
×1
Coin Cell Battery Holder
Coin Cell Battery Holder
×1
Coin Cell Battery CR2032
Coin Cell Battery CR2032
×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=5;                        // declaring the integer variable pinsCount
int pins[] = {A0,A1,A2,A3,A4};          // declaring the array pins[]
void setup() {
pinMode(A0, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A3, OUTPUT);
pinMode(A4, 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
}
}

Credits

Arnov Sharma

Arnov Sharma

310 projects • 311 followers
Just your average MAKER
MakerPals

MakerPals

6 projects • 4 followers
Maker from India. We always love electronics and innovations. Join us for any project!

Comments