Simulink communication to Raspberry USB port

23 views (last 30 days)
I would know if it exits a way to let communicate Simulink to a device connected to the USB port of Raspberry Pi?

Answers (2)

Mischa Kim
Mischa Kim on 10 Jan 2014
Edited: Mischa Kim on 10 Jan 2014
Hello Salvatore, yes there is. Check out: You need the Support Package which you can download directly from the web site, or, if you have a recent release, from within MATLAB.
Bethmage Perera
Bethmage Perera on 23 Mar 2015
Hi Mischa,
I got a similar issue where I want to connect a sensor to the usb port of the pi. This is a serial device and I already got a different serial device connected to the pi via its TXD and RXD pins so I am using a serial to USB converter to plug the sensor to the usb port. Can you help?
Thanks Kalpa

Sign in to comment.

Murat Belge
Murat Belge on 26 Feb 2014
It depends on what you attach to the USB port. For example, if you attach a USB Webcam, the Raspberry Pi registers it as a V4L2 video capture device and you can use the V4L2 Video Capture block to acquire images from the device. Since the USB port is a host port, you can only communicate with slave devices attached to this port. You will not be, for example, able to connect a USB cable between your host computer and the Raspberry Pi and communicate with your host computer from the R-Pi.
If you provide more information on your use case, I can provide a more detailed answer.
Beyda TASAR on 27 Sep 2018
Hi, I have got the same problem. I want to connect an EMG sensor via the raspberry pi USB port. Did you solve this problem? Could you help me?

Sign in to comment.


Find more on Simulink Support Package for Raspberry Pi Hardware in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!