Invalid Channel
Posted: Thu Jan 14, 2021 10:52 pm
Hi everyone,
I just bought a stereopi and tried my first tests on it. I want to play with stereo capability and stepper motors.
While I was waiting for the stereopi board delivery, I played with a stepper motor (and its controler) on a regular Raspberry pi 3 and it was working just fine.
I wired the motor on the stereoPi card (taking care of the 180 deg rotation of the GPIO pins) but wasn't able to make it running properly.
While initiating the pins to use (7,11,13,15, 31,33,35,37):
>> GPIO.setmode(GPIO.BOARD)
>> GPIO.setup(pin, GPIO.OUT)
I get first a warning for pin #7:
"RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings."
then an error when setting up pin #31:"The channel sent is invalid on a Raspberry Pi"
I tried to change GPIO.BOARD to GPIO.BCM in GPIO.setmode() but it did not help.
Any clue ?
Thanks in advance
Fred
I just bought a stereopi and tried my first tests on it. I want to play with stereo capability and stepper motors.
While I was waiting for the stereopi board delivery, I played with a stepper motor (and its controler) on a regular Raspberry pi 3 and it was working just fine.
I wired the motor on the stereoPi card (taking care of the 180 deg rotation of the GPIO pins) but wasn't able to make it running properly.
While initiating the pins to use (7,11,13,15, 31,33,35,37):
>> GPIO.setmode(GPIO.BOARD)
>> GPIO.setup(pin, GPIO.OUT)
I get first a warning for pin #7:
"RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings."
then an error when setting up pin #31:"The channel sent is invalid on a Raspberry Pi"
I tried to change GPIO.BOARD to GPIO.BCM in GPIO.setmode() but it did not help.
Any clue ?
Thanks in advance
Fred