Anda di halaman 1dari 6

Contents

Introduction...................................................................................................................2 Design and Development...............................................................................................3 Construction.................................................................................................................10 Conclusion ...................................................................................................................12 References....................................................................................................................12 Figure 1 - Road Layout ..................................................................................................3 Figure 2 - Flow Diagram................................................................................................4 Figure 3 - Sequence Diagram ........................................................................................4 Figure 4 - Circuit Diagram.............................................................................................9 Figure 5 - Prototype .....................................................................................................10 Figure 6 - The Completed Project................................................................................11 Table 1 - Parts List.......................................................................................................10

Introduction
With this project entitled Traffic lights we wanted to develop a platform to experiment with traffic flow. The starting point was to create a simple set of traffic lights for a T junction commonly found here in the Philippines. The lights also include a filter light on one set of lights allowing traffic to turn from the main road into the side road. The lights change for a set period of time and then change back. See the flow chart later for timings and sequence. The idea is to expand the project later to make the traffic lights more intelligent. As it stands the lights do not detect traffic flow and cannot allow for heavy traffic coming from any direction. The traffic lights are composed of 3 sets of light that will use a PIC16f84A in order to execute certain codes that will able program the traffic lights. Beyond this project we were able to have use the Assembly language for a PIC16f84a

Design and Development


We started the project by researching the project made by Mr. Perry Andrew. His project he used a C++ code while with our project we used the assembly language design. Then by reconstructing the drawing the road layout of Mr. Andrew, showing the junction complete with traffic lights. I labeled the different directions A, B & C with C being the side turning and B having the extra filter light. This drawing is shown below:

Figure 1 - Road Layout

The filter light is used to allow traffic to turn into the side road from direction B. Traffic coming from direction A is stopped and the filter light indicates it is safe for traffic from direction B to turn across the main road into the side turning. From the road layout I could determine the basic steps required for the simple simulator: 1. Initialize the PIC 2. Change the lights on the main road to green 3. Wait for a car to arrive in the side turning 4. Turn on the filter light for a period of time 5. Change the lights in side turning to green for a period of time 6. Return to step 2 The flow diagram below contains this logic complete with the times:

Figure 2 - Flow Diagram

The actual change of the traffic lights from red to green and back is not shown in the flow diagram. The sequence in Britain is RED RED & AMBER GREEN and GREEN AMBER RED. This is shown in the diagram below:

Figure 3 - Sequence Diagram

The reason red and amber are both lit together is so you can tell the next light in the sequence is green and not red.

Figure 4 Circuit Diagram

Figure 5 Prototype

We gather components and constructed the circuit in a breadboard to test the project. This is an easy way to test all the components and program on the PIC and gives us idea in creating the final construction.

Figure 6-The completed Project

This should be the project look like after completion

Conclusion This project aims to make a device that can be used for the betterment of traffic light system in a T shaped junction on roads. This device serves as a simulator for this type of road setup.

Anda mungkin juga menyukai