swisswilson
Posts: 17
Joined: Fri Aug 31, 2012 9:56 pm

channel sent is invalid

Tue Aug 26, 2014 11:51 pm

im using a model B+ raspberry pi and using some of the GPIO pins and am getting the error "channel sent is invalid on the raspberry pi" when trying to set any gpio over 26 to an output. i have it set to gpio.setmode as BOARD and have tried numerous gpio pins but still get the same error. any suggestions or help would be great.

swissW

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: channel sent is invalid

Tue Aug 26, 2014 11:56 pm

Most likely the GPIO module you're using is not compatible with the B+.
If you're using the python module RPi.GPIO (on Raspbian) then you have to make sure that you're using v0.56
You should get that version with

Code: Select all

sudo apt-get update
sudo apt-get upgrade

swisswilson
Posts: 17
Joined: Fri Aug 31, 2012 9:56 pm

Re: channel sent is invalid

Wed Aug 27, 2014 12:22 am

just tried doing update and upgrade and it made no difference, still the same error message


swisswilson
Posts: 17
Joined: Fri Aug 31, 2012 9:56 pm

Re: channel sent is invalid

Wed Aug 27, 2014 12:41 am

ive checked what version of gpio im using and i have 0.5.6 which is what i thought was needed to use the model B+ gpio pins. still cant fiqure out why i cant use the extra GPIO pins... :x

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: channel sent is invalid

Wed Aug 27, 2014 1:38 am

I started looking into this, but then spotted http://sourceforge.net/p/raspberry-gpio ... ickets/69/

Return to “Python”