SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.

I have this product: , my version came with the atmega 168. I was using the pre installed test firmware to get raw values which seemed to output dynamic values (except after doing a self test via the menu where it never passes and breaks the raw values afterwards).
Yesterday I decided to install this firmware: ...
which as they say it also works with the 168 (code is small enough).
I used the Arduino IDE, went with the board "arduino pro or pro mini 3.3v 8 mhz, w/ ATmega 168" and uploaded the firmware with no errors. Checking the serial line I see that I get values like this:

Sparkfun 9DOF Razor AHRS

I downloaded everything to run the Python GUI and it seems to run fine (I can read the port and get the values as I can see in the output text of VIDLE) but the problem is that the 9DOF does not reflect the movements as expected, not even close, just moves slightly and does not respond correctly. When I move the device I can see that the output numbers in the VIDLE console change.
And, another problem, the parsing breaks after several lines, looks like the stream could be corrupt. See a complete run here: ... NzI1&hl=en

I'm using Python 2.7 and a Sparkfun FTDI usb 3.3v board to talk to the 9dof

Can anybody give a clue on what's going on? Do I need to do any calibration? Do I have a defective board?

Best regards and thanks in advance.

Solved it myself, posting here in case anybody sees the same problem.
The issue is not with the device itself (or the flashing of the code) but it has to do with these factors: initial stabilization, speed of output and baud rate.

First of all when you power the 9dof put in in a still position (eg on top of a table) to let it stabilize for a few secs.
Second, every time you output the values to a terminal (or to the console in the Python script) you're introducing a huge delay in data processing. In order to allow the Python script to work properly I had to disable all "print" commands to the console and disable writing the output to an external file.
Last, I had to change the baud rate in the 9dof code from 38400 (which was my choice because I had a bluetooth module set to this rate) to 57600 which is the one originally provided in the code.

Now the Python script works properly for me :) (code attached, rename from .txt to .py)

You do not have the required permissions to view the files attached to this post.