How can i use Arduino functions (code) in simulink?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michael Goebel
el 19 de Jun. de 2020
Comentada: Santiago
el 1 de Feb. de 2024
Hi everyone,
i would like to use arduino code like tone(pin, freq, duration) in simulink, i.e. to generate a sound with a certrain frequency using a buzzer, standalone on an arduino.
As far as i know, the playtone() function does not work in standalone mode.
How to do it best? S-function? Matlab-Function? ...?
An example simulink model would help me a lot.
13 comentarios
sapan agha
el 19 de Jun. de 2020
the question say what is recaailng matrix
do you have any idea about recalling matrix
Respuesta aceptada
Michael Goebel
el 25 de Jun. de 2020
1 comentario
Santiago
el 1 de Feb. de 2024
Hi. I have the same problem.
If I understand correctly, you created a C file with the tune() function?
Más respuestas (2)
Raunak Gupta
el 24 de Jun. de 2020
Hi,
There are lot of reference about Arduino Support from MATLAB that enables to use MATLAB to interact with Arduino Board. You may install MATLAB Support Package for Arduino Hardware from Add-on explorer. Also, following link contains many resources around the same.
Similarly, there is Arduino Support from Simulink which you can use by installing Simulink Support Package for Arduino Hardware from Add-on explorer. Here you can develop and simulate the algorithms in Simulink that run standalone on Arduino. For resources to get started you may follow below mentioned link.
0 comentarios
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!