Simulink is used for serial communication between Arduino and Raspberry-Pi with the external mode deploying code directly on the boards.
Figure a: Arduino serial transmit and receive model with pot input and motor control as output.
Figure b: Raspberry-pi serial transmit and receive for taking input for processing using fuzzy logic and transmitting output.
Fuzzy logic is used further as a Simulink block to perform washing machine control task on real hardware.
Here is the link to the youtube video: https://youtu.be/aJTeD2Hq_-o
Ammar N. Abbas (2021). Communication between Arduino and RaspberryPi using SIMULINK (https://www.mathworks.com/matlabcentral/fileexchange/71060-communication-between-arduino-and-raspberrypi-using-simulink), MATLAB Central File Exchange. Retrieved .
@Kyzrsze Yes you can
@Ajinkya: Yes you can either with a wireless connection between Simulink and Raspberry or with a wired communication channel
Can I deploy my fuzzy logic controller, build in simulink to raspeberry pi 3b+ and run it externally with my simulink plant model ?
can ı use this in normal mode ?
Awesome, It helped a lot thank you so much
Tx(5v) Arduino - Voltage divider - Rx(3.3v) Raspberry
Rx(5v) Arduino - Voltage divider - Tx(3.3v) Raspberry\
For serial communication with the Matlab/ Simulink and Arduino, DON'T use Tx0 and Rx0 of Arduino for communication with Raspberry.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!