RPi GPIO Interface Circuits

From eLinux.org
Revision as of 13:56, 4 August 2013 by IanH (talk | contribs) (Voltage divider)
Jump to: navigation, search

This page shows a number of common circuits used for interfacing the Raspberry Pi's GPIO pins to various other electronic circuits.

Please note: this page is currently under construction

Input circuits

Voltage divider

Input divider.png

This circuit may be used to connect a digital signal from a 5V device to a GPIO pin on the Pi, which requires a 3.3V input level. The Ov point in the schematic should be connected to one of the Ground lines on the Pi's GPIO connector, and also to the 0v (or Ground) signal on the input device.

The important thing here is the ratio of R1 to R2; R1 should be just over half R2's value to ensure 5V is divided down to 3.3V. The values shown here should be suitable for most uses.

(See the [http://en.wikipedia.org/wiki/Voltage_divider Wikipedia article on voltage dividers).

Output circuits

Using an NPN transistor

Npn switch.png

Using a FET

Mosfet switch.png

Note: If you wish to produce new or modified schematics matching the ones above, you can use Inkscape using symbols from File:Circuit_Symbols.svg.