Control Raspberry Pi from your Android Device using Simulink
Updated 1 Nov 2016
These files offer resources on how to create and run a Simulink model on Raspberry Pi to build a surveillance camera with wireless communication capabilities. It also highlights how you can use Simulink to build a mobile app to control the surveillance camera from an Android device.
This File Exchange submission includes three examples that show you how to:
1) Blink the Raspberry Pi LED from your Android device.
2) Implement the "Surveillance camera with Android device" demonstration.
3) Modify the example to include a push button that activates the video feed.
The implementation of the examples are described in PDF slides. They provide details on the hardware components and setup needed, a brief explanation of the Simulink models used, and step-by-step instructions on how to create them. The slides also include a brief explanation of how user datagram protocol (UDP) is used to let the devices communicate with each other and the general hardware and wireless setup needed to implement the three examples.
For more information and additional instructions, please watch the following webinar:
The examples require the following MathWorks products:
1) MATLAB R2016b
3) Computer Vision System Toolbox
4) Image Processing Toolbox
5a) The Simulink® Support Package for Raspberry Pi™
5b) The Simulink® Support Package for Android™ Devices
You can model and develop more elaborate algorithms using Stateflow, the Audio System Toolbox, and Control System Toolbox. MATLAB Coder, Simulink Coder and Embedded Coder allow you to inspect and modify the generated code to learn on and explore industry-grade hardware platforms.
Greg Drayer (2023). Control Raspberry Pi from your Android Device using Simulink (https://www.mathworks.com/matlabcentral/fileexchange/59204-control-raspberry-pi-from-your-android-device-using-simulink), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Simulink Support Package for Raspberry Pi Hardware, Simulink Support Package for Android Devices
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.