BrickPi runs most the python motor and sensor examples but for only a maximum of around 10 seconds and then fails.
The error is always when BrickPiUpdateValues() is called.
Then it refers to lines 413 and 497 in BrickPi.py
Then it refers to /usr/lib/python2.7/dist-packagees/serial/serialpoix.py, line 485, in write.
The final lines read
raise SerialException(‘write failed: %s’ % (v,))
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error
I have attached a screen capture of the error.
As i am using a modified own image SD card i have checked all the instructions again and found that i had omitted this
Enable Serial Pins
In order to use the Raspberry Pi’s serial port, we need to disable getty.
Open the file by entering: sudo nano /etc/inittab
Now, find the line that says “T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100″
And comment it out by adding # in front of it
Save the file and exit.
This has solved the problem, now to see what the BrickPi can really do.
Hey ShamrocksCrew, thanks for letting us know!
One thing we’re working on: a script to handle all the setup for the BrickPi. It would help with problems like this.
I think that /etc/inittab is another file that may be overwritten if you run
on the BrickPi Raspbian image.