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

8 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

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

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by