BLOG 3 | RTOS

 RTOS BLOG 3 

My RTOS



The RTOS scheduler runs these tasks at specific time intervals (for example, every 100 ms or 200 ms). The program reads a push button on pin A4 and an analog input from the ADC, then sends messages between tasks using RTOS message queues (rtos_msg_send, rtos_msg_read). An LCD is also used to display debugging information so the developer can see which tasks are running and what the system is doing.


The central control is implemented using a state machine task (state_machine_rtos_task). This task receives messages from the input tasks and decides what the system should do next based on the current state (STATE_STARTUP → STATE_1 → STATE_2 → STATE_3 → STATE_4).  Which can be seen below 


Record

When the button input is triggered, the state machine moves to the next state and sends commands to the output tasks (output1_rtos_task or output2_rtos_task). These output tasks then process the messages and print information through the serial port and LCD as shown below. 





Team's RTOS












Comments

Popular posts from this blog

Blog 1 - Igor Kapusniak

Blog 5 - Bin Bot Project - Davin Barron