Eric Schneider
Published © GPL3+

PCB Snowflake Ornament

A PCB snowflake ornament that stands out on any Christmas tree with the firepower of 16 LEDs.

IntermediateFull instructions provided2 hours1,795
PCB Snowflake Ornament

Things used in this project

Hardware components

5 mm LED: White
The amazon link is for 100 LEDs, I like to buy a lot, you never know when you need to throw some LEDs on a project.
×16
Slide Switch
Slide Switch
×1
ATtiny85
Microchip ATtiny85
×1
Coin Cell Battery CR2032
Coin Cell Battery CR2032
×1
CR2032 Battery Clip
×1

Software apps and online services

Patchr.io
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Bantam Tools Desktop PCB Milling Machine
Bantam Tools Desktop PCB Milling Machine
As an alternate you can always order your boards from OSHPark.com
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Snowflake Schematics in Patchr

Code

PCB Snowflake Flicker

Arduino
//PCB SNOWFLAKE Flicker
//MCU: ATtiny85
//By: Eric Schneider 2018

int ledPWM1 = 0;
int ledPWM2 = 1;
int ledPin1 = 2;
int ledPin2 = 3;

void setup() {

  pinMode(ledPin1, OUTPUT); //set the pin mode to output 
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPWM1, OUTPUT);
  pinMode(ledPWM1, OUTPUT);

  digitalWrite(ledPin1, HIGH); //turn on the first 2 sets of LEDs
  digitalWrite(ledPin2, HIGH);
}

void loop() {
  analogWrite(ledPWM1, random(120)+50); //randomly flicker the LEDs
  analogWrite(ledPWM2, random(120)+50);

  delay(random(100)); //delay this loop at a random value from 0 to 100

}

Credits

Eric Schneider

Eric Schneider

6 projects • 24 followers
Maker + Artist

Comments