Simulink communication to Raspberry USB port
1 次查看(过去 30 天)
显示 更早的评论
I would know if it exits a way to let communicate Simulink to a device connected to the USB port of Raspberry Pi?
0 个评论
回答(2 个)
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 个评论
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
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
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 个评论
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!