I just received a Microstack Accelerometer about a week and a half ago. I put the Accelerometer onto the Microstack Baseboard and followed all of the instructions that were provided here.
When I go to run the example in the command line: python3 /usr/share/doc/python3microstacknode/examples/accelcat.py
, it gives this error:
pi@raspberrypi ~ $ python3 /usr/share/doc/python3-microstacknode/examples/accelcat.py Traceback (most recent call last):
File "/usr/share/doc/python3-microstacknode/examples/accelcat.py", line 8, in <module>
accelerometer.init()
File "/usr/lib/python3/dist-packages/microstacknode/accelerometer/mma8452q.py", line 115, in init
self.standby()
File "/usr/lib/python3/dist-packages/microstacknode/accelerometer/mma8452q.py", line 127, in standby
self.ctrl_reg1.value &= 0xff ^ CTRL_REG1_SET_ACTIVE
File "/usr/lib/python3/dist-packages/microstacknode/accelerometer/mma8452q.py", line 213, in value
v))
File "/usr/lib/python3/dist-packages/microstackcommon/i2c.py", line 85, in transaction
ioctl(self.fd, I2C_RDWR, ioctl_arg) IOError: [Errno 5] Input/output error
When I run sudo i2cdetect -y 1
I get a blank table.
Here is my setup:
Why is this not working?
The documentation doesn't really help you if there was an error.
I am a pretty big noob when it comes to Rasbian, so the more dumbed down the answer, the better.
Any help would be nice!