Capstone Emergency Lighting Project

STLS

Safe Traffic Light System

Tuesday, May 22, 2007



Project S.T.L.S.





Introduction



Emergency response time is critical in saving lives. Every second that can be saved in the transportation of medical and emergency personnel is vital. For example, a fire occurs in a residential neighborhood and there are fifteen intersections with streetlights between the fire station and the home. The emergency vehicle is delayed three seconds at every intersection, which results in forty-five seconds that could have been saved. Forty-five seconds may not seem like much time, but if you are a parent and your child is trapped inside the home, it could mean the difference between life and death. The more quickly an emergency response team can arrive, the better the odds of survival.



The S.T.L.S. (Safe Traffic Light System) is designed to save lives by decreasing response time of emergency vehicles. The reason we chose this project was because it has real life applications. We had a goal for our Capstone project to recognize a problem in the real world and improve it. This project also allowed the use of the technology we learned at ITT and we were able to apply it to a real-life problem. The application of this project could make a difference to many people because it lowers the response time for emergency vehicles and could potentially save a life.



This streetlight system was designed to give emergency vehicles a clear driving path to improve response time and save lives. A current city intersection can be controlled by a computer system that times the lights or a system that recognizes when a car is at an intersection and responds to a sensor. The circuit we designed runs off a timing system giving all directions of traffic equal amounts of time. In normal driving conditions the current system will give an emergency vehicle and traffic opposing it both green lights. For example, if an emergency vehicle is heading northbound the southbound traffic will also have a green light. The problem occurs when the emergency vehicle needs to make a turn at an intersection. In order to stop from colliding with traffic the emergency vehicle must come to almost a complete stop and wait for traffic to clear the intersection. Many motorists do not hear the sirens or see the emergency vehicle until it is on top of them and they have to get out of the way to let the emergency vehicle pass which also causes delays.



The S.T.L.S. system addresses both issues by stopping all traffic with a red light except the direction the emergency vehicle is heading. The system accomplishes this by sending an infrared signal to the traffic light with a transmitter. There is a receiver circuit on the traffic light that changes the lights to an “emergency state” temporarily interrupting the main timed circuit. Once the emergency vehicle passes the intersection the circuit returns to normal. The system alerts the motorist that an emergency vehicle is behind them by giving them a different green light. With the S.T.L.S. system the traffic that had a green light will go yellow and then red to stop traffic. The lights that were red will stay red. The direction the emergency vehicle is going will go red and then turn on with a different green to tell motorist that an emergency vehicle is coming and to clear the path. Now the emergency vehicle only has to worry about the vehicles in front of it and not worry about hitting oncoming traffic head on at an intersection while making a turn as they did in the old system. The bottom line is the S.T.L.S. system will save emergency vehicles time spent at busy intersections by clearing a path.





Project Description





Main Circuit



Photo Sharing and Video Hosting at Photobucket





Our main traffic light circuit controls four different directions of travel and cycles from green to red with both reds on for one second before going back to green. We accomplished this by locating a circuit online and modifying it to do what we need. The circuit uses a 555 timer to time the circuit. We decided that a twenty second overall cycle would be sufficient for demonstration. The East and West green lights are on for six seconds, the yellow lights for three seconds, the red lights in all four directions for one second, the North and South directions turn green for six seconds, the yellow lights for three seconds, and then all four directions red for one second before starting the cycle again. The output off the 555 timer feeds a 74LS90 decade counter. This IC counts in binary form from zero to fifteen with every input clock pulse. The outputs from the decade counter go to all four of the 7443 IC’s which control the lights, four OR gates and a J-K flip-flop. The 7443 IC’s are Johnson counters that convert a binary input to a decimal output. We are using these to control our lights. We connected output one to a red light, outputs two through seven to green lights and outputs eight through ten to yellow lights. The inputs to these IC’s come from the decade counter and the OR gates. The J-K flip-flop and the OR gates control the inputs to the 7443’s. This creates disallowed conditions alternately in the 7443’s and prevents any of the outputs from two of the counters going low while the other two counters are in their cycles.



Our first problem arose when we tried building the first circuit we found. The original circuit consisted of only two light segments, one for North and South and one for East and West. We quickly realized this wouldn’t work because we were going to need to control one direction at a time. Our next problem was the hardest problem we came across. The first version of our final design used 73LS145 Johnson counters. We spent four weeks trying to get the outputs to turn on the lights with no success. When we troubleshot the circuit we found that the outputs of the 74LS145 counters were only producing 70 millivolts when off and 23 millivolts when on. According to their specifications they should have been producing five volts when off and zero when on. We were never able to figure out why this was happening but found another Johnson counter, a 7443, that performed the exact same function. When we substituted the 7443’s into the circuit the entire circuit worked perfectly.



The next problem occurred when we tried to get all four red lights on together before cycling back to a green. We are using diodes to turn the red lights on when a green or yellow is on in the other directions. When the circuit would run we would get a yellow and red light on in the same direction. This was happening because when a red light would come on there would still be one volt across the yellow light in the same direction which is enough to turn it on. We fixed this by placing a resistor in series with the diodes tied to the red lights and this dropped the voltage which was going to the yellow lights.



Photo Sharing and Video Hosting at Photobucket







Transmitter/Receiver Circuit



Photo Sharing and Video Hosting at Photobucket





All modern IR remote control devices produce a continuous coded stream of pulses at 37.9 kHz when any button on the module is pressed. These IR pulses are detected and decoded by a receiver (your TV, VCR, etc.) and the appropriate function activated. In our detector the coded stream is converted into a single pulse and that single pulse is used to toggle a relay on & off and the coded information is lost. Only the fact that a button was pressed on your remote control unit is detected. This single pulse is then used to toggle the output of a flip-flop. A high on the /Q output of the flip-flop turns on transistor Q3 which in turn operates the relay and the LED. The LED provides visual indication that the relay is operating.



Photo Sharing and Video Hosting at Photobucket





IC1 is an Infra Red module. IR modulated pulses are received and buffered by this IC. It has a standard TTL output; the output with no signal is logic 1. One gate of a CMOS inverter drives Red LED1 as a visible switching aid. Another gate buffers the signal and applies it to the time constant circuit, comprising of R3, C2, R4 and D1. C2 charges via R3, and discharges via R4, D1 prevents quick discharge via the low output impedance of the CMOS buffer. The pulses are further buffered and contain "jagged edges" as shown in appendix B4. These edges are produced by the modulated IR data which has to be removed. This is achieved using IC3, a 555 timer wired as a monostable, with a pulse duration of R5, C4. These cleanly reconstruct a single pulse to activate the bistable latch. A D type flip flop, IC4, is configured as a bistable. The input is applied to the clock pin, the inverted output fed back to the data input and the clear and preset lines are tied to ground. For every pulse the relay will operate. The output pulse is set at about 1.5 seconds and input delay by R3, C2 set at two seconds.



Photo Sharing and Video Hosting at Photobucket



We first started with a simple receiver circuit which did not require as many components as the one we are now using. When we started building this circuit we started running into many problems, but the most significant one was our range. The range was extremely short, only about 3 inches. We tried substituting the resistor and capacitor values, added photo transistors in series and in parallel and tried different transmitters but everything failed to increase the range in our setup.



After trying everything possible to fix the other circuit, we decided to try a different one. With this new circuit, building it and troubleshooting it was fairly simple. We ran into the basic problems but after we checked that all components were in their correct position, the orientation of the electrolytic capacitors, the connection of the transistors, diodes, Zener diode and the IC were correct, our circuit was working perfect and range was around 15 feet.





Control Circuit



Photo Sharing and Video Hosting at Photobucket







Our control Circuit went through two different designs. The first circuit was successfully built and tested on Multisim but would not work when built on a breadboard. We attempted to troubleshoot the circuit but could not figure out what the problem was. It was designed with more components than necessary and used a CMOS (complementary metal oxide semiconductor) IC to control the lights. Since all of our other IC’s were TTL (transistor-transistor logic) we decided to try a different design and use a TTL IC. We finally decided on a circuit utilizing a one-shot. When the receiver is on it produces five volts which turns on the green emergency light and also produces a five volt pulse to the input of the one-shot. After the emergency vehicle passes and the receiver turns off, the green light turns off and the five volt pulse at the input of the one-shot goes to zero. This causes a negative edge trigger on the one-shot and it produces a five volt output for a predetermined amount of time. We chose three seconds because that is how long our main light circuit keeps the yellow light on in normal operation before switching to red. The anodes of both the green and yellow emergency lights are connected to the inputs of a two input OR gate. The output of the OR gate is high (five volts) whenever the green or yellow emergency light is on and goes to the main light circuit to force all four directions red.



Our main problem with the control circuit was getting it to not only force all directions red but also getting it to turn off the red light in the direction the emergency vehicle is traveling. We accomplished this by using a five volt relay in the normally closed configuration. The relay is connected between the five volt supply and the red light. When the receiver would turn on it would cause the switch to open and remove the five volts from the red light causing it to turn off. When the control circuit turns off it causes the relay to switch closed again and the main circuit returns to its normal function.





Recommendations



This project was a difficult one to master, the digital circuitry used required a great deal of thought to integrate. The same process could have been easily handled by a computer program and programmable logic, but our intention was to make this system easily deployable by any city, not just larger metropolitan ones like New York and Los Angeles. To keep the cost low for our purposes and for any manufacturing we would greatly suggest integrated circuit boards and components. This will keep the size of the control circuit small and the cost down keeping it well within the budget constraints for the manufacturer and the end customer. The prototype we have built runs on one power source and uses 20 IC’s, 77 resistors and roughly 50 feet of wire making the circuitry confusing to look at and difficult to troubleshoot. A printed circuit board with surface mount components would have alleviated a large portion of the wiring and multiple components. We used three circuit boards inside the main enclosure to allow for proper fit of all necessary circuitry and give enough space to use jumper wires between them. Advancements in computer technology may allow a possibility that all of this could be done by a single board with one processing chip and a simple set of programs. If we were to go forward with this we would certainly recommend that as the more efficient way of building the Safe Traffic Light System.



We would also recommend implementing a crosswalk portion in the project. Nearly every intersection has a crosswalk for pedestrians. When an emergency vehicle approaches the lights will not change until the crosswalk portion has completed its cycle. Since pedestrians have the right of way no matter what we wish we could have included this in our project but we were limited on time and resources. We also wish we could have included a turn signal with the main light circuit but again, we were limited on time.





Conclusion



The current system in use today has saved many lives and yet every year the people we rely on most to come to our aid become victims themselves while trying to reach us or stop criminals from causing any more harm. This system is intended to be employed in emergency vehicles such as ambulances and fire trucks but can also be used by the police department. More often than not we see videos of people trying to outrun the police and create an accident in the process. Infra Red signals can propagate great distances allowing them to trigger a light from up to a quarter of a mile away and giving ample time for innocent motorists to clear the intersection and allow the police to do their job without added risk to life and property. The beauty of this system is that it can be installed in most cities without a large initial cost. Larger metropolitan cities like New York and Los Angeles utilize a computer controlled traffic light monitoring system that allows them to adjust the timing of their lights to alleviate congestion during rush hour. The output is in fact a digital signal so it can be immediately interfaced into the computer system allowing the computer to recalculate the lights that have been affected by emergency vehicle travel. With this system integrated directly into the grid it will allow the control center to monitor and react to the changing conditions caused by the off sequence changing of the lights. In Smaller cities, like Casa Grande, Arizona for example, the system can be deployed on an individual basis allowing them to benefit from the same life saving technology this product is intended to offer. After all the technical advancements we have made over the years this one is long overdue and although the old one has worked for so many years it is time for an update. In closing, the time we intend to save may only amount to a matter seconds or minutes, but when you consider the fact the total time it takes for emergency medical personnel to reach the scene and make their way to the hospital it can mean the difference between life and death. The American Heart Association states that serious, if not irreversible, brain damage can occur after five minutes if a heart attack patient does not receive medical attention. The seconds we want to save may be yours!




RECIEVER CIRCUIT



Photo Sharing and Video Hosting at Photobucket



TRANSMITTER



Photo Sharing and Video Hosting at Photobucket



MAIN CIRCUIT



Photo Sharing and Video Hosting at Photobucket



MAIN CIRCUIT WITH LIGHTS



Photo Sharing and Video Hosting at Photobucket

Acknowledgements


I would like to thank Mr. Toussaint. You have been a great teacher and mentor for more than a year and your knowledge seems to know no bounds. Thank you for motivating and pushing me every day. I would like to thank my wife. You have been extremely patient with me for three and a half years. Without your support I wouldn’t be who I am today. I would like to thank my son. All this work and time away was so that I can provide a better life for you. I would like to thank Bill, Roberto and Roger. Without your combined efforts on this and other projects I would have failed miserably.

-Louis Larsen

First of all I’d like to thank my family, especially my dad who always believed in me, and supported me all the way, but how can I forget mom that without her perseverance I would’ve never finished my education.

Throughout my education I’ve run into many different types of teachers, some have helped me, others have held me back. Mr. Toussaint is one of those teachers who will do anything in his power to help you or challenge you, but most importantly he helped me learn and gave me great advice to overcome my problems, so I’d like to thank him for all his help and for standing by me even though many times I let him down by being late or absent to class.

I would also like to thank my classmates, Bill who patiently helped me finished my homework and labs, Roger who made my classes shorter with his jokes, and Louis who I got to know this last quarter and realized how cool he was as well as always setting an example for all of us even though we never followed.

-Roberto Miranda

I would like to thank God, my family, Mr. Toussaint, and my classmates, Louis, Roberto and Bill. Thanks to everyone for the support and encouragement. Without everyone’s support I would not have succeeded in reaching my goal.

-Roger Norsworthy

I would like to thank God for granting me the strength and patience to complete a monumental task such as this project and the Bachelors program in engineering. To my wife Misty for sacrificing just as much of her time to this endeavor as I have and being patient with me as I spent time away while she had to play both roles in the house. To my children, who at times may have felt neglected of my attention when I told them I needed to complete my homework instead of going to the park and play. To the United States Navy and Universal Avionics for offering not only time but experience that allowed me to complete this program. Last, but certainly not least, my fellow classmates who put up with my endless questions, concerns and general demeanor for almost two years, I appreciate all of you greatly. Louis who helped with my usually last minute homework questions to Roger listening to me complain and Roberto for teaching an old dog new tricks with Commsim and Multisim. Without you I would never have made it. I thank you all from the bottom of my heart.

-William Lancaster