Code Monkey home page Code Monkey logo

raspbian_os_setup's Introduction

Raspbian_OS_Setup

Setup the Raspberry Pi Raspbian OS to be compatible with MATLAB and Simulink support package for Raspberry Pi

Introduction

MATLAB Support package for Raspberry Pi

With MATLAB® Support Package for Raspberry Pi™ Hardware , you can remotely communicate with a Raspberry Pi computer and use it to control peripheral devices. This support allows you to acquire data from sensors and imaging devices connected to the Raspberry Pi.

Simulink Support package for Raspberry Pi

Simulink® Support Package for Raspberry Pi™ Hardware lets you develop algorithms that run standalone on your Raspberry Pi. The support package extends Simulink with blocks to drive Raspberry Pi digital I/O and read and write data from them. After creating your Simulink model, you can simulate it and download the completed algorithm for standalone execution on the device. One particularly useful (and unique) capability offered by Simulink is the ability to tune parameters live from your Simulink model while the algorithm runs on the hardware.

Linux Image for Raspberry Pi

For your Raspberry Pi hardware to be compatible with MATLAB and Simulink support package, the Linux operating system running on the hardware should have all the required software packages and libraries installed. MathWorks ships a custom Linux image for Raspberry Pi. This image comprises of the default Raspbian jessie image with all the required software packages and libraries installed.

MATLAB and Simulink support package for Raspberry Pi also support running Robot Operating System (ROS) on Raspberry Pi. The custom image shipped by MathWorks comes with all the required ROS packages and libraries pre-installed.

Customization of Raspbian image for MATLAB and Simulink compatibility

If you would like to create a Linux image for Raspberry Pi which is compatible with MATLAB and Simulink, you must install required software packages and libraries.

Following is the list of required software packages and libraries

Software Packages

  1. libsdl1.2-dev
  2. alsa-utils
  3. Espeak
  4. i2c-tools
  5. libi2c-dev
  6. Ssmtp
  7. Ntpdate
  8. git-core
  9. v4l-utils
  10. Cmake
  11. sense-hat
  12. Sox
  13. libsox-fmt-all
  14. libsox-dev
  15. libcurl4-openssl-dev

Libraries

  1. Userland
  2. WiringPi
  3. PiGPIO

You can use the shell script to install the required packages and libraries along with the ROS specific packages and libraries. Depending on the version of the Raspbian OS running on your Raspberry Pi, use the following shell scripts.

  1. For Raspbian Jessie - RaspbianOSSetup_Jessie.sh
  2. For Raspbian Stretch - RaspbianOSSetup_Stretch.sh

Instructions for Use

  1. Follow the instructions provided in the Raspberry Pi official documentation page to download and setup Raspbian OS on your Raspberry Pi.
  2. Copy the Shell script corresponding to your Raspbian version to the Raspberry Pi hardware.
  3. On the Raspberry Pi terminal, run the shell script. For example
  • chmod u+x RaspbianOSSetup_Jessie.sh
  • ./RaspbianOSSetup_Jessie.sh
  1. On completion of the Shell script, restart your Raspberry Pi to complete the setup

Testing

  1. Install the MATLAB and Simulink support package for Raspberry Pi in your MATLAB installation.

    Use the link to Get Support Packages.

    More Information can be found here

    MATLAB Support package for Raspberry Pi hardware

    Simulink Support package for Raspberry Pi hardware

  2. After successful installation of the support package, connect the hardware to the same network as the host machine running MATLAB.

  3. On the MATLAB command prompt, execute the following

    myrpi = raspi('Device IP address','Username','password')

  • Device IP address - IP address of your Raspberry Pi

  • Username - Username associated with the login on Raspberry Pi

  • Password - Corresponding password

  1. After execution, if the command returns a valid Raspi object, the setup for Raspberry Pi is successful.

Installation of ARM® Compute Library on Raspberry Pi

In order to develop and deploy any deep learning application using MATLAB/Simulink onto Raspberry Pi, there exists a dependency on the ARM® Compute library.

RaspbianInstallARMComputeLib.sh is a script which installs and configures ARM Compute library v19.05 on the Raspberry Pi hardware.

To use this script, copy this file onto your Raspberry Pi hardware and run the shell script. Post sucessful installation, reboot your Raspberry Pi.

raspbian_os_setup's People

Contributors

mprabhu-mw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.