would you give me a hand to configure an accelerometer on Raspberry PI B +
These are my components:
- Raspberry PI B+
http://www.amazon.it/Raspberry-Pi-Mo.../dp/B00LPESRUK
- Base Board
http://it.farnell.com/microstack/mic...rry/dp/2434227
- Acelerometer
http://it.farnell.com/microstack/mic...rry/dp/2434229
I followed the official document of the accelerometer:
http://www.farnell.com/datasheets/1860445.pdf
I installed python3microstacknode, launch the command python3 /usr/share/doc/python3-microstacknode/examples/accelcat.py
and gives me this error:
Code: Select all
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
What could have happened?

