Introduction:-



Led Tree!!! This project is a combination of Art and Electronics and Coding. Here We will Build a tree using some Aluminium wire, and we will use about 100 different types of led, which will act as Leaf for our Tree after we will code some sequence in Arduino to light up the LEDs of the tree in some exciting patterns. Let's Do something interesting.



Parts Required:-



  1.  20 * 3mm Red LED


  2. 20 * 3mm Green LED






  1. 20 * 3mm Yellow LED


  2. 20 * 3mm Blue LED


  3. Single Strand Wire Approximately 20 meters

  4. 4 * 27 Ohm Resistor


  5. Arduino Uno


  6. Coated Copper Wire.




Procedure:-





  • First of all cut 50 pieces of single strand wire of length 45cm.





  • Now Cut the Vcc and GND of all LEDs in such a way that GND should be greater than the length of Vcc Strand of the LEDs.


  • Now set all the Cutted Single strand wire and fold them from the center and twist the wire bundle thrice.Similarly, continue this process until the optimum tree structure gained.

  • First all solder all the Green LEDs GND strand to the tree body.


  • Now with the help of Coated copper wire connect all the Vcc Strands of the Green LEDs to make a common Vcc for all the Green LEDs.


  • Similarly, Repeat the Process for Red LEDs, Blue LEDs, and Yellow LEDs.


  • Now Connect 27 Ohm Resistor to Each Common Vcc wire of the LEDs.


  • Now Connect  a  wire from the Body of the tree to the GND of the Arduino Uno, Red LEDs common Vcc pin to the Pin 11 of the Arduino Uno, Yellow LEDs Common Vcc wire to the Pin 10 of the Arduino Uno, Blue LEDs common Vcc wire to the Pin 9 of the Arduino Uno, Green LEDs common Vcc wire to the Pin 8 of the Arduino Uno.


  • Now Upload the Arduino Code to Your Arduino Uno:-  



  • /* http://www.beginnertopro.in
    * This Code is written by Sai Tat Sat Mishra.
    */
    int red_led=8;
    int green_led=9;
    int blue_led=10;
    int yellow_led=11;
    void setup(){
    // put your setup code here, to run once:
    pinMode(red_led,OUTPUT);
    pinMode(green_led,OUTPUT);
    pinMode(blue_led,OUTPUT);
    pinMode(yellow_led,OUTPUT);
    }
    void loop() {
    digitalWrite(red_led,HIGH);
    delay(500);
    digitalWrite(red_led,LOW);
    delay(10);
    /////////////////////////////////
    digitalWrite(green_led,HIGH);
    delay(500);
    digitalWrite(green_led,LOW);
    delay(10);
    //////////////////////////////
    digitalWrite(blue_led,HIGH);
    delay(500);
    digitalWrite(blue_led,LOW);
    delay(10);
    ///////////////////////////
    digitalWrite(yellow_led,HIGH);
    delay(500);
    digitalWrite(yellow_led,LOW);
    delay(10);
    ////////////////////////////////////////////////////////////////////////
    digitalWrite(red_led,HIGH);
    delay(400);
    digitalWrite(red_led,LOW);
    delay(10);
    /////////////////////////////////
    digitalWrite(green_led,HIGH);
    delay(400);
    digitalWrite(green_led,LOW);
    delay(10);
    //////////////////////////////
    digitalWrite(blue_led,HIGH);
    delay(400);
    digitalWrite(blue_led,LOW);
    delay(10);
    ///////////////////////////
    digitalWrite(yellow_led,HIGH);
    delay(400);
    digitalWrite(yellow_led,LOW);
    delay(10);
    /////////////////////////////////////////////////////////////////////
    digitalWrite(red_led,HIGH);
    delay(300);
    digitalWrite(red_led,LOW);
    delay(10);
    /////////////////////////////////
    digitalWrite(green_led,HIGH);
    delay(300);
    digitalWrite(green_led,LOW);
    delay(10);
    //////////////////////////////
    digitalWrite(blue_led,HIGH);
    delay(300);
    digitalWrite(blue_led,LOW);
    delay(10);
    ///////////////////////////
    digitalWrite(yellow_led,HIGH);
    delay(300);
    digitalWrite(yellow_led,LOW);
    delay(10);
    ///////////////////////////////////////////////////////////////////////////
    digitalWrite(red_led,HIGH);
    delay(200);
    digitalWrite(red_led,LOW);
    delay(10);
    /////////////////////////////////
    digitalWrite(green_led,HIGH);
    delay(200);
    digitalWrite(green_led,LOW);
    delay(10);
    //////////////////////////////
    digitalWrite(blue_led,HIGH);
    delay(200);
    digitalWrite(blue_led,LOW);
    delay(10);
    ///////////////////////////
    digitalWrite(yellow_led,HIGH);
    delay(200);
    digitalWrite(yellow_led,LOW);
    delay(10);
    ///////////////////////////////////////////////////////////////////////////////
    for(int i=0;i<10;i++){
    digitalWrite(red_led,HIGH);
    delay(100);
    digitalWrite(red_led,LOW);
    delay(5);
    /////////////////////////////////
    digitalWrite(green_led,HIGH);



    delay(100);



    digitalWrite(green_led,LOW);
    delay(5);
    ////////////////////////////
    digitalWrite(blue_led,HIGH);
    delay(100);
    digitalWrite(blue_led,LOW);
    delay(5);
    ///////////////////////////
    digitalWrite(yellow_led,HIGH);
    delay(100);
    digitalWrite(yellow_led,LOW);
    delay(5);
    }
    ////////////////////////////////////////////////////////////////////////////
    for(int i=0;i<15;i++){
    digitalWrite(red_led,HIGH);
    delay(50);
    digitalWrite(red_led,LOW);
    delay(5);
    /////////////////////////////////
    digitalWrite(green_led,HIGH);
    delay(50);
    digitalWrite(green_led,LOW);
    delay(5);
    //////////////////////////////
    digitalWrite(blue_led,HIGH);
    delay(50);
    digitalWrite(blue_led,LOW);
    delay(5);
    ///////////////////////////
    digitalWrite(yellow_led,HIGH);
    delay(50);
    digitalWrite(yellow_led,LOW);
    delay(5);
    }}


     



  • Now Connect your Arduino With the Power supply and Enjoy Your LED TREE.


For Making Watch This Video:-





Please Like, Share and Subscribe to support Us.