Go Back  Bike Forums > Bike Forums > Indoor & Stationary Cycling Forum
Reload this Page >

Question on calculating distance

Notices
Indoor & Stationary Cycling Forum From spin to Zwift to Peloton, this forum is dedicated to any and all indoor training on stationary bikes

Question on calculating distance

Old 10-25-21, 10:17 AM
  #1  
coco1854
Junior Member
Thread Starter
 
Join Date: Oct 2021
Posts: 5
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Question on calculating distance

Hi

I have an old computrainer, and I'm curious how it calculates distance. My wheels are standard 26" (~ 66 cm).

My back of the envelope calculation for a 16.1 km time trial that I just did is: 66 x 3.14 x 88 (average rpm). This gives me ~ .182 km/min. I finished the time trial in 32 min. But .182 x 32 is ~ 5.82. What am I doing wrong ?

Thanks a lot in advance.
coco1854 is offline  
Old 10-25-21, 11:01 AM
  #2  
blacknbluebikes 
Senior Member
 
blacknbluebikes's Avatar
 
Join Date: Jul 2013
Location: NJ, USA
Posts: 1,278

Bikes: two blacks, a blue and a white.

Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quoted: 444 Post(s)
Liked 844 Times in 408 Posts
Could you rephrase your question as a question? you're asking about distance? but you know the distance? are you asking about speed?
blacknbluebikes is offline  
Old 10-25-21, 11:04 AM
  #3  
10 Wheels
Galveston County Texas
 
10 Wheels's Avatar
 
Join Date: Nov 2007
Location: In The Wind
Posts: 33,219

Bikes: 02 GTO, 2011 Magnum

Mentioned: 19 Post(s)
Tagged: 0 Thread(s)
Quoted: 1349 Post(s)
Liked 1,243 Times in 621 Posts
Riding inside on a Trainer is TIME Only. No Miles
Because YOU Really Don't Roll Miles.
__________________
Fred "The Real Fred"


Last edited by 10 Wheels; 10-25-21 at 11:22 AM.
10 Wheels is offline  
Likes For 10 Wheels:
Old 10-25-21, 11:19 AM
  #4  
unterhausen
Randomhead
 
Join Date: Aug 2008
Location: Happy Valley, Pennsylvania
Posts: 24,385
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 4 Post(s)
Liked 3,686 Times in 2,509 Posts
A wheel-on trainer knows how far you went because it can count the revolutions of the pick up wheel and multiply by the circumference of the pick up wheel. It has nothing to do with the wheel size of your bike.
unterhausen is offline  
Likes For unterhausen:
Old 10-25-21, 01:03 PM
  #5  
coco1854
Junior Member
Thread Starter
 
Join Date: Oct 2021
Posts: 5
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by unterhausen
A wheel-on trainer knows how far you went because it can count the revolutions of the pick up wheel and multiply by the circumference of the pick up wheel. It has nothing to do with the wheel size of your bike.
1) And how does it know the circumference ? I assume it takes the diameter of a standard wheel -- 26" -- and multiplies it by 3.14. That's how you get the circumference of any circle.

2) My confusion is; if I multiply the circumference by the revolutions per minute (my pedaling cadence) and multiply that by the the number of minutes it took me to finish the course, I should get the total distance of the course. But when I do that calculation -- circumference x rpm x minutes to finish the course -- I get ~ 5.84 km. But the length of the course, according to the software is 16.1 km
coco1854 is offline  
Old 10-25-21, 01:09 PM
  #6  
gthomson
Senior Member
 
gthomson's Avatar
 
Join Date: May 2020
Location: Great White North
Posts: 1,226

Bikes: 2013 Cannondale Caad 8, 2010 Opus Fidelio, 1985 Peugeot UO14, 1999 Peugeot Dune, Sakai Select, L'Avantage, 1971 Gitane Apache Standard, 1999 Specialized Hard Rock

Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
Quoted: 548 Post(s)
Liked 473 Times in 302 Posts
Originally Posted by unterhausen
A wheel-on trainer knows how far you went because it can count the revolutions of the pick up wheel and multiply by the circumference of the pick up wheel. It has nothing to do with the wheel size of your bike.
Well that's not totally true, based on how bike computers used to calculate distance before GPS existed. So I still have a Vetta bike computer on my old 1980's Peugeot and for it to calculate speed and distance, you need to enter the wheel size which it then does some calculation along with RPM of wheel. I'm no mathematician so won't even attempt to tell you how it all works but I'm sure someone on those forum can.
You also have to enter your wheel size when you configure your trainer on Zwift.

Though I'm not really sure what the OP is asking so maybe he's referring to something totally different.

This is the original guide it came with.
Attached Files
File Type: pdf
Vetta_C300_manual .pdf (1.27 MB, 0 views)

Last edited by gthomson; 10-25-21 at 02:09 PM.
gthomson is offline  
Old 10-25-21, 01:20 PM
  #7  
spelger
Senior Member
 
spelger's Avatar
 
Join Date: Jul 2015
Location: reno, nv
Posts: 2,296

Bikes: yes, i have one

Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quoted: 1134 Post(s)
Liked 1,179 Times in 686 Posts
Originally Posted by coco1854
1) And how does it know the circumference ? I assume it takes the diameter of a standard wheel -- 26" -- and multiplies it by 3.14. That's how you get the circumference of any circle.

2) My confusion is; if I multiply the circumference by the revolutions per minute (my pedaling cadence) and multiply that by the the number of minutes it took me to finish the course, I should get the total distance of the course. But when I do that calculation -- circumference x rpm x minutes to finish the course -- I get ~ 5.84 km. But the length of the course, according to the software is 16.1 km
is this a single speed ride? even so, you need to know the gear ratio. crank RPM is not the same as wheel RPM.
spelger is offline  
Likes For spelger:
Old 10-25-21, 01:22 PM
  #8  
spelger
Senior Member
 
spelger's Avatar
 
Join Date: Jul 2015
Location: reno, nv
Posts: 2,296

Bikes: yes, i have one

Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quoted: 1134 Post(s)
Liked 1,179 Times in 686 Posts
Originally Posted by 10 Wheels
Riding inside on a Trainer is TIME Only. No Miles
Because YOU Really Don't Roll Miles.
i love these silly answers. everyone who rides a trainer of any sort knows they are not riding any distance or climbing any elevation. we get that it is all virtual or simulated. but there sure is a hell of a lot of effort going nowhere though.
spelger is offline  
Likes For spelger:
Old 10-25-21, 01:29 PM
  #9  
10 Wheels
Galveston County Texas
 
10 Wheels's Avatar
 
Join Date: Nov 2007
Location: In The Wind
Posts: 33,219

Bikes: 02 GTO, 2011 Magnum

Mentioned: 19 Post(s)
Tagged: 0 Thread(s)
Quoted: 1349 Post(s)
Liked 1,243 Times in 621 Posts
Originally Posted by spelger
i love these silly answers. everyone who rides a trainer of any sort knows they are not riding any distance or climbing any elevation. we get that it is all virtual or simulated. but there sure is a hell of a lot of effort going nowhere though.
Many think they are riding miles
__________________
Fred "The Real Fred"

10 Wheels is offline  
Old 10-25-21, 03:07 PM
  #10  
spelger
Senior Member
 
spelger's Avatar
 
Join Date: Jul 2015
Location: reno, nv
Posts: 2,296

Bikes: yes, i have one

Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quoted: 1134 Post(s)
Liked 1,179 Times in 686 Posts
Originally Posted by gthomson
Well that's not totally true, based on how bike computers used to calculate distance before GPS existed. So I still have a Vetta bike computer on my old 1980's Peugeot and for it to calculate speed and distance, you need to enter the wheel size which it then does some calculation along with RPM of wheel. I'm no mathematician so won't even attempt to tell you how it all works but I'm sure someone on those forum can.
You also have to enter your wheel size when you configure your trainer on Zwift.

Though I'm not really sure what the OP is asking so maybe he's referring to something totally different.

This is the original guide it came with.
i think he is just comparing the CompuTrainer distance with what he calculated. sort of a sanity experiment. problem is that he needs to know the wheel RPM, and not his cadence (crank RPM), and that is not easily calculable if only avg cadence is available.
spelger is offline  
Old 10-25-21, 03:48 PM
  #11  
grizzly59
Senior Member
 
Join Date: Aug 2016
Posts: 712
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quoted: 283 Post(s)
Liked 262 Times in 164 Posts
If you are riding with a 42 tooth chainring and 15 tooth cog that would be pretty close. Your 66cm dia might be a bit high.
grizzly59 is offline  
Old 10-25-21, 04:00 PM
  #12  
genejockey 
Klaatu..Verata..Necktie?
 
genejockey's Avatar
 
Join Date: May 2007
Location: SF Bay Area
Posts: 17,907

Bikes: Litespeed Ultimate, Ultegra; Canyon Endurace, 105; Battaglin MAX, Chorus; Bianchi 928 Veloce; Ritchey Road Logic, Dura Ace; Cannondale R500 RX100; Schwinn Circuit, Sante; Lotus Supreme, Dura Ace

Mentioned: 41 Post(s)
Tagged: 0 Thread(s)
Quoted: 10397 Post(s)
Liked 11,849 Times in 6,066 Posts
Originally Posted by coco1854
1) And how does it know the circumference ? I assume it takes the diameter of a standard wheel -- 26" -- and multiplies it by 3.14. That's how you get the circumference of any circle.

2) My confusion is; if I multiply the circumference by the revolutions per minute (my pedaling cadence) and multiply that by the the number of minutes it took me to finish the course, I should get the total distance of the course. But when I do that calculation -- circumference x rpm x minutes to finish the course -- I get ~ 5.84 km. But the length of the course, according to the software is 16.1 km
You're missing a number, which is the conversion of your cadence to revolutions of the wheel. Even if you rode in a single gear the whole time, turns of the crank do not equal turns of the wheel. What gear did you run, front and rear?
__________________
"Don't take life so serious-it ain't nohow permanent."

"Everybody's gotta be somewhere." - Eccles
genejockey is offline  
Old 10-25-21, 04:05 PM
  #13  
Bald Paul
Senior Member
 
Bald Paul's Avatar
 
Join Date: Sep 2017
Location: Upstate SC
Posts: 1,692
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Quoted: 815 Post(s)
Liked 1,646 Times in 776 Posts
Originally Posted by 10 Wheels
Many think they are riding miles
When I was an auto tech, we would often have to run a car in gear while up on a lift.
Even though the car wasn't going anywhere, the odometer still changed.
Bald Paul is offline  
Old 10-25-21, 04:06 PM
  #14  
genejockey 
Klaatu..Verata..Necktie?
 
genejockey's Avatar
 
Join Date: May 2007
Location: SF Bay Area
Posts: 17,907

Bikes: Litespeed Ultimate, Ultegra; Canyon Endurace, 105; Battaglin MAX, Chorus; Bianchi 928 Veloce; Ritchey Road Logic, Dura Ace; Cannondale R500 RX100; Schwinn Circuit, Sante; Lotus Supreme, Dura Ace

Mentioned: 41 Post(s)
Tagged: 0 Thread(s)
Quoted: 10397 Post(s)
Liked 11,849 Times in 6,066 Posts
Originally Posted by grizzly59
If you are riding with a 42 tooth chainring and 15 tooth cog that would be pretty close. Your 66cm dia might be a bit high.
Not only that, but it's calculated wrong. 26" wheels are not 26" in diameter, AND the circumference figure has to include the tire. That's why cyclocomputer manuals used to have you measure the circumference with a rollout test. So, there are a number of numbers missing or incorrect in his calculation.
__________________
"Don't take life so serious-it ain't nohow permanent."

"Everybody's gotta be somewhere." - Eccles
genejockey is offline  
Likes For genejockey:
Old 10-25-21, 05:44 PM
  #15  
unterhausen
Randomhead
 
Join Date: Aug 2008
Location: Happy Valley, Pennsylvania
Posts: 24,385
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 4 Post(s)
Liked 3,686 Times in 2,509 Posts
Originally Posted by coco1854
1) And how does it know the circumference ? I assume it takes the diameter of a standard wheel -- 26" -- and multiplies it by 3.14. That's how you get the circumference of any circle.
Originally Posted by gthomson
Well that's not totally true, based on how bike computers used to calculate distance before GPS existed. .
The trainer knows how far the trainer went. It doesn't care about the circumference of the bike wheel at all. It cares about the circumference of the part of the trainer that the bike wheel rides on and the number of rotations that part has made.

I agree that the distance on a trainer isn't particularly important, but in this case there is an actual distance traveled and it's measured directly by quantities known by the trainer designer. You could drive it with a penny farthing and it wouldn't matter what the wheel diameter of the bicycle was.

I'm not sure if there is anything wrong with the OP's calculation. Maybe there is a lot of slippage. But the distance given by the trainer is the circumference of the friction wheel times the number of rotations that it has made. Simple as that. No bike wheel size needs to be involved at all to know that.
unterhausen is offline  
Old 10-25-21, 06:43 PM
  #16  
grizzly59
Senior Member
 
Join Date: Aug 2016
Posts: 712
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quoted: 283 Post(s)
Liked 262 Times in 164 Posts
https://www.cateyeamerica.com/tire-size-calculator/

So just for sport-

26" wheel- I'll estimate a 1.5x26 (40-559) tire, rolling circumference 2005mm per Cateye
88 RPM ave cadence
42 chainring 15 cog = 2.8 ratio (my reasonable guess)
16.1 km TT

rate = 2005 x 88 x 2.8 = 494.03 M/min
time = 16100 / 494.03 = 32.58 min, in the ballpark

If your rolling circumference was 2042 then with the above your time would be 31.99 min

Last edited by grizzly59; 10-25-21 at 07:03 PM.
grizzly59 is offline  
Old 10-25-21, 10:03 PM
  #17  
10 Wheels
Galveston County Texas
 
10 Wheels's Avatar
 
Join Date: Nov 2007
Location: In The Wind
Posts: 33,219

Bikes: 02 GTO, 2011 Magnum

Mentioned: 19 Post(s)
Tagged: 0 Thread(s)
Quoted: 1349 Post(s)
Liked 1,243 Times in 621 Posts
I once was in a Large Club that tracked Real Miles. Some tried to Add Training Miles.
__________________
Fred "The Real Fred"

10 Wheels is offline  
Old 10-26-21, 06:41 AM
  #18  
coco1854
Junior Member
Thread Starter
 
Join Date: Oct 2021
Posts: 5
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by genejockey
You're missing a number, which is the conversion of your cadence to revolutions of the wheel. Even if you rode in a single gear the whole time, turns of the crank do not equal turns of the wheel. What gear did you run, front and rear?

I subsequently realized I had omitted this. I rode the whole time in the highest gear -- 41 (chainring) and the smallest cog on the rear cassette, which is either 14 or 15 (it's a seven cog cassette). So the equation now makes sense. But, of course, the software had no way of knowing the available gear ratios on my bike, let alone which ones I choose to use.


Do you know what assumptions about gearing training software usually makes (I'm using an old computrainer)? Obviously for hilly sessions, it will assume a lower gear ratio than for time trials, but it doesn't know my specific bike nor the gear ratio that I choose.


Thanks

Last edited by coco1854; 10-26-21 at 06:54 AM.
coco1854 is offline  
Old 10-26-21, 06:58 AM
  #19  
mstateglfr 
Sunshine
 
mstateglfr's Avatar
 
Join Date: Aug 2014
Location: Des Moines, IA
Posts: 16,604

Bikes: '18 class built steel roadbike, '19 Fairlight Secan, '88 Schwinn Premis , Black Mountain Cycles Monstercross V4, '89 Novara Trionfo

Mentioned: 123 Post(s)
Tagged: 0 Thread(s)
Quoted: 10947 Post(s)
Liked 7,473 Times in 4,181 Posts
Originally Posted by 10 Wheels
Many think they are riding miles
For years, I never viewed trainer time as me riding miles. Then I started zwifting and it suddenly changed to me viewing trainer time as me riding miles since the little dude sure did cover a bunch of distance on the screen.
Virtual miles?...sure, call them that if you need.
mstateglfr is offline  
Likes For mstateglfr:
Old 10-26-21, 01:30 PM
  #20  
unterhausen
Randomhead
 
Join Date: Aug 2008
Location: Happy Valley, Pennsylvania
Posts: 24,385
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 4 Post(s)
Liked 3,686 Times in 2,509 Posts
Originally Posted by coco1854
Do you know what assumptions about gearing training software usually makes (I'm using an old computrainer)? Obviously for hilly sessions, it will assume a lower gear ratio than for time trials, but it doesn't know my specific bike nor the gear ratio that I choose.
Are you still trying to figure out how the trainer calculates distance? It doesn't need to know anything about your bike.
unterhausen is offline  
Old 10-26-21, 01:54 PM
  #21  
coco1854
Junior Member
Thread Starter
 
Join Date: Oct 2021
Posts: 5
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
I am. How can the computer know how far I've gone if it doesn't know my gear ratio or the circumference of my wheel ?
coco1854 is offline  
Old 10-26-21, 01:56 PM
  #22  
coco1854
Junior Member
Thread Starter
 
Join Date: Oct 2021
Posts: 5
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Excellent caluculation ! My actual time was 32:04. Tbh, I think the final avg cadence was 89 rpm.
coco1854 is offline  
Old 10-26-21, 03:04 PM
  #23  
Bald Paul
Senior Member
 
Bald Paul's Avatar
 
Join Date: Sep 2017
Location: Upstate SC
Posts: 1,692
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Quoted: 815 Post(s)
Liked 1,646 Times in 776 Posts
Originally Posted by 10 Wheels
I once was in a Large Club that tracked Real Miles. Some tried to Add Training Miles.
Miles are miles, no matter what the club said.
If you don't believe me, put your car on jack stands and run it in gear for 100,000 miles. Then bring it to your dealer for warranty and tell them the odometer doesn't show "real miles".
Bald Paul is offline  
Old 10-26-21, 03:07 PM
  #24  
unterhausen
Randomhead
 
Join Date: Aug 2008
Location: Happy Valley, Pennsylvania
Posts: 24,385
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 4 Post(s)
Liked 3,686 Times in 2,509 Posts
Originally Posted by coco1854
I am. How can the computer know how far I've gone if it doesn't know my gear ratio or the circumference of my wheel ?
I'm not sure if I can explain it any differently than I previously have. The bike's wheel rides on a part of the trainer that is also a wheel. That trainer part has a circumference. They just count the number of rotations that part of the trainer has done, multiply it by its circumference, and that is your distance. They can also use it for speed. If you could turn that wheel by hand with the bike off the trainer, the trainer would still give you a speed and distance.
unterhausen is offline  
Likes For unterhausen:
Old 10-26-21, 03:14 PM
  #25  
genejockey 
Klaatu..Verata..Necktie?
 
genejockey's Avatar
 
Join Date: May 2007
Location: SF Bay Area
Posts: 17,907

Bikes: Litespeed Ultimate, Ultegra; Canyon Endurace, 105; Battaglin MAX, Chorus; Bianchi 928 Veloce; Ritchey Road Logic, Dura Ace; Cannondale R500 RX100; Schwinn Circuit, Sante; Lotus Supreme, Dura Ace

Mentioned: 41 Post(s)
Tagged: 0 Thread(s)
Quoted: 10397 Post(s)
Liked 11,849 Times in 6,066 Posts
Originally Posted by coco1854
I am. How can the computer know how far I've gone if it doesn't know my gear ratio or the circumference of my wheel ?
It "knows" the circumference of the drum your tire spins against. Whatever that circumference is, times the number of times it goes around, is the distance you've "travelled". The Computrainer doesn't know how many times your wheel went around, so it can't use the circumference of your wheel in any case.
__________________
"Don't take life so serious-it ain't nohow permanent."

"Everybody's gotta be somewhere." - Eccles
genejockey is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.