Build Raspberry Pi projects using high-level programming and block diagrams
With MATLAB support package for Raspberry Pi, you can write MATLAB programs that communicate with your Raspberry Pi and acquire data from the board’s GPIO pins, cameras, and other connected devices. Because MATLAB is a high-level interpreted language, it is easy to prototype and refine algorithms for your Raspberry Pi projects. MATLAB includes thousands of built-in math and plotting functions that you can use for Raspberry Pi programming in areas such as deep learning, image and video processing, optimization, statistics, and signal processing.
With MATLAB for Raspberry Pi programming, you can:
- Analyze Raspberry Pi sensor data and develop algorithms using thousands of prebuilt functions for image processing, signal processing, mathematical modeling, and more
- Quickly visualize your data using the vast array of MATLAB plot types
- Use the same software to program other hardware devices such as Arduino®
There are two options for developing algorithms that run standalone on the Raspberry Pi. The first is with Raspberry Pi support from MATLAB Coder. You can generate readable and portable C code from MATLAB algorithms and deploy it as a standalone application on the Raspberry Pi.
The second is with Simulink Support Package for Raspberry Pi. You can develop algorithms in Simulink, a block diagram environment for modeling dynamic systems and developing algorithms, and run them standalone on your Raspberry Pi. The support package extends Simulink with blocks to configure your Raspberry Pi, send and receive UDP packets, and read and write data from sensors. This includes writing data to the free ThingSpeak data aggregation service for Internet of Things applications. After creating your Simulink model, you can simulate it, tune algorithm parameters until you get it just right, and download the completed algorithm for standalone execution on the device. With the MATLAB Function block, you can incorporate MATLAB code into your Simulink model.
Using Simulink for Raspberry Pi programming, you can:
- Develop and simulate your algorithms in Simulink and use automatic code generation to run them on the device
- Incorporate signal processing, control design, state logic, and other advanced math and engineering routines in your Raspberry Pi programming projects
- Interactively tune and optimize parameters in Simulink as your algorithm runs on your Raspberry Pi
See also: Model-Based Design, image processing and computer vision, control systems, Internet of Things, Arduino programming, LEGO MINDSTORMS programming, robotics, control logic videos, robot programming