I showed in my previous post that I was able to run a standalone user defined MATLAB script on Raspberry PI, that can take images from Raspberry PI Camera and control two motors using GPIO pins.
In this Post I will explain how to this, so please refer to my video:
First, if your "mex -setup" command is giving an error, please try to install Microsoft SDK from this link:
http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1
However, I had some problems installing that, but it worked after I followed the instructions in this video:
To configure the Raspberry Pi camera to run on V4L2 video capture block, please refer to this link:
Use Camera Board with V4L2 Video Capture Block - MATLAB & Simulink
I have attached the Simulink model I developed in the video, and also a separate m-file that contains the function script in case you can't view the function in simulink.
After this post I have made some updates to my model and code please check this post for the updated version.
Top Comments