Starting Electronics Needs Your Help!
It is that time of the year when we need to pay for web hosting and buy new components and equipment for new tutorials. You can help by making a donation. Contribute to this website by clicking the Donate button. The total will be updated once daily. (You may need to clear your browser cache to see the updates.)
Target Amount: $2000
Amount Raised: $1539.10
Top Donor: C.C. $100
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.
The circuit diagram for the Raspberry PI serial port breakout board is shown below.
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.
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.
The board was designed and constructed using the methods described in the book Open Source Electronics on Linux. This book can be used to learn KiCad and the toner-transfer method of home PCB construction.
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.
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.
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.
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)
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 →