My thesis deals with connecting peripheral devices to the Raspberry Pi. At first I presents the equipment I needed for programming. For the general hardware I used the single-board Raspberry Pi (model B) and installed the Raspbian operating system. There was a development environment for the Python programming language already installed on the computer, which I used. In the subsequent passages I presented how to connect the Raspberry Pi with peripheral devices and digital sensors using different ways and various protocols. This thesis is composed in such a way that there is first described for each type of connection the data transmission protocol, electrical wiring diagram with a description, the necessary settings for the Raspberry Pi-Rom, and the Python 3.x software code which enables communication with remote devices. Besides the description of the connection of the simple input (button) and output (LED diode), I added devices on the I2C bus, 1Wire, UART and SPI.