Starting Electronics needs your help! Please make a donation to help cover our hosting and other costs. Click the donate button to send a donation of any amount.

Raspberry PI Serial Port and Breakout Board

Created on: 23 March 2014

A simple single-sided board that connects a RS-232 serial port to the Raspberry PI and breaks out some of the PI's pins for experimentation.

The interface board was designed to be simple and used for initial experimentation. It can be built on a single-sided PCB using home-made PCB fabrication methods.

KiCad source files are provided so that the design can be modified if needed.

The RS-232 serial port allows the Raspberry PI to be programmed by connecting it to a PC without the need to connect a keyboard and screen to the PI.

Simple Raspberry PI serial port and breakout board
Top View of the Raspberry PI Serial Port and Breakout Board

Circuit Diagram

The circuit diagram for the Raspberry PI serial port breakout board is shown below.

Raspberry PI serial port and breakout board circuit diagram
Raspberry PI Serial Breakout Board Circuit Diagram - click for a bigger image

As the circuit diagram shows, the design is very simple. The board contains one RS-232 level converter chip and breaks out 5 of the Raspberry PI's GPIO pins. An LED and series resistor is connected to one of the GPIO pins.

Board Construction and Assembly

Surface mount parts were used for the MAX3232 RS-232 chip and 100n capacitors as can be seen in the photo below. These parts can easily be changed to through-hole parts using the KiCad source files provided if desired.

A surface mount MAX3232 was chosen as they are generally cheaper and more easily available than the through-hole mounting equivalents.

Bottom view of the Raspberry PI interface board
Bottom View of the Raspberry PI Serial Port and Breakout Board

Circuit Board Design and Construction

The circuit was designed and PCB layed out using the open-source KiCad EDA software package.

Books that may interest you:

C Programming with Arduino Book Ultimate Arduino MEGA 2560 Hardware Manual Ultimage Arduino Uno Hardware Manual

Soldering

The surface mount parts are not difficult to solder and should be soldered first. They are mounted on the copper side of the circuit board. The 100n capacitors have a 1206 footprint size so are big enough to handle easily.

The through-hole resistor, LED and capacitor should be soldered next, followed by the connectors.

Connectors

J3 is a strip socket for breaking out some of the GPIO pins of the Raspberry PI.

J2 is a female DB9 connector. This connector connects directly to a male DB9 connector on a PC or USB to RS-232 converter without crossing any of the pins over.

Ribbon Cable

A connecting ribbon cable will need to be made using a 26-way ribbon cable and 26-way (2 × 13) female IDC connectors.

The ribbon cable shown was peeled off a 40-way ribbon cable, so no need to buy a 26-way ribbon cable if you already have a ribbon cable that is more than 26-way.

Schematic and PCB Source Files

KiCad Files: rpi_serial_breakout.zip (15.8kB)

Bottom Copper Layer (PDF file): rpi_serial_breakout-Back.pdf (13.0kB)

Board Outline (PDF file):rpi_serial_breakout-PCB_Edges.pdf (2.6kB)

Using the Serial / Breakout Board

Connecting to the Raspberry PI command line using a Linux PC and serial port.

Connecting to the Raspberry PI command line using a Windows PC and serial port.

Python source code for flashing the board's LED.

C source code for flashing the board's LED.

Can't see the video? View on YouTube →