Skip to main content

Traffic Light System using Arduino

                   Traffic Light System using Arduino



ARDUINO:


                  Arduino is Basic system which is used for the controlling various system that does lots of work.The arduino develope in 2003,the arduino is basically a microcontroling unit the code return in the form 8 bit ,32 bit which is return in the language of C and C++`The RAM in arduino is SRAM.

Traffic Light System:


                      The traffic light system is which is commonly known System that is used in controlling traffic and accidents in Junction roads.Thus we are going to make this in the arduino system which is the easiest way of making the Automatic Traffic light system.

Components Required:


                   1)Arduino
                   2)LEDS=Green,Yellow,Red
                   3)Breadboard
                   4)Connecting wires

Wiring Diagram:



Procedure:


         Connect the green,red,yellow to the Breadboard and connect the three led Gnd to the Gnd pin of the Arduino.At first connect the Green Led to the 2 pin and next connect the Yellow Led to the 3 pin and atlast connect the Red Led to the 4 pin of the Arduino.And copy the code from from the below given and upload the code to the Arduino.Now the circuit works. 

SOURCE CODE:


int redled = 3;//NBSL Commercial
int yellowled = 4;
int greenled = 5;
void setup() {
  pinMode (3, OUTPUT);
  pinMode (4, OUTPUT);
  pinMode (5, OUTPUT);
 
}
void loop() {
Serial.begin(9600);
Serial.println("STOP");
 digitalWrite (redled, 1);
 delay(9000);
    digitalWrite (redled, 0);
    Serial.println("READY TO MOVE"); 
      digitalWrite (yellowled, 1);
   delay (3000);
   digitalWrite (yellowled, 0);
   Serial.println("GO AHEAD");
    digitalWrite (greenled, 1);
   delay (9000);
   digitalWrite (greenled, 0);
   delay (500);
   digitalWrite (greenled, 1);
   delay (500);   
   digitalWrite (greenled, 0);
   delay (500);
   digitalWrite (greenled, 1);
   delay (500);
   digitalWrite (greenled, 0);
  delay (500);
 digitalWrite (greenled, 1);
   delay (500);
   digitalWrite (greenled, 0);
     delay (500);
 digitalWrite (greenled, 1);
   delay (500);
   digitalWrite (greenled, 0);


  
   
}

CHECK HOW IS IT WORK:








                                                POWERED BY
                                                         NBSL

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment

Popular posts from this blog

India Space Research

INDIAN SPACE RESEARCH                                      The Technology is developing day by day and new innovations are coming out day by day. Many things are runs with help of satellites for example TV receiver, Weather Forecasting, Global positioning systems(GPS), Defense purposes. Thus Aerospace development is very important for an country. INDIA , places 5 th place in space developments. The ISRO is the Indian organization of space research Developments. What is ISRO? ISRO expands as Indian Space Research Organization, which is the Indian space Development organization. ISRO Ranks 5 th place in space research. Who founded ISRO?  Indian Space Research Organization (ISRO) was founded by Jawaharlal Nehru, who is the First Prime Minister of INDIA and Scientist Vikram Sarabhai, who is known as the father of space programs in the year 1962 as Indian National Com...

Creating Artificial Planet

Already our Earth is loosing the habitable tendency due to the deforestation, Climate changes, etc. These all causes our Earth as inhabitable planet, for life better we should move into another planet to move into another planet we could create our own planet. But, it is possible to build a planet as like Earth with Atmosphere, Air, Water, Moderate Temperature, Gravity, etc. Theoretically, it is said we could build a planet like Earth. We could build our own planet right in our solar system for constant temperature as we get in our planet “Earth”. We could probably use asteroids in our solar system to build our artificial planet, but we are having only lower amount of asteroids in our solar system so we cannot build a planet as we expected so we are going to use OORT CLOUD to build our Artificial Planet but problem with this OORT CLOUD is it is so far from our Earth, we haven’t still invented that fast vehicle to bring that materials here, so this case could not help us. We have ...

SOIL MOISTURE SENSOR USING ARDUINO WITH CONNECTION AND CODE

SOIL MOISTURE SENSOR USING ARDUINO WITH CONNECTION AND CODE Soil moisture sensor is the sensing element which determine the volumetric amount of water in the soil .The sensor sense the amount of water by passing an minute voltage at its terminal .Then when the water presence is detected it send an minute voltage to the amplifying circuit and it is further amplified and send to the Arduino. Components Required:                       1) Arduino                       2) Soil Moisture sensor                       3) Led                       4) Connecting wires...