Hello friends,.
Today we are going to build a simple Arduino project, for a L.E.D.
VIP light system..
we use Arduino UNO board for our project..
first, we need to download the Arduino I.D.E...
Search for the Arduino I.D.E...
We use the Arduino for the windows operating system..
Click the 'just download' button to start the download..
the Arduino I.D.E.
will be downloaded to the PC..
Open the downloaded executable file, and click the 'I agree' button to start the program
setup..
Click the next button and the install button.. the Arduino I.D.E.
will be installed on your pc in a few minutes..
Open the Arduino I.D.E. from the start menu.
the Arduino sketch will be available for us to write our source code..
the method 'setup' is for setting the basic configuration for our program..
and the 'loop' method is for writing the running code of our program..
The loop method will continuously be called by the Arduino..
for the first time, we have to select the port for our Arduino board, from the tools
menu..
I use the blink sample code from the Arduino, and modify it as necessary for our VIP light
system..
I will give you the complete source code at the end of this video..
Let's compile our sample code, and verify it's working with our Arduino UNO board..
Yes, it works.. see the onboard L.E.D. is blinking..
We can add an external L.E.D.s for our project..
I use a small breadboard to attach L.E.D.'s..
I also add a 100 ohms resistor in series, to control the current for our L.E.D.'s..
we need some connectors to attach this to our Arduino board..
I connect the negative connector to the ground pin of arduino UNO,. and to the positive connector
to the13th pin of our arduino board..
Now, our external L.E.D. is also blinking..
Now we make some changes in delay times and upload it again to our arduino board..
I remove all the extra comments from our code for now..
the digitalwrite method is used to set the pin number 13 to the state of high by this
line of the code.. after that, we need to put some delay to make
things visible,. and the turn the L.E.D. to off state by setting the pin number 13 to
low..
we can add one more pin for our light system.
we use the pin number 12 for our second L.E.D...
I first set the pin 12 to high, delay, set the pin back to low, and delay again..
we need to set the pinmode of pin12, to output any state to that pin.. we use the setup method
to define the pin mode..
let's add the second L.E.D...
connect to the 12th pin of the arduino..
now, there is a delay between two L.E.D.'s.
we are going to remove this delay first..
I remove these two lines of delays..
now we can copy and paste the first L.E.D.
code to repeat the first L.E.D.
more than one blink like this.. we also add a delay between each blink..
do the same thing for the second L.E.D...
let's compile and run our arduino script..
we add one more repeat for both L.E.D.'s..
we also can change the delay time as necessary..
Please see the description for full source code..
If you like to see more arduino projects and source codes, please subscribe to project
weekend channel by clicking the subscribe button below.
Please dont forget to like, share and comment your ideas about the video, and content you
are looking for..
Thank you for watching..