Training Bike Visualization

Nikolaus Gradwohl2008-12-08T14:58:00+00:00

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.

training bike

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 :-)

Tweet This! submit to reddit Digg! Tags: | 11 comments | no trackbacks

See also:

processing ical-flowers-2.0
a circular chart im Processing
sine-function experiment
Calling R from Processing
Blinking Logfile Map



Leave a response

  1. Edward 2009-01-13T02:34:20+00:00

    Hello! Great project you have here. What is the rating on your resistors? I am a total electronics beginner, so every bit of information helps :)

    Thanks, Edward

  2. Nikolaus Gradwohl 2009-01-15T17:33:35+00:00

    i'm a complete electronics beginner myself. i use 330Ohm resistors, but other values should work too.

    as far as i know in the arduino tutorial a 10kohm resistor is used and in "make things talk" a 1kohm resistor is used

  3. Management Training 2009-06-26T13:41:09+00:00

    Is first Aid training necessary to provide help in rescue operation?

  4. SEO 2009-06-27T10:54:28+00:00

    Excellent post.Its a great project for an electronics student.I’m really impressed with your article, such great information you mentioned here.. SEO

  5. nintendo r4 2009-07-07T08:56:34+00:00


    Visualization is not meant to replace on the bike training but can make that training pay off in a big way. Eastern European research has found that athletes improve most quickly if visual training comprises fifty to seventy-five percent of the total time spent training! Like any training imagery will only pay off if you do it regularly and frequently. nintendo r4

  6. car service 2009-08-31T09:12:44+00:00

    Very creative. One of the most interesting things about living in the computer age is the way that modern technology has been made affordable and readily available to all sorts of people, and you see inventive things like this training bike visualization, which would perhaps never have existed in, say, 1990. You might want to go ahead and patent this invention and see if there’s a market for it. If there’s such a thing as a car service that does nothing but attach spinning rims, then it’s certainly not hard to imagine a market for something a little more practical and cool, like this.

  7. XRF 2009-10-21T09:13:50+00:00

    Hi, Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work…

  8. china tour 2009-12-18T08:33:35+00:00

    great project so creative

  9. Training Company 2010-05-01T11:13:50+00:00

    Simple idea, although on many bikes the proximity of the Magnet to the Reed Switch may require some adjustment to ensure accurate rpm display.

  10. Nada 2012-03-16T07:18:02+00:00

    Thanks for all your hard work, even if some of it involved a hcamomk. I'm a tinkerer with no formal education in electronics but have created a couple of Arduino projects that wouldn't have been possible without the contributions of people like you. I've recently purchased a RoboCylinder linear actuator off ebay and am working on figuring out how to implement control of it through an Arduino. That is how I came across your PID work. I've got a long way to go yet but I wouldn't even be attempting this project were it not for the open source community. So, you have help to expand my horizons and have brought happiness to the life of a stranger. Many, many thanks.

  11. Mechanic peter Mac 2016-09-23T15:00:43+00:00

    Awesome work Nikolaus.The invention makes training more precise. It allows athletes to really be able to hone in on the areas that require extra work. thanks for sharing.

Leave a comment