Running a Simulink model on Arduino and inputting parameters through bluetooth with HC-05

7 次查看(过去 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.

回答(1 个)

Atharva
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.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by