BrickPiSetupSensors() hangs[SOLVED]


#1

Hi!

After configuring my own SD card using the “Modify your own image” option and installing the python brickpi module, I am able to activate the LEDs, but for everything else I have the following error:

File “test.py”, line 7, in <module>
BrickPiSetupSensors()
File “build/bdist.linux-armv7l/egg/BrickPi.py”, line 476, in BrickPiSetupSensors
File “build/bdist.linux-armv7l/egg/BrickPi.py”, line 680, in BrickPiTx
File “/usr/lib/python2.7/dist-packages/serial/serialposix.py”, line 475, in write
n = os.write(self.fd, d)

The error happens all the time, including when I execute : sudo python LEGO-Touch_Sensor_Test.py. I am using the 8x AA battery pack and a RaspberryPi 3 board model B.

Is there something that I am missing to make it work? Did I do something wrong?

Thanks for any help,

Fred


#2

Any help, please…


#3

Hey Zothicus, it sounds like serial communication isn’t working. Is there any way you can start with the Raspbian for Robots image?


#4

Hi JohnC,

It worked, thanks!


#5