Tag Archives: Accelerometer

Implementing the Gauss-Newton Algorithm for Sphere Fitting (3 of 3)

The first post in this series made it clear that the major computational and storage costs to implementing the Gauss-Newton algorithm come in computing the matrices and . By carefully avoiding materialization of the Jacobian matrix and the residual vector, … Continue reading

Posted in Mathematics | Tagged , , , , , , , , , , | 4 Comments

Implementing the Gauss-Newton Algorithm for Sphere Fitting (2 of 3)

I sketched a naïve implementation of the Gauss-Newton algorithm for sphere fitting, and provided an implementation in Octave. While it works fine on a laptop, it uses far too much memory to handle more than a handful of calibration samples … Continue reading

Posted in Mathematics | Tagged , , , , , , , | 2 Comments

Implementing the Gauss-Newton Algorithm for Sphere Fitting (1 of 3)

In some calibration strategies we encounter a sphere fitting problem: we need to find the map that does the best job sending the observed data to a unit sphere. This simple problem statement leaves two critical questions unanswered. What family … Continue reading

Posted in Mathematics | Tagged , , , , , , | 2 Comments

muCSense: Using Calibration

I just added some new code to the muCSense library to help calibrate accelerometers and magnetometers. I plan to use the framework to add calibrators for gyros and other sensors too. In this post, I’ll walk through an example sketch … Continue reading

Posted in Electronics, How To | Tagged , , , , , , , , , | 3 Comments

Connecting to Sparkfun’s 9DOF “Sensor Stick”: I2C access to ADXL345, ITG-3200, and HMC5843

[Update 24 Aug 2012: This post gives good detail about how to communicate with the sensors on the 9DoF Sensor Stick, but if you want a cleaner solution (that has been updated for Arduino 1.0), have a look at this … Continue reading

Posted in Electronics, How To | Tagged , , , , , , , , , | 41 Comments

Accelerometer Calibration IV.1: Implementing Gauss-Newton on an ATMEGA

This is the third post in a series.   Introduction Simple Methods Least-Squares and Gauss Newton Implementing Gauss-Newton on an ATMEGA (this post) Error Analysis ? Quick Summary This post is short on explanations, I just wanted to something a … Continue reading

Posted in Electronics, How To | Tagged , , , , , , | 13 Comments

Accelerometer Calibration III: Improving Accuracy With Least-Squares and the Gauss-Newton Method

This is the third post in a series.   Introduction Simple Methods Least-Squares and Gauss Newton Streaming Gauss-Newton on an ATMEGA Error Analysis ? In the last post we looked at some simple calibration methods and they didn’t seem to … Continue reading

Posted in Electronics | Tagged , , , , , , | 18 Comments

Accelerometer Calibration II: Simple Methods

This is the second post in a series.  It starts here. Now let’s look at some of the simplest methods we can use to calibrate an accelerometer.   By “simple” here I mean simple all the way through: easy to … Continue reading

Posted in Electronics | Tagged , , , , | 3 Comments

Accelerometer Calibration I: Introduction

In my last post I described how to start reading data from an ADXL335 accelerometer with an Arduino and convert those voltage readings into standard units. I even showed some real data coming out of my device and when you … Continue reading

Posted in Electronics | Tagged , , , , | 3 Comments

Getting Started with Accelerometers and Micro-controllers: Arduino + ADXL335

My first home electronics project — a device to measure leg acceleration and balance while skiing — involved connecting an ADXL335 on a Sparkfun breakout board to an Arduino Uno.  Going in, I was an experienced programmer but knew nothing … Continue reading

Posted in Electronics, How To | Tagged , , | 39 Comments