How to design,program and manufacture traffic light

 In today's article. we are doing something special. We are about to learn hardware programming,bulding technology ,electrical connection and mechanical industral application. If that sound interesting ?, let us  start the project. We need all this following materials to design,program and manufacture professional traffic light.

What are the parts of traffic light system?
A modern traffic signal system consists of three basic subsystems: the signal lights in their housing, the supporting arms or poles, and the electric controller. The signal lights and housing are known as the signal light stack.


MECHANICAL PARTS:

  •  Housing, 
  • The supporting arms or poles( pipe welded mil steel,length= between 9 and 14 feet.)
  • Bolts, long stud & nuts

BULDING TECHNOLOGY PARTS:

  •  SAND, 
  • CEMENT
Chemical composition
Portland cement is made up of four main compounds: tricalcium silicate (3CaO · SiO2), dicalcium silicate (2CaO · SiO2), tricalcium aluminate (3CaO · Al2O3), and a tetra-calcium aluminoferrite (4CaO · Al2O3Fe2O3).
  • Mixture of concrate to it's nearest ratio.

ELECTRICAL PARTS:

  •  Solar panel(60w) X 2
  • Lead acid accumulator(12v,200AVH) X1
  • MCB 62A x 1
  • 1.5 mm, 1 core  red & black wire(length= between 9 and 14 feet.)
  • Plastic box for housing.
  • wire striper and black tape
  • conduit pipe(length= between 9 and 14 feet.)
PROGRAMMING PARTS:
  • ARDIUNO UNO(micro controller board) X 1
  • connecting wires
  • Relays (5v dc -24vdc)
  • 100w invertal
  • 220V AC to 5v phone charger) for micro controller power.
  • Led 0.2A,5mm (red,yellow and green) 
  • Resistor(330 ohms)
  • AC to dc converter.
  • Traffic ligth (red,yellow and green)
The LED traffic signal bulb uses approximately 25 watts of power, compared to the average of 100 watts of power used by the traditional incandescent halogen bulb. Each traffic signal operates 24-hours per day, every day of the year.

Close up of red LED traffic signal. The 680 LEDs draw a total of 25 watts of power. Click here to view emission spectra of traffic signals, both incandescent and LED.
we have three diffrent colors. Red,Yellow and Green: 
Numbers of each led = 680/3 = 226.7 each.
Watt consume by each leds =25watts/3 = 8.333watt DC
P=IV
V= 24v,P= 8.33w
I =P/V = 8.33/24  =0.3470833333333333A
The traffic signal power supply is an electrical device in the control cabinet that converts AC to correct DC voltages for various devices in the traffic signal cabinet. The nominal voltage of the power supply is 24VDC.
ARDIUNO ,RESISTOR AND LED CONNECTION



3 CHANNEL'S  RELAY

SOLAR PANEL



ARDIUNO IDE



SCHEMATICS

Oder your ardiuno uno micro controller on any online electronic store around you. set up your board by following the steps below;
  • connect 5v dc charger to the 220v ac power supply
  • connect the 5v dc output to your ardiuno board(positive v+ and negative v-)
  • connect all the negative terminal of the leds together and connect it to the GND v- of the ardiuno uno
  • connect 330 ohms resistors to each positive terminal of the leds(red,yellow and green)
  • connect the resistors to GPIO pin(2,3,4) of the ardiuno in respect to the code below.
  •  connect each positive terminals of the leds to 3 diffrent relays(5v dc to 24v dc)
  • connect your ardiuno board with USB to your computer to uplaod the below  code into it.
NOTE: you are using an ardiuno libery to write your code, you can use both downloaded desktop app or  online ardiuno IDE.
Connect your ardiuno board to your computer or online IDE . The option is provided in your IDE(integrated developer enviroment). whe are using C programming language to develop this project. You can also use node.js, pythone and c++ to write your code.
CODE:
int redLed = 2; // setting the value of redLed as 2.
int YellowLed = 3; // setting the value of blueLed as 3.
int greenLed = 4;// setting the value of greenLed as 4.

void setup() {
  // put your setup code here, to run once:
pinMode (redLed,OUTPUT);// Defined redLed as output.
pinMode (yellowLed,OUTPUT);// Defined blueLed as output.
pinMode (greenLed,OUTPUT);// Defined greenLed as output.
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite (redLed,HIGH);// Sending a signal to Pin redLed to Light Up.
delay (600000);// Giving a Gap of 3000 Milliseconds, 1 second =  1000 milliseconds(we are using 15 minute.
digitalWrite (redLed,LOW);
digitalWrite (YellowLed,HIGH);
delay(3000);//5 minute
digitalWrite(blueLed,LOW);
digitalWrite(greenLed,HIGH);
delay(600000);digitalWrite(greenLed,LOW);}
Read more about ardiuno embeded system and programming here:https://create.arduino.cc/projecthub/projects/tags/arduino

About Me


Akinpelu Abiodun


I am Akinpelu Abiodun Moses by name. I am a programmer and a graphics designer.
Follow my google website link to know more about me:


Popular Post

  • Wifi hacking with python
  • Complete html,css and javascript web page
  • Facebook login and sign up form with html,css and javascript 
  • Resturant,college,hostital and pharmercy store management system with python
  • online shopping website with html,css and javascript 
  • Text to speech app with html,css and javascript 
  • Online text editor with html,css and javascript 
  • Quiz app with html,css and javascript 
  • To -do app with html,css and javascript 
  • Traffic ligth project
You can contact me for there source code on my website:




Comments

Popular posts from this blog

Home Automation using NodeMCU ESP8266 and Blynk 2.0(IOT)