Project from Real Time Systems subject which It consists of building an electronic system of a wagon connected to a computer from an external server. This system must perform some operations within the specified period of time.
We have two systems involved in the control of the wagon:
-
Microcontroller (Arduino): This part will be in charge of obtaining information from the sensors and sending to the main controller
-
Main Controller: This part collects the information from the microcontroller and execute the logical operations
-
Source_Code: It provides the codes for the micro and main controller parts. We have 4 different sections (from A to D), in which each one is in charge of controlling some of the sensors that I'm going to explain further.
-
Videos: This folder will contain some videos to show the implementation. Also, I have tested the behaviour of both parts when arduino receives messages from the main Controller.
-
Velocimeter: The Arduino will compute the speed at a certain period. This value will be send to the main controller. The speed is represented with a Led that has a variable brightness. The led will bright in a range between 40 and 70 km/h.
-
Light Sensor: The wagon has a sensor to measure the light outside. When the value of the sensor is too low, it means that the wagon reaches a tunnel. So, this value will send to the maincontroller for setting the lights on
-
Read the Slope: This sensor is going to detect a change on the slope of the wagon. This info will be received by the maincontroller to know if the wagon needs to brake or accelerate
-
Activation of Mixer: The brake system must be implemented using a LED that turns on when the brake is activated and turns off otherwise.
-
Brake and Acceleration System: The acceleration system must be implemented using a LED that turns on when the accelerator is activated and turns off otherwise. The brake system must be implemented using a LED that turns on when the brake is activated and turns off otherwise.
All tasks should check periodically the information about those sensors and sending to the Maincontroller.