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...

CONTACTLESS VOLTAGE TESTER/INDICATOR CIRCUIT

                           CONTACTLESS VOLTAGE TESTER/INDICATOR CIRCUIT                           The contactless voltage tester circuit is which indicates the presence of voltage without touching the voltage line.This is done with help of the transistors.Thus it indicates the voltage folw in the circuit. COMPONENTS REQUIRED:                                       1)BC547 transistor-2                    2)RESISTORS-1 MEGA OHM,100/10K OHM,200 OHM   ...

Top 5 Expensive Cars in the World

5) Bugatti Veyron The Bugatti Veyron is a mid Engine sports car designed and developed by Volkswagen group and manufactured in Molsheim , France . The Top speed of the Bugatti Veyron is 407 km/h and it has 7 Speed direct Shift Automatic Transmission. The Designer of Bugatti Veyron is Jozef Kaban. The Price of Bugatti Veyron is approximately $1.7 million (Rs 12 crore). 4) Aston Martin Valkyrie The Aston Martin Valkyrie is manufactured by Aston Martin and it is the limited production of hybrid electric sports car. The maximum speed of Aston Martin Valkyrie is 402 km/h and it has a 7 speed Ricardo dual clutch transmission. The designer of Aston Martin Valkyrie is Adrian Newey. The price of Aston Martin Valkyrie is approximately $3.2 million (Rs 22 crore). 3) Lamborghini Veneno Roadstar The Lamborghini Veneno Roadstar is manufactured by Lamborghini and only 9 units of Lamborghini Veneno Roadstar were and 8 of them were sold and 1 remained at the facto...