Mechatronic State Machine Project

Mechatronic State Machine Project

Train Controller

Train Controller

Overview

The following project tackles the issue of a small city plagued with human-related errors. That is, the necessity of the introduction of efficient train networks. This report will cover the design and implementation of an efficient state machine to control a train network. This automation concept will be carried out using a model representing the rail system.

Approach

The train can travel from track B to track C and vice versa.


The circuit to determine the anticlockwise and clockwise direction need not be implemented.


The circuit to determine the speed of the train is based on the weather and train type.


There are two train types; express and freight.


The weather affects track C and requires the train to travel through the track B or inner loop if the weather is bad.


When the weather is bad, the speed on track C is set to low and the tracks are adjusted for the inner loop.


The inner loop has a medium speed and track A has a fast speed.


If the train is detected in the inner loop, by default it should be directed to the inner loop again. The same statement is true for the outer loop.


Track C has a fast speed if weather is fine.


Track C is always preferred.

The University of Sydney

Vishant Prasad