Running a Simulink model on Arduino and inputting parameters through bluetooth with HC-05
1 次查看(过去 30 天)
显示 更早的评论
I am attempting to run a simulink model on my Arduino Due. I would like to input parameters to this model via bluetooth. I have an HC-05 device for the arduino but cannot figure out how to input different input paremeters into the simulink model. Is there any way to successfully do this? I would also like to be able to read output values as well via bluetooth if possible.
0 个评论
回答(1 个)
Atharva
2023-3-29
Yes, it is possible to input and output parameters from a Simulink model running on an Arduino Due via Bluetooth using the HC-05 module. To input parameters, you can use the "Serial Receive" block in Simulink to receive data from the HC-05 module connected to the Arduino Due. You can then use this data as input parameters to your Simulink model and to output parameters, you can use the "Serial Transmit" block in Simulink to send data back to the HC-05 module.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!