HOW DOES IT WORK?
Basically, LED s are just tiny light bulbs that fit easily into an electrical circuit. But unlike ordinary incandescent bulbs, they don't have a filament that will burn out, and they don't get especially hot. They are illuminated solely by the movement of electrons in a semiconductor material, and they last just as long as a standard transistor. The lifespan of an LED surpasses the short life of an incandescent bulb by thousands of hours. Tiny LED s are already replacing the tubes that light up LCD HDTV s to make dramatically thinner televisions.
CONNECT ACCORDINGLY AS SHOWN IN THE FIGURE
*THINGS REQUIERD
1.Arduino Uno (The brain)
2.3 LED (Red/Yellow/Green)
3.BreadBoard
4.Header Pin *Optional (By using Header Pin we can make any projects using Male to Female Jumper Wire) >Jumper Wire (Male to Female)
5.Glue Gun Using Header Pin
STEPS TO MAKE THIS PROJECT
Step 1: Place the Header Pin into the pins of Arduino After it glueing it will look like this.
Step 2:Using Glue Gun, Glue the header pin to Arduino so that it does'nt become loose.
HOW TO PROGRAM THIS ARDUINO
<p>//THE CREATORS OF THE WORLD <br>//Arduino Traffic Light! </p><p>//visit THE CREATORS OF THE WORLD for more Cool projects " https://THEIVENTORS.BLOGSPOT.COM "</p><p>// <br>void setup() { // initialize digital pin 2,3,4 as an output. pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); }</p><p>// the loop function runs over and over again forever void loop() { digitalWrite(2, HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(2, LOW); // turn the LED delay(1000); // wait for a second</p><p> digitalWrite(3, HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(3, LOW); // turn the LED off delay(1000); // wait for a second</p><p> digitalWrite(4, HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(4, LOW); // turn the LED off delay(1000); // wait for a second
}</p>
No comments:
Post a Comment