How to design,program and manufacture traffic light
Get link
Facebook
X
Pinterest
Email
Other Apps
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.
How many LEDs are used in traffic light?
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
Are traffic lights AC or DC?
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.
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:
intredLed=2;// setting the value of redLed as 2.int YellowLed=3;// setting the value of blueLed as 3.intgreenLed=4;// setting the value of greenLed as 4.voidsetup(){// 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.}voidloop(){// 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 minutedigitalWrite(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
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:
Hello! guys,let us develop another real life project today. we are about to control any of our home electronics,lighting and power system with our smart phone . We are using a diffrent micro controller with wifi module called NodeMCU ESP8266 to hook up all our connection to cloud . In addition, we are using Blynk 2.0 as our mobile app to control all the embeded system from our smart phones. THE WORK FLOW IS AS FOLLOWING: CODE<------>NodeMCU ESP8266<---->CLOUD<---->BLYNK2.0<------>RELAYS<-->LOADS<--->CODE Circuit of the Blynk NodeMCU Home Automation projects The circuit is very simple, I have used D1, D2, D5 & D6 GPIO pins to control the 4-channel relay module. And the GPIO SD3, D3, D7 & RX are connected with the switches to control the relay module manually. I have used the INPUT_PULLUP function in Arduino IDE instead of using the pull-up resistors with each switch. As per t...
Comments
Post a Comment