GPIO problems on the Raspberry Pi 2

gpio

EDIT/UPDATE: This issue is now resolved

Simply update your Raspberry Pi to fix this issue:
sudo apt-get update
sudo apt-get upgrade

There is currently an issue with using the GPIO pins on the Raspberry Pi 2. The issue concerns the RPi.GPIO Python library, which currently does not work properly. The reason for this is a bug in the Raspbian operating system. Until this bug is fixed, RPi.GPIO cannot work correctly. The author of the RPi.GPIO library, Ben Croston, is currently working on a fix for this and has had some success. However, his work is currently in an unstable ‘development’ state and hasn’t been brought into the main repositories.
At this present time, I recommend just being patient. Please do not do the following things:
  • DO NOT run rpi-update
  • DO NOT install the development version

Both of these things may leave your Pi doing unexpected things – they represent the ‘bleeding edge’ of development and they’re just not suitable for the vast majority of users.

It is likely that the issue will be fixed in the next week or two. I will report as soon as I receive word on a proper fix and how to install it.

Pimoroni have issued rather good advice concerning their products and agree with me on the state of things and the need to be patient for the proper fix.

Please bear in mind that this bug will affect everything using RPi.GPIO, including the very-popular Pibrella board and also the CamJam EduKits that we sell through The Pi Hut.

GPIO diagram at the top from Raspberry Pi Spy

7 comments for “GPIO problems on the Raspberry Pi 2

  1. On the plus side, as with the Xenon 2 Megablast issue, it’s notable that the community identified the problem and proposed a workaround, in about a billionth of the time that a closed-source software house would have done. And I bet we’ll see an upstream fix a lot quicker than a certain Redmond-based OS provider would roll out to its users.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.