arduino_mastermind
Published © GPL3+

Decorative Christmas tree

A wave lit christmas tree makes your christmas cool!

BeginnerFull instructions provided241
Decorative Christmas tree

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LED (generic)
LED (generic)
×2
USB-A to B Cable
USB-A to B Cable
×1
Resistor 1k ohm
Resistor 1k ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Tape, Clear
Tape, Clear

Story

Read more

Schematics

christmas tree circuit

this is the circuit:

Code

christmas tree code

C/C++
code for the project:
// generated by mBlock5 for <your product>
// codes make you happy

#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>

void _delay(float seconds) {
  long endTime = millis() + seconds * 1000;
  while(millis() < endTime) _loop();
}

void setup() {
  pinMode(10,OUTPUT);
  pinMode(9,OUTPUT);
  while(1) {
      digitalWrite(10,1);
      _delay(0.3);
      digitalWrite(9,1);
      _delay(0.3);
      digitalWrite(10,0);
      _delay(0.3);
      digitalWrite(9,0);
      _delay(0.3);

      _loop();
  }

}

void _loop() {
}

void loop() {
  _loop();
}

Credits

arduino_mastermind
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.