File Exchange

image thumbnail

Control a Raspberry Pi powered robot with MATLAB and Simulink

version (3.42 MB) by MathWorks Simulink Team
Control a Raspberry Pi powered robot with MATLAB and Simulink


Updated 02 May 2016

From GitHub

View Version History

View license on GitHub

This project shows you how to control a Raspberry Pi powered robot from both MATLAB and Simulink.

Take basic control of your robot from MATLAB and prototype an image processing technique for target tracking. The default target is a green rectangle of 75x75mm.

Once the target is identified, use Simulink to deploy a control system to the robot such that it can autonomously drive to the target.

With the Simulink® Support Package for Raspberry Pi™, you can design signal or image processing algorithms and applications that run standalone on your Raspberry Pi. You can also develop more elaborate algorithms using Stateflow, DSP System Toolbox, and Computer Vision System Toolbox.

We can also say that this entry was inspired by the “Simulink Support Package for Raspberry Pi Hardware” File Exchange entry.

Cite As

MathWorks Simulink Team (2021). Control a Raspberry Pi powered robot with MATLAB and Simulink (, GitHub. Retrieved .

Comments and Ratings (12)

Hideyuki Shimizu

Can not open FindTarget file...


Abdou Gherabi


Andy Heron

The links in the pdf do not work, is there a copy of the file that is to be downloaded onto the motor controller available.

Mathcode Liang


Abhishek Kumar

the links in the pdf are not working.I want to know about hardware connections.

Mateusz Gospodarczyk

SerielPort.c is add under Code Generation -> Custom Code -> Additional Build Information -> Source files

asseil idres

after i deploy the robot how can i run the modle automatically without using computer ??


the link in the pdf don't work

Carlos Moran

Muy buen programa realmente esto te hace desear aprender mas cada vez, sobre cosas como el procesamiento de imágenes, robótica y electrónica entre otras cosas más y su empleo con el hardware.


Cool program--I'm definitely interested in learning more. Is it possible to further connect tools that the robot can use (extendable arm, shovel, etc?) Also could this be adopted with using a quadracopter?


MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!