Skip to main content

social

pop

Traffic light control system project simulation

Traffic Light Control System Design Project

Traffic lights, also known as traffic signals, traffic lamps, traffic semaphore, signal lights, stop lights and robots, and also known technically as traffic control signals are signaling devices positioned at road intersections, pedestrian crossings and other locations to
control competing flows of traffic. The first manually operated gas lit traffic light was installed in 1868 in London, though it was short-lived due to explosion. The first safe, automatic electric traffic lights were installed in the United States starting in the late 1890s
Traffic lights alternate the right of way accorded to road users by displaying lights of a standard colour (red, yellow, and green) following a universal colour code. In the typical
sequence of colour phases:

  • the green light allows traffic to proceed in the direction denoted,
  • the yellow light provides warning that the signal will be changing from green to red.

Actions required by drivers vary, with some jurisdictions requiring drivers to stop

  • a flashing yellow indication is a warning signal
  • the red signal prohibits any traffic from proceeding
  • a flashing red indication is treated as a stop sign

Traffic signals will go into a flashing mode if the controller detects a problem, such as a program that tries to display green lights to conflicting traffic. The signal may display flashing yellow to the main road and flashing red to the side road, or flashing red in all directions.
Flashing operation can also be used during times of day when traffic is light, such as late at night.

TYPES
Traffic lights can have several additional lights for filter turns or bus lanes.

Single aspects
The simplest traffic light comprises either a single or a pair of colored aspects that warns any
user of the shared right of way of a possible conflict or danger.

  • Flashing red: treated as a stop sign. Also can signal the road is closed.
  • Flashing yellow: caution, crossing or road hazard ahead.
  • Flashing green: varies among jurisdiction; can give permission to go straight as well as make a left turn in front of opposing traffic (which is held by a steady red light), can indicate the end of a green cycle before the light changes to a solid yellow, or indicates the intersection is a pedestrian crosswalk.
Dual aspects
These are often seen at railway crossings, fire stations, and at intersections of streets. They flash yellow when cross traffic is not expected, and turn red to stop traffic when cross traffic occurs. They are also used on ramp metering, where motorists enter a freeway in heavy
traffic. Only one driver per lane goes per green.

Three or more aspects
The standard is the red light above the green, with yellow between.
Other signals are sometimes added for more control, such as for public transportation and permissive turns.
The three-aspect standard is also used at locks on the Upper Mississippi River. Red means that another vessel is passing through. Yellow means that the lock chamber is being emptied
or filled to match the level of the approaching vessel. After the gate opens, green means that the vessel may enter.

PRINCIPLE OF FUNCTIONING OF THE PROJECT
The project work in such a manner that:
-Red light ON stop traffic in the direction indicated
-Yellow light flash indicate that light will be changing from green to red
-Green light ON mean proceed traffic in the direction indicated

MATERIAL TO BE USED
With respect to the expectations from our project, we decided to use the following
materials;
  1. PIC 16F84A micro controller
  2. Traffic Light. We need four traffic light consisting of red, yellow, and green light
  3. Resistors: 10KΩ to protect the microcontroller it is connected to the MCLR port pin.
  4. Crystal: 4Mhz crystal to provide the clock signal to the microcontroller.
  5. Capacitor: 120pF used to stabilize the oscillations produced by the crystal.
  6. Supply: We supply the microcontroller with 5V DC.
  7. A round about: This is where we need to implement if implementation is required.
ALGORITHM OF THE PROGRAM
  1. set the direction of pins
  2. configure the direction of port (all port are clear since they are all output)
  3. clear the output port
  4. Update the output
  5. goto to 4
DIGITAL REPRENSTATION OF THE PROCESS


When green “f” is ON, red “a” is off. After a time delay of 30s, yellow “e” comes on while
green f is still on. After a delay of 10s, green f and yellow e go off and red d and green c come
on. After a delay of 30s, yellow b comes on while green c is still on, after a delay of 10s, the
process restart.
Time at which green stay on equal to the time at which red is on plus yellow on.

FLOW CHART OF PROGRAM


C PROGRAMMING UNDER CCS C

#include "C:\Users\user\Documents\MY FIRT PROJECT IN CCS\CC PROGRAM FOR
CA.h"
void main()
{
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
// TODO: USER CODE!!
SET_TRIS_b(0X00); //setting direction of pinb AS OUTPUT PIN
output_b(0x00); // clearing output port b
for(;;) // infinite loop
{
output_b(0x21); //set output to 0X21
delay_ms(30000); // wait for 3s
output_b(0x30);
delay_ms(10000);
output_b(0x0c);
delay_ms(30000);
output_b(0x06);
delay_ms(10000);
}
}

WIRING DIAGRAM IN PROTEUS





Popular posts from this blog

GCE QUESTIONS AND SOLUTIONS FOR ELECTRICAL POWER SYSTEMS

 DOWNLOAD GCE PAST QUESTIONS AND SOLUTIONS FOR EPS POWER ELECTRONICS  Download 1     Download 1b Download 2     Download 2b      Download 2C Download 3 AUTOMATIC CONTROL OF ELECTRICAL MACHINES Download 1 Download 2 Download 3      Download 3b Download 4      Download 4b    2020 DESIGN OF ELECTRICAL INSTALLATION Download 1 Download 2 Download 3      Download 3b      Download 3C      Download 3D CIRCUIT ANALYSIS Download 1 Download 2 Download 3 Download 4 ENGINEERING SCIENCE Download 1 2019 Download 2 2023 paper 1 Download 3   MOCK      Download 3B  Download 4         Download 5          Download 6 Download 7   ITV ELECTRICAL AND ELECTRONIC CIRCUIT  Download 1 ELECTRICAL DIAGRAM Download 1   CAP ELECTRICAL TECHNOLOGY AND DIAGRAM Download 1 Download 2   ITV ELECTRICAL POWER SYSTEMS SOLUTIONS Download Solutions ELECTRICAL MACHINES  Download 1  ITV Download 2   MOCK Download 3   EE4 ENGINEERING DRAWING Download 1 ITV SOLUTIONS CIRCUIT THEORY Download 1

Download GCE syllabus | scheme of work all subjects

GCE syllabus secondary education Cameroon  570 Mathematics ♻️DOWNLOAD 570 Math 📲 575 Additional Mathematics ♻️DOWNLOAD Additional Mathematics📲 775 Further Math 🆓 Download Further Mathematics📲 Physics Ordinary Level 🆓 Download Physics Ordinary Level 📲 Physics Form 3-5 🆓 Download Physics Form 3 to Form 5 📲 Physics New Form 1 to 2 🆓Download Physics Form 1 and 2 📲 530 English Language 🆓 Download English Language 📲 540 Food and Nutrition 🆓DOWNLOAD FOOD AND NUTRITION 📲 545 French 🆓DOWNLOAD FRENCH 📲 590 Logic 🆓 LOGIC 📲 Chemistry Form 1 to Upper Six 🆓 DOWNLOAD CHEMISTRY Form 1 to U6📲 Chemistry Second Cycle 🆓Download CHEMISTRY Second Cycle📲 Geography  🆓DOWNLOAD GEOGRAPHY 📲 Geography Form 3-5 🆓DOWNLOAD GEOGRAPHY Form 3 to 5📲 History, Geography, Citizenship Form 1-2 🆓Download HISTORY, Geography, CITIZENSHIP📲 Geology 🆓Download  GEOLOGY 📲

GCE Advanced Level Past Questions Power Electronics

  GCE Advanced Level Past Questions   Technical and Vocational Education Examinations Electrical Power Systems EPS Power Electronics Specialty Name (Specialty Code) Electrical Power Systems EPS (F3) Subject Title   Power Electronics Paper Nº   2 Subject Code Nº 7235  1.  Control of a D.C motor          The circuit shown in figure 1, include the control and the power circuit of a DC motor to make the up and down movements of a system. All the OP-AMP and switches are ideal a)   Study of the control circuit (OA1; R’s and (AO2). i)       Give the operating mode of the operational amplifiers (OA1; R’s) and (AO2).                  ( 6 marks) ii)      prove that the expression of the voltage at the OA1  inverting input terminal in function of V 1  and V 01  is  V- = ( V 1  + V 01 ) / 2         (6 marks) iii) Prove that the expression of the voltage a