I am using Raspberry Pi 3 Model B+ and a BrickPi board. I have also modified installed Raspbian OS by following the steps mentioned in https://www.dexterindustries.com/BrickP ... d/pi-prep/
After this step, I have connected the motor and tried to test the motor by running the motor_sensor.py
The following error is coming up:
[email protected]:~ $ python motor_sensor.py
Traceback (most recent call last):
File "motor_sensor.py", line 7, in <module>
File "build/bdist.linux-armv7l/egg/BrickPi.py", line 492,
File "build/bdist.linux-armv7l/egg/BrickPi.py", line 698,
line 572, in inWaiting
line 456, in in_waiting
s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
IOError: [Errno 25] Inappropriate ioctl for device
motor_sensor.py script is as follows:
from BrickPi import *
BrickPi.MotorEnable[PORT_A] = 1
BrickPi.MotorSpeed[PORT_A] = 200
I asked this question and I got a reply from Dexter Industries Engineer saying that
"The original BrickPi and the BrickPi+ are not supported on Raspbian Stretch. You will need to use an older version of Raspbian, such as Jessie or Wheezy.
From your description and output message, it seems like an issue with the RPi software, not the BrickPi firmware"
How can I switch to Raspbian Jessie or Wheezy from Stretch and is it recommendable??