How to send data to Arduino MKR1010 via wifi In Simulink
1 次查看(过去 30 天)
显示 更早的评论
I'm working on a project where I'm using the input from a USB gamepad to wirelessly control a brushless DC motor. I'm currently able to control the motor with eveything connected to my computer (not wirelessly). How can I use the wifi blocks from the Arduino hardware library in Simulink to send the data from my gamepad to the Arduino so that it generates a PWM signal based on the value coming from the gamepad? Thank you!![Capture1.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232541/Capture1.png)
![Capture1.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232541/Capture1.png)
0 个评论
回答(1 个)
Abhisek Pradhan
2019-8-7
WiFi UDP Send and WiFi UDP Receive Blocks in Simulink Support Package for Arduino Hardware ( Supported on MKR 1010 ) can be used to send and receive data on wireless networks.
Data is sent from the port number specified in the Local IP Port and received by host with specified Remote IP address and the Remote IP Port.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!