It will be easy to keep your exercise routine on track if you don’t have to do anything at all to log your workouts. [Reefab] developed this add-on hardware for his exercise bike that automatically logs his workout on the Internet.
He’s using RunKeeper to store and display the workout data. They offer a token-based API which [Reefab] implemented in his Arduino sketch. The hardware to grab data from the exercise bike is quite simple to set up. A rare-earth magnet was added to the fly-wheel with a reed switch positioned next it in order to measure the number and speed of rotations. This is exactly how a consumer bicycle computer works, needing just one accurate measurement corresponding to how far the bike travels with each revolution of that wheel.
In addition to the networked-logging feature [Reefab] included a character display so you can follow your speed and distance data during the workout.
[Minisystem] has a thing for dynamo powered bike lights. He wanted to measure how well his latest is working, but just logging the current flow through the LEDs wasn’t enough for him. He picked up a cheap Lux meter and hacked into the circuit to log measurements while he rides.
He started by cracking open the case to see what the meter held inside. There’s a Texas Instruments Op-Amp that connects to the light sensor. The datasheet for the part didn’t help much, but [Minisystem] did find that the current output on one of the pins changes with light intensity. Further testing led him to discover that the signal is a multiple of 10 for what is shown on the Lux meter’s readout. All he needs to do is take regular measurement of this current and save that data.
To do this, he grabbed his trusty Arduino and made a connection between one of its analog inputs and the op-amp pin. It should be easy enough to dump measurements into the Arduino’s own EEPROM, or use an external storage chip or SD card.