This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Serial Port

Use the Raspberry Pi™’s serial port

Functions

readRead data from serial device
writeWrite data to serial device

Objects

raspiConnection to Raspberry Pi board
serialdevConnection to serial device on Raspberry Pi hardware

Examples and How To

Use the Raspberry Pi Serial Port to Connect to a Device

This example shows how to create a connection to a serial device, write data to the device, and read data from the device.

Controlling a 4-Digit 7-Segment Display Using Serial Port

This example shows you how to use the serial UART on Raspberry Pi hardware to control a 4-digit 7-segment display.

Concepts

The Raspberry Pi Serial Port

Serial Port on Raspberry Pi Hardware

Troubleshooting

Troubleshoot the Raspberry Pi Serial Port

Troubleshoot Serial Port on Raspberry Pi Hardware

Featured Examples