i wrote a processing sketch to visualize and record sessions on a training bike. To calculate the rotation-speed of my training bike i hooked up 2 reed-switches to my arduino and taped them to my training bike. Than i sticked a rare earth magnet on each pedal.
the processing sketch draws a small figure on a bike which is animated at the same speed as the bike.
the sketch also records the timestamps to a log file for later analysis.
The arduino and the processing sketch can be downloaded here
this is what the schematics look like (all the electronic-masters out there - be gentle - this is my first schematic drawing :-) )
this is what my breadboard looks like
here you can see the reed switch sticked to my bike
this is the magnet on the pedal - at first i wanted to fix it using some tape too, but it turns out that the magnet is strong enought
this is a diy hobby project of mine. i'm not liable for any heart attacks, lost weight, or similar effects that can occour on your training bike :-)
a circular chart im Processing
Calling R from Processing
Blinking Logfile Map