2. Design a state machine to operate the two trains avoiding collisions but minimizing their idle time.

Question:

2. Design a state machine to operate the two trains avoiding collisions but minimizing their idle time. Trains must not crash by moving the wrong direction into an open switch.

Develop a simulation to verify your state machine is operating correctly before running the video train system. The trains are assumed to be in the initial positions as shown in Figure 8.14. Train A is to move counterclockwise around the outside track until it comes to Sensor 1, then move to the inside track stopping at Sensor 5 and waiting for B to pass Sensor 3 twice. Trains can move at different speeds, so no assumption should be made

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Rapid Prototyping Of Digital Systems

ISBN: 9780387726700

2nd Edition

Authors: James O Hamblen, Tyson S Hall, Michael D Furman

Question Posted: