# Raspberry Pi UART-Setup

## Configure your Raspberry Pi

To enable the UART on your Raspberry Pi to be used as host you need to configure it:\
`sudo raspi-config`\
Go to `5 - interfacing options`\
Go to `P6 - serial`\
`Would you like a login shell to be accessible over serial?` Answer: 'No'\
`Would you like the serial port hardware to be enabled?` Answer: 'Yes'\
Reboot your Raspberry Pi.

{% hint style="info" %}
See [Raspberry Pi](https://open-rt.gitbook.io/open-surfacert/surface-rt/hardware/diy-1v8-uart#raspberry-pi) for information on how to physically connect your RPI and your SRT.
{% endhint %}

## Open a serial console

To establish a UART-Connection to the Surface RT use \
RPI2: `minicom -b 115200 -D /dev/ttyAMA0` \
RPI\_Zero `minicom -b 115200 -D /dev/ttyS0`&#x20;

{% hint style="info" %}
To escape from minicom use STRG+A and then X.
{% endhint %}

Further information: <https://www.raspberrypi.org/documentation/configuration/uart.md>
