Shop OBEX P1 Docs P2 Docs Learn Events
Reading from BMA180 Accelerometer via SPI — Parallax Forums

Reading from BMA180 Accelerometer via SPI

HochbergerHochberger Posts: 5
edited 2012-07-15 12:12 in Propeller 1
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 :(

Comments

  • Cats92Cats92 Posts: 149
    edited 2011-03-05 05:11
    Perhaps read diydrones or aeroquad forums they use this Accelerometer on their drones.

    I tried to join a piece off the code they use in a text file
  • seiko99seiko99 Posts: 9
    edited 2012-07-15 12:04
    I would like to use this accelerometer as well and am just having no luck. I have been trying i2c with no luck. The fact that I am new to spin is not helping.
    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.
  • Mike GreenMike Green Posts: 23,101
    edited 2012-07-15 12:12
    Look at the BMA180 and I2C thread.
Sign In or Register to comment.