This project demonstrates real-time communication between MATLAB App Designer and an STM32F7 microcontroller for digital control experiments.
- File:
LabFinalTopicos.mlapp
- Functions:
- Selects input type: Step, Ramp, Sine
- Selects control type: Servo or Root-Locus (LGR)
- Sends command via serial port (COM2)
- Plots signals: Input, Theta1, Theta2, Error
- File:
main.c
- Receives serial commands (
a
–g
) - Generates input signals and simulates two discrete-time plants (P1 and P2)
- Sends response data back to MATLAB
- UART4 @ 9600 baud (TX=PC10, RX=PC11)
- MATLAB reads 255 samples per channel (Input, P1, P2, Error)
- Flash the STM32 firmware to your board (via ST-Link or USB).
- Run the MATLAB app (
LabFinalTopicos.mlapp
). - Select input and control type.
- Press “Iniciar” to start real-time data collection.
- Observe the plots for input, outputs, and error.
⚠️ Academic Disclaimer
This project was developed as part of the
Topicos Avanzados de Control module at Universidad Militar Nueva Granada (2017–2021).
The content is shared for educational and portfolio purposes only.
No proprietary or restricted university materials are included.