File Exchange

image thumbnail

Raspberry Pi and Arduino Serial Communication

version 1.2 (39 KB) by

This submission enables serial communication between Arduino and Raspberry Pi in Simulink.

19 Downloads

Updated

View License

Contains a driver block for serial receive on Raspberry Pi.
This submission enables serial communication between Arduino and Raspberry Pi.
There are two models in this submission:
1) Arduino model: Transmits a character via the TX pin. Can either be run in External Mode or deployed to board.
2) Raspberry Pi model: Receives the character via the RX pin. Run in External Mode to view the character received.
Watch the video demonstration here:
https://www.youtube.com/watch?v=Kt5_9h84CrQ

Refer here for a write-up describing this submission:
https://dashboardproject.wordpress.com/2015/12/14/serial-communication-between-raspberry-pi-and-arduino-in-simulink/

By Esther Ling, Edu Engineer

Comments and Ratings (3)

Bibin

Bibin (view profile)

Hi thanks for the post. I had a quick question . Do we really need an sfunction at the Raspberry Pi side ? Does the Raspberry Pi Support package serial read block do the same ?

Thanks
I just had to link the library wiringSerial.h and wiringSerial.c, float precision would be good, too :)

Updates

1.2

Added Youtube video link

1.1

Updated title to better describe submission.

MATLAB Release
MATLAB 8.6 (R2015b)
Communities

More Files in the  Maker Community

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video