Raspberry pI work together with arduino
Mostrar comentarios más antiguos
It is possible combine the arduino and the raspberry pi in the same project of simulink in MAtLAB. Can I do a project in my windows pc, but I want to control the arduino, that arduino is connect on the raspberry pi????
1 comentario
Nihal Gupta
el 4 de Jul. de 2016
Yes you can control your arduino from GPIO pins of raspberry pi.
Respuesta aceptada
Más respuestas (2)
Murat Belge
el 21 de Abr. de 2014
Yes you can. You need to ensure that your work computer can communicate with your Raspberry Pi connected to your home network. This usually means that you need to do port forwarding on your home network to direct the TCP traffic intended for Raspberry Pi. The Support Support Package for Raspberry Pi Hardware uses the following ports:
SSH: TCP/22
Raspi interface: TCP/18725 and UDP/18725
Simulink External Mode: TCP/17725 (user settable)
You need to port forward incoming Ethernet traffic coming to your home network for the above protocol/port pairs to your Raspberry Pi. You also need to find the IP address of your home network. Read the following section in the documentation to setup your Raspberry Pi to send you an e-mail indicating its IP address: http://www.mathworks.com/help/simulink/ug/configure-raspberry-pi-hardware-to-email-ip-address-changes.html
You can also subscribe to a dynamic DNS service and register your Raspberry Pi to have access using only the host name.
Ryhor Prakapovich
el 22 de Jul. de 2016
Editada: Ryhor Prakapovich
el 22 de Jul. de 2016
0 votos
Hello, two wonderful examples you can see in the following projects:
http://www.mathworks.com/matlabcentral/fileexchange/58319-raspiremotecontrol and http://www.mathworks.com/matlabcentral/fileexchange/58318-two-tier-mobile-robot-control-system
In the second project was developed by the software serial interface Block for Simulink Support Package for Raspberry Pi Hardware!
Categorías
Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!