How to Make a Line-Following Robot Using STM32 @MATLAB
How to Make a Line-Following Robot Using STM32  @MATLAB
Uploaded February 2026 | Updated September 2026, 3 weeks ago
Learn how to build a line-following robot with STM32 and Simulink®.

You’ll see step-by-step instructions for installing support packages, configuring models, and setting up sensors and motors. The core line-following algorithm is explained, showing how sensor values control motor actions to keep the robot on track. Finally, watch a free demo for simulating the robot, making it ideal for hands-on learning and Model-Based Design education. Perfect for beginners and educators interested in robotics and embedded systems.

Additional Resources:
- Visit the Student Tutorials and Videos for additional videos: bit.ly/2XX5K1t
- Request software for your student competition: bit.ly/2U6e4uE

Chapters:
00:00 Introduction
0:30 What You Need to Prepare to Control STM32 Hardware
1:08 How to Install MATLAB Products?
2:07 Simulink and CubeMX Model Settings and Operation Check for Light Sensors and Motors
7:59 Linetrace Algorithm
9:03 Available Demo from MathWorks

--------------------------------------------------------------------------------------------------------
Get a free product trial: goo.gl/ZHFb5u
Learn more about MATLAB: goo.gl/8QV7ZZ
Learn more about Simulink: goo.gl/nqnbLe
See what's new in MATLAB and Simulink: goo.gl/pgGtod

© 2025 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
See mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.
How to Make a Line-Following Robot Using STM32Take Your MATLAB Code to GitHubInstallation and Hardware Setup | Support Package for Renesas RH850 MCUs, Part 1CANedge + MATLAB: Building a Digital Twin for an EV Battery PackHow to Work with ADCs on C2000 MCUs | C2000 Microcontroller Blockset, Part 10How to Use File DatastoresWhy the Bode Plot Is Awesome!How Space Weather Affects Satellite Orbits — and How to Model ItAI-Based Virtual Sensor for Rotor Position EstimationHow to Verify Generated Code Using PIL| Support Package for Renesas RH850 MCUs, Part 5How to Configure GPIOs as Inputs on C2000 MCUs | C2000 Microcontroller Blockset, Part 2Teaching Intelligent Control Systems with MATLAB and Simulink
MATLAB |

How to Make a Line-Following Robot Using STM32

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER