Question

I want to design a system that has to read some values from sensors through Arduino microcontroller using Matlab.

I want to use the simulink inputs as the sensors and the output to the motors, I wrote an app to do that on Arduino, and also I wrote some functions in Matlab to read these sensors and to control the output, but I want to use simulink to implement a Fuzzy logic Controller the input is the values of sensors and the output is the speed.

Était-ce utile?

La solution

If you wrote the functions for MATLAB in C, you can put your code in an S-Function, whether it is for sensor input or actuator output.

Otherwise, either use Embedded M file or S-function in your Simulink model.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top