Help with interview questions [ASAP]

Status
Not open for further replies.

stm32f4

Newbie level 1
Joined
Jun 4, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
7
Help with an interview question [ASAP]

Any help in solving the following question is much appreciated. Thanks in advance.


We have 1 bridge with 2 traffic lights at both ends.
The two traffic flows need to alternate in accessing the bridge.
a) Design a state machine to control the traffic lights.
b) How do you minimize the implementation logic?
 
Last edited:

a, figure out the relative timing and colours of the lights (hint, red, red and amber, green, amber red X2). Use a hard ware watchdog timer to switch all lights to red if micro/power switches fails. Make sure that on restoration of power all lights start on red.
b, this is trivial use a PIC, the real cost is in the civil engineering and the power switches.
Frank
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…