lsm303d write_byte_data error

I’m running a program using raspi, the grove base board, a GPS, and an Accelerometer / Compass sensor. I’ve been using this setup for about 3 weeks with no issues other than my coding ability, but Today I booted up and tried to start the program and got hit with an error.

Here’s the error:



/home/pi/.local/lib/python2.7/site-packages/simple_pid/PID.py:22: UserWarning: time.monotonic() not available in python < 3.3, using time.time() as fallback

warnings.warn(‘time.monotonic() not available in python < 3.3, using time.time() as fallback’)

Traceback (most recent call last):

File “BoatBrain.py”, line 30, in

AccelCompass = AccelerometerCompass()

File “/home/pi/Desktop/BoatControl/PythonBoat/DataAcquisition.py”, line 7, in init

self.acc_mag = lsm303d.lsm303d()

File “/home/pi/Desktop/BoatControl/PythonBoat/lsm303d.py”, line 102, in init

self.write_reg(0x57, self.CTRL_REG1) # 0x57 = ODR=50hz, all accel axes on

File “/home/pi/Desktop/BoatControl/PythonBoat/lsm303d.py”, line 119, in write_reg

bus.write_byte_data(self.LSM303D_ADDR, reg, data)

IOError: [Errno 110] Connection timed out



I have no clue what to make of this. tried restarting and I’m stumped.

Did you try to run again after the error? and what was the output?