What is this error ?

391 views
Skip to first unread message

alarmap...@gmail.com

unread,
Feb 16, 2015, 1:36:35 PM2/16/15
to privat...@googlegroups.com
Traceback (most recent call last):
  File "alarm.py", line 200, in <module>
    main()
  File "alarm.py", line 182, in main
    BuildGPIOList()
  File "alarm.py", line 66, in BuildGPIOList
    GPIO.setup(GPIOList[i], GPIO.IN)
ValueError: The channel sent is invalid on a Raspberry Pi

Gadjet Nut

unread,
Feb 16, 2015, 3:21:57 PM2/16/15
to privat...@googlegroups.com
It means the pin number is out of range. For Raspberry Pi A and B valid ranges are 1-26 and on the A++ and B++ valid range is 1-40. 

Someone else has the same problem yesterday on a B++ and fixed it by using a pin between 1-26, but you should be able to use all 40 pins with Python on a Rpi A or B ++. 

See this Raspbery Pi forum thread:


You are most likely using an out dated GPIO library and need to update:

sudo apt-get update
sudo apt-get upgrade

Reply all
Reply to author
Forward
0 new messages