
Arduino Christmas Ornament
thingiverse
Designed using Fusion 360. Print the top & bottom in your choice of color. Print the mid-section and lever in clear. Other things that you will need. Arduino Nano LED 3mm - 12pcs Screws, M3x8mm, Button Head or Socket Head - 4 Micro Switch - 1 Battery, 9v Battery Connector Silicone Wire, Various LED ground wires are soldered together in a circle LED + wires are fastened to PWM outputs, Opposite LEDs wired together as a pair I do not use resistors in this build. Instead, I use PWM to lower the current. Code to get you started: int On = 50; //Ms Time that the LED is on int cycle = 3; //# of times that the LED will flash void setup() { Serial.begin(9600); pinMode(3, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); } void loop() { if (cycle == 1) { analogWrite(3, 100); //Orange delay(On); analogWrite(3, 0); } if (cycle == 2) { analogWrite(5, 130); //Red delay(On); analogWrite(5, 0); } if (cycle == 3) { analogWrite(6, 220); //Purple delay(On); analogWrite(6, 0); } if (cycle == 4) { analogWrite(9, 100); //Blue delay(On); analogWrite(9, 0); } if (cycle == 5) { analogWrite(10, 90); //Green delay(On); analogWrite(10, 0); } if (cycle == 6) { analogWrite(11, 110); //Yellow delay(On); analogWrite(11, 0); } cycle = cycle + 1; if (cycle > 6) { cycle = 1; } }
With this file you will be able to print Arduino Christmas Ornament with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Arduino Christmas Ornament.