Reading from BMA180 Accelerometer via SPI
Hochberger
Posts: 5
Hi everybody.
I´m working on a project where I use BMA180 accelerometer:
http://www.sparkfun.com/products/9723
I have never done anything like this before and I need to read x,y,z values from BMA180 memory. I read datasheet and try to write a SPIN code using SPI_SPIN from OBEX. After many attemps of modifying the code, none of them worked. I think that I have completely bad idea of how reading from this memory works.
Can anybody give me an advice how to read those values?
Thank you, I'm realy desperate here
I´m working on a project where I use BMA180 accelerometer:
http://www.sparkfun.com/products/9723
I have never done anything like this before and I need to read x,y,z values from BMA180 memory. I read datasheet and try to write a SPIN code using SPI_SPIN from OBEX. After many attemps of modifying the code, none of them worked. I think that I have completely bad idea of how reading from this memory works.
Can anybody give me an advice how to read those values?
Thank you, I'm realy desperate here
Comments
I tried to join a piece off the code they use in a text file
Has anyone done a project with this accelerometer that can share some light on how this thing is best used? The 14 bit resolution and the interrupt pin are all things I would prefer to utilize but the i2c objects I find seem to be very tailored to specific devices to a level that is confusing me more that helping at this stage of the game.