MathWorks - Mobile View
  • Accedere al proprio MathWorks AccountAccedere al proprio MathWorks Account
  • Access your MathWorks Account
    • Il Mio Account
    • Il mio Profilo utente
    • Associa Licenza
    • Disconnettiti
  • Prodotti
  • Soluzioni
  • Università
  • Assistenza
  • Community
  • Eventi
  • Acquista MATLAB
MathWorks
  • Prodotti
  • Soluzioni
  • Università
  • Assistenza
  • Community
  • Eventi
  • Acquista MATLAB
  • Accedere al proprio MathWorks AccountAccedere al proprio MathWorks Account
  • Access your MathWorks Account
    • Il Mio Account
    • Il mio Profilo utente
    • Associa Licenza
    • Disconnettiti

Video e Webinar

  • MathWorks
  • Video
  • Home Video
  • Cerca
  • Home Video
  • Cerca
  • Contattaci
  • Software di prova
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

Using a Raspberry Pi with MATLAB Online

Matthew Chea, MathWorks

Get started using a Raspberry Pi™ with MATLAB Online™. Set up a Raspberry Pi in the terminal app to allow MATLAB Online connections. Then you can remotely access your Raspberry Pi from anywhere that has an Internet connection after setup is complete. Discover the features for the Raspberry Pi with MATLAB Online.

In this video, I will show you how to setup your Raspberry Pi™ to use with MATLAB Online™, so you can remotely connect to your device from anywhere. You will need a Raspberry Pi with Raspbian configured with Internet. It's recommended to change your default username and password for security before you connect to the Internet.

Open the terminal on the Raspberry Pi if you have a monitor and keyboard directly connected, or remotely access the Raspberry Pi via SSH.

Now, enter this command to update your Raspberry Pi repo:

$ sudo apt-get update

Enter this command to install the MATLAB Raspberry Pi package:

$ sudo apt-get install matlab-rpi

For the installation to complete, type “y” and then “enter”.

Run this command to configure MATLAB Online connections:

$ sudo matlab-rpi-setup

You can enter a display name for your device in MATLAB Online. Enable peripherals you want by typing “y” and then “enter”. Enter your MathWorks account username and password. If you ever want to change these settings, just use the setup command again.

Reboot your Raspberry Pi, so the configuration can take effect. Now, you can connect to your Raspberry Pi to MATLAB Online from anywhere as long as it has an Internet connection.

In MATLAB Online, enter the same MathWorks credentials to sign in.

In the command window, type the command: raspilist. This will show you the online Raspberry Pis that you configured in the setup with your MathWorks account.

The function raspi() creates a connection to the Pi. You can also specify which one to connect to if there are multiple Pi’s available.

Once we connect, we can see the properties and the available peripherals we can use.

If you enter the command showLEDs(), you can see a diagram of the Raspberry Pi with the available LED. There is a similar command called showPins(), where you can see all of the available pins in the diagram.

For more help, please refer to the documentation "Connect to Raspberry Pi in MATLAB Online".

Learn More

MATLAB Online
Getting Started with MATLAB Support Package for Raspberry Pi
Related Information
Connecting to Raspberry Pi in MATLAB Online

Feedback

Up Next:

34:37
Collect and Analyze Data Using MATLAB and Raspberry Pi

Related Videos:

5:42
Using MATLAB and Raspberry Pi with an I2C Sensor
6:45
Using MATLAB and Raspberry Pi with an Accelerometer
6:33
Using MATLAB with a Raspberry Pi Camera Board
4:09
Using MATLAB and Raspberry Pi for Face Detection
MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web site

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contattaci
  • Software di prova

Scopri i nostri prodotti

  • MATLAB
  • Simulink
  • Software per studenti​
  • Supporto hardware
  • File Exchange

Prova o Acquista

  • Download
  • Software di prova
  • Contattaci
  • Prezzi e licenze
  • Come acquistare

Impara ad utilizzare i nostri prodotti

  • Documentazione
  • Tutorial
  • Esempi
  • Video e Webinar
  • Formazione

Ricevi supporto tecnico

  • Aiuto all'installazione
  • Risposte​
  • Consulenza
  • License Center
  • Contatta l'assistenza

Informazioni su MathWorks

  • Lavora con noi
  • Sala stampa
  • Missione sociale​
  • Contattaci
  • Informazioni su MathWorks

MathWorks

Accelerating the pace of engineering and science

MathWorks è leader nello sviluppo di software per il calcolo matematico per ingegneri e ricercatori

Scopri…

  • Select a Web Site United States
  • Brevetti
  • Marchi
  • Informativa sulla privacy
  • Antipirateria
  • Stato dell'applicazione

© 1994-2021 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Unisciti alla discussione

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic.  By continuing to use this website, you consent to our use of cookies.  Please see our Privacy Policy to learn more about cookies and how to change your settings.