Mission:
Your mission is to install a traffic light control system that will enable you to keep traffic moving smoothly. From your traffic control center, you see on a video monitor that an ambulance is coming. Install a pushbutton switch to reset the light program so that you can adjust the time for the red light to stay on while the pushbutton is pressed to get the emergency vehicle safely through the intersection.
Bonus: Use a timer to determine the light sequence location. When the pushbutton is released the light sequence should immediately turn to green and continue the sequence.
Duties:
Build a model of a traffic light with green, yellow, and red lights. When Terry presses and holds an emergency switch, the signal will change from green to yellow to red. After the emergency vehicle has gone through the intersection, Terry should be able to release the switch to turn the signal from red to green.
Write a program to control the signal light. The program should be written so that the green light turns on when the program is started. The red and green lights should each be on for 5 seconds, the yellow light for 1 second. Make sure only one light is on at a time. When an emergency switch is pressed, the yellow to red light sequence should begin, and the red light should stay on while the button is pressed. When the same switch is released, the light should change from red to green. Open the PLTW Template and Save As TrafficLight to your directory. Complete each section: Heading, Task Description, Pseudocode, Motor and Sensors Setup, Program
Your mission is to install a traffic light control system that will enable you to keep traffic moving smoothly. From your traffic control center, you see on a video monitor that an ambulance is coming. Install a pushbutton switch to reset the light program so that you can adjust the time for the red light to stay on while the pushbutton is pressed to get the emergency vehicle safely through the intersection.
Bonus: Use a timer to determine the light sequence location. When the pushbutton is released the light sequence should immediately turn to green and continue the sequence.
Duties:
Build a model of a traffic light with green, yellow, and red lights. When Terry presses and holds an emergency switch, the signal will change from green to yellow to red. After the emergency vehicle has gone through the intersection, Terry should be able to release the switch to turn the signal from red to green.
Write a program to control the signal light. The program should be written so that the green light turns on when the program is started. The red and green lights should each be on for 5 seconds, the yellow light for 1 second. Make sure only one light is on at a time. When an emergency switch is pressed, the yellow to red light sequence should begin, and the red light should stay on while the button is pressed. When the same switch is released, the light should change from red to green. Open the PLTW Template and Save As TrafficLight to your directory. Complete each section: Heading, Task Description, Pseudocode, Motor and Sensors Setup, Program