SparkFun Electronics will be closed on November 26, 2020 and November 27, 2020 for the Thanksgiving holiday. We will begin normal operations at 9:00 AM Mountain Time on November 30, 2020.


Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.



Member Since: May 4, 2011

Country: United States

  • problem solved by David's updte.

  • I wonder if anybody else encountered this problem.
    By David's update, everything is fine. I think, I need to change some constants, however...
    Now the problem is, the Yaw angle is not really reliable. The magnetometer data change when the board's position is changed while it's orientation is kept constant.
    for example, if I mechanically keep yaw/pitch/roll constant, and I just move the board on the edge of my table, in different direction, the yaw angle (amagnetometer data in the detailed data), changes...
    it shouldn't be the case, should it?!

  • Hi,
    I have the same problem, with the yaw angle. It sticks to one value,
    but I don't exactly understand what you say about how to fix the problem?
    -I am using the 3.3V FTDI board, and that's it, no extra wires connected.
    Now, how should I change it?
    -use an adaptor (5 or 3.3v?), and connect it directly to the board's power pins?

  • Hi David,
    I need a code that gives the euler angles properly. The AHRS code gives 0 for gyros somehow, so everything is wrong.
    Can you send me some proper code? mortezahaydari at yahoo dot com

  • Correct me if I am wrong. It seemed to me that the pre-loaded code gave raw values correctly, at leant no "zero" values.
    The AHRS code base, couldn't give the gyro values: they are apparently all zeros.
    Now, I see this updated code, which I assume is to communicate with the gyros properly.
    Now, there is a need to combine these codes, and use the board properly, at last.
    I wonder if anybody have done so already? Please email me mortezahaydari at yahoo dot com. Althu I love to play with these boards, and learn a lot, and the work is very well appreciated, my very goal of buying it was to USE it, as my deadlines are very tight, and I really can't afford the time to fix these stuff myself.
    Can anybody help a little bit!

  • Hi,
    I have three questions:
    It seems that the FTDI-USB cable suggested in http://code.google.com/p/ardu-imu/ does not work properly with this board, based on their troubleshooting comments.
    I wonder if it works fine with Sparkfun's FTDI basic breakout 3.3V?
    Is it possible to receive the raw accelerometer and gyro sensor results directly to the PC by serial port?
    Is it possible to get the serial data via the same FTDI-USB port?
    Thanks very much