Posts

combining GPS and barometric altimetry: intro

Image
A discussion on the GoldenEmbed mailing list got me thinking. GoldenEmbed is an open source hardware project to produce an ANT+ compatible cycling head unit: one which can record power from a variety of ANT+ compatible power meters such as Quarq Cinqo , SRM , and MetriGear Vector . It's built out of some nice modules available from SparkFun , basically a modern version of what Radio Shack used to be: a source for electronic hobbyists. The project was inspired by the Quarq Qollector prototype shown at Interbike, and Tim Clark of MetriGear's similar ANT+ sniffer used in Vector development. The MetriGear data logger which in part inspired GoldenEmbed So some of the GoldenEmbed guys mentioned you could go beyond ANT+ sniffing and incorporate GPS and barometric altimetry: SparkFun sells all of the required hardware. Cool! This enables the development of the functionality Garmin provides. So the question is: what's the best way to manage both GPS-based altimetry and baro...

power accuracy and the uniform cadence approximation

An interesting issue came up in the Wattage list , and that is that the Cinqo (and presumibly the SRM ) calculate power under the assumption that the pedal cadence is uniform throughout the pedal stroke. This is an interesting assumption, worth investigating, in light of my recent discussion of Metrigear hitting its 1.5% power target. In my discussion on Metrigear, there were two principal limiting factors to accuracy: one was nailing down the pedal orientation, the other was getting the pedal rotation rate correct. For the orientation, the system was getting close after only 20 seconds of my simulation of highly variable cadence, a worst-case scenario. Results I didn't show were that if I simulate longer periods, the system continues to improve on its orientation determination, and can nail that down to a fraction of a degree. That's good enough to separate out the "propulsive" component of force. On the other hand, the primary challenge remained the determ...

simulating Metrigear Vector cadence extraction (pt 4: orientation)

Image
To extract cadence from accelerometer data is the accelerometers need to be properly oriented. So I constructed a simplistic scheme to extract the angle from the accelerations. It's super-simple: just accumulate average accelerations, then calculate a transformation rotation angle which beings one of them to zero. Consider the following diagram: From the perspective of the spindle, radial acceleration is always in the same direction. Tangential (I seem to alternate between calling this "tangential" and "transverse") acceleration is also always in the same direction, as long as the crank rotation is consistently increasing (or consistently decreasing). I also show a vector for road vibration. It's easy to see this will tend to cancel out over time for each spindle. When the spindle rotates 180 degrees, it's in the opposite direction relative to the spindle. The same deal with acceleration in the direction of motion. When the spindle rotates 180 de...

simulating Metrigear Vector cadence extraction (pt 3: cadence accuracy)

Image
Last time I simulated the Metrigear Vector cadence extraction using reasonable assumptions about vertical and longitudinal vibrations, and a quite arbitrary choice on differential vibrations (separate for the left and right pedal). The result looked fairly good, despite the fact my algorithm for extraction is just something I hacked together on my train commute, hardly a best case of what one could do. I'm not using all the information which is available. I'm not really using the transverse component of acceleration, for example. But let's take a closer look at those numbers... I ran 10 simulations, and for each time, I calculated the error in the rpm from the ideal value (pre-noise). I calculated the root-means-squared of these errors, and plot them here versus the ideal cadence: Cadence errors, in revolutions per minute, are plotted on the y-axis. Also plotted is a curve derived from a simple analytic model, based on the amplitude assumed for the differential noise....

simulating Metrigear Vector cadence extraction (pt 2)

Image
Back to modeling the Metrigear Vector with my little Perl scripts... First I modeled the "inputs". I assumed vertical acceleration noise, affecting each pedal together, was around 1 g peak amplitude. I neglected internal modes, which I assume are too high frequency to affect the signal. So my vibration signals were simular to those described in this post . For longitudinal noise, also affecting each pedal together, I assumed less amplitude: around 0.5 g. I then added an additional noise component which affects each pedal independently, assuming a peak amplitude of around 0.25 g. Honestly I pulled this number out of thin air. Microaccelerometers typically have a noise density measured in the tens of micro-g's per root Hz. Electronic noise on the accelerometers isn't an issue, unless they're terribly starved for current. So the noise would have to be an actual acceleration noise. For example, crank flex would change the orientation of the spindles relative t...

Dolphin South End Runners Club Waterfront 10-miler

Image
Today was my first road race of the season -- running road race, that is. In late 2008 I seat a goal of racing the Austin Marathon in 2009. It would be a fairly tight schedule, but I'd thought I could do it. Things were going well, as I raced first the Dolphin South End Runner's Club Embarcadero 10km road race , then the Pacific Coast Trail Runs Woodside 17 km , then the Run Wild for a Child 10 km road race. But then poor health following a cycling trip to Thailand and Laos put a stick into the spokes of that idea. But I built back some running fitness in time for the Enviro-Sports Woodside half-marathon trail run in Feb 2009. Cycling took my focus back after that. But in fall of 2009, I returned to a running/cycling mix to my activity. Unfortunately my enthusiasm got the better of me, though, and I ramped up my runs too quickly. Ever since then, I've had issues with my left leg, primarily the ITB. But I've been working on that, and it's coming around. So f...

simulating Metrigear Vector cadence extraction (pt 1)

Image
I've done a lot of discussion about the MetriGear Vector . A brief summary of some conclusions. The Vector measures force components on the pedal. These force components can be derived from bending moments measured at at least two positions in the spindle. Power equals force in the direction of pedal motion multiplied by pedal speed. Pedal speed is rotation rate multiplied by crank length. Crank length can be derived from data, or instead as Metrigear has indicated, can be provided by the user. Providing it simplifies calculations. With a spindle firmly screwed into a crank, the propulsive direction is always the same, perpendicular to the direction of orbital (centripetal) acceleration. Acceleration in the tangential (propulsive) direction averages to zero, while the centripetal acceleration averages to a positive value. Determining which direction of acceleration averages to zero allows the system to orient itself, to determine which is the propulsive direction, without ...