Patchr
Published © MIT

Shimmering Snowflake PCB Ornament

Give your tree some geek cred and build your PCB skills with this Shimmering Snowflake PCB Ornament.

BeginnerFull instructions provided1 hour997

Things used in this project

Hardware components

Patchr Snowflake PCB Kit
This kit contains everything you need to build your snowflake!
×1
ATtiny85
Microchip ATtiny85
×1
Resistor 10k ohm
Resistor 10k ohm
×1
High Brightness LED, White
High Brightness LED, White
×16
2032 Battery clip
×1
Slide Switch
Slide Switch
×1
Coin Cell Battery CR2032
Coin Cell Battery CR2032
×1
IC & Component Socket, 8 Contacts
IC & Component Socket, 8 Contacts
This is optional.
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
This is optional and only used if you want to reprogram the snowflake.
×1

Software apps and online services

Patchr
Patchr
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Wire Cutter / Stripper, 5.25 " Overall Length
Wire Cutter / Stripper, 5.25 " Overall Length

Story

Read more

Code

Snowflake_Flicker

Arduino
You can edit random number values to shimmer it faster or slower.
//PCB Snowflake Flicker Kit
//MCU: ATtiny85
//Software: Patchr.io
//By: Eric Schneider, 2019
//#happyholidays

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


void setup() {
  
  pinMode(ledPin1, OUTPUT); //set the pin mode to output for all pins
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);

  pinMode(ledPWM1, OUTPUT);
  pinMode(ledPWM2, OUTPUT);

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

}

void loop() {
  
  analogWrite(ledPWM1, random(50, 120));
  analogWrite(ledPWM2, random(50, 120));

  delay(random(100));

}

Credits

Patchr

Patchr

4 projects • 16 followers
Patchr makes PCB design a snap. With our software, you can go from idea to a completed board in days, not weeks.

Comments