zeckendorf / ADXL362-RPi

Library for interfacing with ADXL362 3-axis accelerometer for the Raspberry Pi
2 stars 3 forks source link

Library not working with latest Raspbian Stretch #6

Open th0f opened 6 years ago

th0f commented 6 years ago

I'm trying to get this library working with the latest Raspbian Stretch, but I'm not getting any values. The example is returning zeros... I found a thread on the raspberry forum hinting at adding a 'spi max speed' value. The datasheet states a speed of 1MHz, so I have added a line below spi.open saying self.spi.max_speed_hz = 1000000. Unfortunately this is still not working, so I am hoping anyone could have a quick look into this and see what might be wrong. I have used this library on Raspbian Jessie and there it was working, so must be something with drivers I guess. Thanks!

update: Started with a clean install and things run and report values, but as soon as you stop the python code from running and restart, the y and z values don't change anymore. Also the temperature value is +/- 200 (in both occasions), which is too low.

zeckendorf commented 6 years ago

I actually don't have any of this hardware on-hand for debugging anymore, but if you get a solution put together I'll happily approve a PR!