Question: Begin by using the Counter block ( in the DSP System Toolbox ) to generate the counter for the traffic light system. Set the counter
Begin by using the Counter block in the DSP System Toolbox to generate the counter for
the traffic light system. Set the counters block parameters to the following:
Count Event: Free Running Maximum count:
Initial count:
Output: Count
Use an Integer to Bit Converter block number of bits per integer followed by a Demux block number of outputs to convert the decimal counter output Cnt to individual bits.
Use this binary counter along with Simulink logic blocks and dashboard components to design a Simulink model that:
Consists of Three traffic lights red yellow and green and Two pedestrian lights red and green
The system should start off by allowing traffic to go for Seven seconds the green traffic and red pedestrian lights will both be on all other lights will be off
Next, the system will give the traffic a caution signal for Three seconds the yellowamber traffic and red pedestrian lights will both be on all other lights will be off
Lastly, the pedestrians should be able to cross the road for Six seconds the red traffic and green pedestrian lights will be on all other lights will be off
The system must then reset back to the start and repeat this process.
Use truthtables and Kmaps to find and minimise the Boolean expressions for each light. The inputs will be the bits output from the binary counter: A B C D where A is the most significant bit MSB from the counter and D is the least significant bit LSB
Please explain the timing logic and how i can set that up
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
