• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Mini Christmas Light With Arduino (Very Easy)

By Abhishek Ghosh August 1, 2015 6:10 am Updated on August 1, 2015

Mini Christmas Light With Arduino (Very Easy)

Advertisement

Here is a Mini Christmas Light With Arduino as Project Which Needs 3 Resisters and 3 LEDs, No External Power Supply. It Has 2 Blink Effects. This is great for the beginners and better than plain Blink that is supplied with the Arduino Software. It does not need external power means – it needs very less resources.

 

Mini Christmas Light With Arduino : Required Components

 

Frankly, at minimum you should have :

  1. One Arduino UNO board
  2. Some wires
  3. 3 LED Lights
  4. Two 220 Ohm resisters
  5. One 10K resister

But it is better to have a breadboard, Multimeter and typical Electronics DIY kit. It is not that, without these later 3 you can not play. We have a video to show you how it exactly looks like :

Advertisement

---

 

Mini Christmas Light With Arduino : Circuit

 

We have a circuit design for you :

Mini Christmas Light

It is quite easy. The basic line diagram will be like this :

Vim
1
2
3
4
5
LED1 ---(+)---[200 Ohm Resister]---- Pin 8
LED2 ---(+)---[200 Ohm Resister]---- Pin 7
LED3 ---(+)------------------------- Pin 12
 
LED1, LED2, LED3 ----(-)----[10K Ohm Resister]--- GND

All the three LED’s negative pole should be connected and attached to a 10K Ohm resister (it is needed for our later upgraded guides, you can actually omit the resister here) and the wire connecting to the resister will go to GND of Arduino board.

The first LED’s positive pole should be connected to a 220 Ohm resister and go to pin number 7 of Arduino Board.
The second LED’s positive pole should be connected to a 220 Ohm resister and go to pin number 8 of Arduino Board.
The third LED’s positive pole should be connected directly connected to pin number 12 of Arduino Board. Resister not required for this LED.

 

Mini Christmas Light With Arduino : Code

 

Here is the code snippet, you can actually get the whole project on GitHub and at FritZing as Mini Christmas Light Arduino UNO. We are writing the snippet here for documentation purpose.

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
void setup() {
  pinMode(13, OUTPUT); // on board LED OFF
}
 
void loop() {
  digitalWrite(13, LOW);   // declaired pin value pinMode
  delay(10);
// we will repeat the cycle for 6 times to create a visual impression, we will light up the 2nd blue LED at 3rd interval
// continuous blink starts
  digitalWrite(8, HIGH);   // LED on 8 ON
  delay(100);              // wait time
  digitalWrite(8, LOW);    // LED off
  delay(50);               // wait time
 
  digitalWrite(7, HIGH);   // LED on 7 ON
  delay(100);              // wait time
  digitalWrite(7, LOW);    // LED off
  delay(50); // wait time  
// add smoothing transition effect
  digitalWrite(8, HIGH);
  delay(50);
  digitalWrite(8, LOW);
  delay(50);  
// this is the second blue LED without any resister
  digitalWrite(12, HIGH);  
  delay(100);  
  digitalWrite(12, LOW);  
  delay(50);  
// again add smoothing transition effect
  digitalWrite(7, HIGH);
  delay(50);      
  digitalWrite(7, LOW);
  delay(50);
  
  digitalWrite(8, HIGH);
  delay(100);          
  digitalWrite(8, LOW);
  delay(50);      
 
  digitalWrite(7, HIGH);  
  delay(100);      
  digitalWrite(7, LOW);  
  delay(50);
  
  digitalWrite(8, HIGH);  
  delay(100);      
  digitalWrite(8, LOW);  
  delay(50);    
 
  digitalWrite(7, HIGH);  
  delay(100);  
  digitalWrite(7, LOW);  
  delay(50);
  
  digitalWrite(8, HIGH);  
  delay(100);  
  digitalWrite(8, LOW);  
  delay(50);
 
  digitalWrite(7, HIGH);  
  delay(100);  
  digitalWrite(7, LOW);  
  delay(50);
  
  digitalWrite(8, HIGH);  
  delay(100);        
  digitalWrite(8, LOW);  
  delay(50);    
 
  digitalWrite(7, HIGH);  
  delay(100);        
  digitalWrite(7, LOW);  
  delay(50);
  // continuous blink ends
  // now do a bit delayed lighting creating another effect
  
  digitalWrite(8, HIGH);   // LED on 8 ON
  delay(1000);              // wait time prolonged
  digitalWrite(8, LOW);    // LED off
  delay(50);               // wait time
 
  digitalWrite(7, HIGH);   // LED on 8 ON
  delay(1000);              // wait time prolonged
  digitalWrite(7, LOW);    // LED off
  delay(50); // wait time
  // give the second blue LED a shorter time to light up
  digitalWrite(12, HIGH);   // LED on 8 ON
  delay(100);              // wait time
  digitalWrite(12, LOW);    // LED off
  delay(50);  
 
}

Tagged With arduino easy christmas lights , ардуино гирлянда автоматическая скетч , проекты ардуино гирлянда
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Mini Christmas Light With Arduino (Very Easy)

  • Arduino and LED Bar Display : Circuit Diagram, Code

    Here is a Guide Explaining the Basics, Circuit Diagram, Code on Arduino and LED Bar Display. LED Bar Display is Actually Like Multiple LED.

  • Arduino Simple Music Analyzer VU Meter From Stereo Input

    In our old guide we made VU Meter using microphone and LEDs, also our Arduino door bell project have kind of VU meter with 3 LEDs. Now, our one reader asked how to create good looking but easy Music Analyzer or VU Meter using Audio input from devices like microphone out or smartphone’s USB out. […]

  • Arduino : Blink Two LEDs Alternatively

    Common Example of Arduino is To One LED. We Can Make Arduino To Blink Two LEDs Alternatively in Various Ways of Coding.

  • Arduino LDR/Photoresistor and LED Based Light Meter

    Exactly Like Basic Sound Meter With Microphone, We Can Build Arduino LDR/Photoresistor and LED Based Light Meter. Here is circuit & code.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy