Using MATLAB simulink and STM32 for PID controller

10 visualizaciones (últimos 30 días)
Rosy Oza
Rosy Oza el 23 de Oct. de 2019
Respondida: Anudeep Kumar el 11 de Mzo. de 2025
Hi,
I am design PID controller for constant temperature using STM32F4 (Using DSP libnrary). Is it possible to use MATLAB as simulink for my application? If yes, can you point me to some vidoes? My main concern is to check the response of my system and tune my Kp,Kd,Ki constants.

Respuestas (1)

Anudeep Kumar
Anudeep Kumar el 11 de Mzo. de 2025
Hey Rosy,
I recently worked on a similar project, and I found a couple of resources incredibly helpful. There's a video on YouTube that explains how to tune a PID controller in Simulink using the PID Tuner tool. You can check it out here: https://www.youtube.com/watch?v=_CjirdeKxUY.
Additionally, the MATLAB documentation offers a wealth of examples for designing a PID controller tailored to your needs. You can explore those examples here: https://www.mathworks.com/help/slcontrol/examples.html?s_tid=CRUX_topnav&category=cat-scd-pid-controller-tuning.
For STM32 support, MATLAB/Simulink provides examples and documentation specifically for that. Here's the link for more details: https://www.mathworks.com/help/ecoder/stm32-spkg.html
I hope these resources prove to be as useful for you as they were for me!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by