Running a Simulink model on Arduino and inputting parameters through bluetooth with HC-05
8 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Atharva
on 29 Mar 2023
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 Comments
See Also
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!