Hi! I am about to start bicycle winter training on rollers and I'm wondering how I can make things more fun by gathering and visualizing some data. Maybe there would even be an actual benefit for my training.
One goal of bicycle training is to make the pedal movement as efficient as possible, which also means as steady as possible, so that there is as little acceleration (increase or decrease of angular speed of the cranks) as possible, because accelerations mean that additional power is required from the cyclist at some point. Any little speed change during pedal revolutions are supposed to make a difference here. More steady pedaling should indicate better efficiency.
If I could measure the steadiness of my pedaling, I could for example compare my steadiness between rides and see if there is progress. Or, even better, I could use some sort of real time visual feedback to inform myself of how steady my current pedaling is.
I haven't found any descriptions of a similar project so far, so I'm about to figure out what would be required to come up with a simple solution for this. Maybe someone knows better and can provide useful tips?
The easiest setup I can think of is a single accelerometer fixed to the pedal crank or to the chain wheel. The accelerometer would basically measure centripetal force (plus the gravity force pointing to different angles, relative to the accelerometer). Every speedup or slowdown in pedaling should result in an immediate change of the centripetal force.
With a radius of 10 centimeters (distance from crank axis to accelerometer mount point) and a maximum pedaling frequency of about 120 rounds per minute, my calculations show about 1.6g as the expected centripetal force. The force of gravity would have to be added or subtracted to/form this, depending on the point where the accelerometer is during a revolution, so the range should be between 0.6 and 2.6g during pedaling with 120 RPM (which I can hardly do, by the way).
The lower bound for pedal rotations per minute should be somewhere near 80 RPM. With that speed, the centripetal force is 8,4 N, which is below 1g. So the force range for slow pedaling is roughly between 0g and 2g.
I have no experience with accelerometers. The ADXL335 with +/- 3 g range and analog interface could be a good choice. It measures 3 axes, which I don't expect to be necessary (sine we are rotating in a plane), but having data for more 2 axes instead of one could turn out to be helpful. I don't know yet.
As for resolution of force measures during one pedal revolution, I think there the absolute minimum would be 4 measures per pedal revolution. With 120 RPM this would result in 8 samples per second.
A first practical consideration is: How to mount the stuff on the bike? I have Arduino pro mini 328 around which I could use, they might even fit into the crank axis, including batteries. So I guess that can be solved.
Another consideration: Data logging on the bike or direct transfer to Arduino to computer?
With the pedals rotating, any wired connection seems impossible. So one option could be writing data to an SD card. The data rate at 8 samples per second and 10 bit resolution and 2 axis values should be 160 bit/sec. I guess it wouldn't be a problem to write this away to the card every now and then.
Recording is fine, but real time feedback on a display or computer (plus recording) would be much more interesting. This could be done using wireless data transfer - another area where I haven't got any experience so far. From what I read, XBee should be easy to use and with 250 Kbit/sec, the possible data rate would be far more than enough. An Arduino Uno attached to my laptop via USB could work as the receiver station.
A few questions:
- Is XBee the simplest solution for wireless transfer? (Simple is important to me, since I'd rather have results earlier than cheapest.)
- Any better recommendations for an accelerometer to choose?
- Would it be better to have two accelerometers mounted in opposite positions? So their measures could negate out gravity effects?
Thanks for any input!
EDIT: As a side effect, from the gathered data one could also deduct cadence (pedal rotations per minute). This, combined with wheel rotations per minute, could allow to deduct gear transmission ratio.