Shop OBEX P1 Docs P2 Docs Learn Events
5dof IMU board help — Parallax Forums

5dof IMU board help

waterloggedwaterlogged Posts: 12
edited 2010-03-04 22:23 in Propeller 1
I'm relatively new to the propeller, but I have completed the whole tutorial and done a couple of projects. I've started working with the sparkfun 5dof IMU with the code from the object exchange at
http://obex.parallax.com/objects/239/
and I keep getting nonsensical values. It seems like the gyro readings are fine (get_x_rate and get_y_rate), but every other reading just comes out as some random whole number between 0 and 30000, though it could be higher.

Anybody know what could be going on? I've been at this for a couple days now, but I can't seem to figure out what could be wrong.

Post Edited (waterlogged) : 2/28/2010 9:15:28 PM GMT

Comments

  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-03-01 00:30
    It might be worth attaching your code.

    Graham
  • wjsteelewjsteele Posts: 697
    edited 2010-03-01 10:49
    Are you using the MCP3208 (or similar?) ADC? If so, you might not have turned on the pins, which would cause them to have random noise in them.

    In the IMU library in the OBEX, there is a filed called MCP3208.spin that contains the method "Start." The last parameter in that method is the "Mode" which indicates which pins you want to listen to.

    Bill
  • waterloggedwaterlogged Posts: 12
    edited 2010-03-04 22:23
    Bill, yep, you pegged the nail on the head. Or however that saying goes. The mode was off for what I had set up. Thank you very much for the reply, it really saved me a great deal of time.

    Graham, Sorry about the oversight, I thought I had. Next time, I will be sure to.

    Thanks again for all your help.
Sign In or Register to comment.