subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Pls do you believe that the use of 3d animation has grown in feature films over the last few years? if so, do you think the trend will continue? what are the forces driving this trend?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
You are going to design traffic lights at an intersection of a city.  North and South (up and down)...
Questions