문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top