Computers and Technology

You are going to design traffic lights at an intersection of a city.  North and South (up and down) are going to be a main highway, East and West (right and left) will be a smaller cross street.  There will be no turn signals and no cross walks.  You only need to build/code one set of lights for each street (one set of green, yellow, and red for the highway, and another set for the cross street).  You do not need to build actual traffic lights or an intersection.  6 total leds (2 red, 2 yellow, 2 green); for the 2 traffic lights. 
1 photoresistor; for a car sensor on the cross street. 
1 button; to simulate 'loss of power' mode. 
Other necessary resistors, jumper wires

All traffic lights must cycle from green, to yellow, to red, to green… 
Lights must be red while crossing traffic has green and yellow. 
Yellow lights must be on for 500 milliseconds. 
Highway traffic is always green unless a car is waiting on the cross street. 
Highway traffic must always be green for at least 10 seconds. 
Cross street green light will be on for a minimum of 3 seconds. 
Cross street light will only remain green if it senses a car still on it. 
Cross street green light can only stay on for a maximum of 6 seconds. 
If 'loss of power' mode is activated (the button is held down), both red lights blink at the same time.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:40, almaga1979orfvwo
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
image
Computers and Technology, 23.06.2019 02:30, bre563
Research data that is presented using descriptive language is said to be
Answers: 2
image
Computers and Technology, 23.06.2019 09:50, tatumleigh04
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
image
Computers and Technology, 24.06.2019 01:30, kevin72836
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
Do you know the correct answer?
You are going to design traffic lights at an intersection of a city.  North and South (up and down)...

Questions in other subjects:

Konu
Mathematics, 11.11.2020 23:30
Konu
French, 11.11.2020 23:30
Konu
Mathematics, 11.11.2020 23:30
Konu
Biology, 11.11.2020 23:30