MATLAB Answers

Simulink communication to Raspberry USB port

21 ビュー (過去 30 日間)
Salvatore Mazzarino
Salvatore Mazzarino 2014 年 1 月 10 日
コメント済み: Beyda TASAR 2018 年 9 月 27 日
I would know if it exits a way to let communicate Simulink to a device connected to the USB port of Raspberry Pi?

  0 件のコメント

Sign in to comment.

回答 (2 件)

Mischa Kim
Mischa Kim 2014 年 1 月 10 日
編集済み: Mischa Kim 2014 年 1 月 10 日
Hello Salvatore, yes there is. Check out: http://www.mathworks.de/hardware-support/raspberry-pi.html. You need the Support Package which you can download directly from the web site, or, if you have a recent release, from within MATLAB.

  3 件のコメント

Salvatore Mazzarino
Salvatore Mazzarino 2014 年 1 月 10 日
I have already known that it exists hardware support for raspberry in simulink. I have asked you something of more specific. Does it exist a block that let communicate to the usb port of raspberry ?
Mischa Kim
Mischa Kim 2014 年 1 月 10 日
Absolutely. For reference, check out the video on the web site I provided the link to (it gets interesting at around 6:25). The simple demo includes a web cam (USB) to capture video. Does that help?
Bethmage Perera
Bethmage Perera 2015 年 3 月 23 日
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 2014 年 2 月 26 日
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.

  3 件のコメント

Bethmage Perera
Bethmage Perera 2015 年 3 月 23 日
Hi Murat, I am facing this same problem but I want to connect a range finder sensor via the raspberry pi usb port. can you help me figure out a way I can get the signal from the sensor via the port?
Thanks Kalpa
vcmorini
vcmorini 2017 年 3 月 22 日
I am also interested Bethmage Perera
Beyda TASAR
Beyda TASAR 2018 年 9 月 27 日
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.

タグ


Translated by