RPi.GPIO Documentation and Tutorials

Here you’ll find an index of links to all the RasPi.TV RPi.GPIO tutorials.

RPi.GPIO Basics series

  1. How to check what RPi.GPIO version you have
  2. How to check what Raspberry Pi board Revision you have
  3. Finding Out Info about the Raspberry Pi you are using (RPi.GPIO 0.5.10 or higher)
  4. How to Exit GPIO programs cleanly, avoid warnings and protect your Pi
  5. Setting up RPi.GPIO, numbering systems and inputs
  6. Setting up and using outputs with RPi.GPIO
  7. Using inputs and outputs at the same time with RPi.GPIO, and pull-ups/pull-downs
  8. RPi.GPIO cheat sheet

RPi.GPIO more advanced

Interrupts (needs RPi.GPIO 0.5.2+)

Software PWM

From 0.5.2a onwards, RPi.GPIO has software PWM. Below are two links. One describes its basic usage and the other is a practical application for dimming LEDs and controlling motor speed.

Ben Croston’s official RPi.GPIO documentation can be found here

Other GPIO References

RasPi.TV’s RPi.GPIO Quick Reference

Matt Hawkins’ RPiRef Android App

RasPiO® Portsplus is really useful with RPi.GPIO

The RasPiO® Portsplus board labels the GPIO ports clearly for you so that you don't need to count pins. This helps you avoid wiring errors and damage. Click the photo for more information.

RasPiO Portsplus on Pi2

 Posted by at 2:19 pm