> >
>

# Bike computer accuracy - magnet placement on spoke

Electronics, Lighting, & Gadgets HRM, GPS, MP3, HID. Whether it's got an acronym or not, here's where you'll find discussions on all sorts of tools, toys and gadgets.

# Bike computer accuracy - magnet placement on spoke

05-17-11, 04:31 PM
#1
dave_mac
Junior Member

Join Date: Mar 2011
Posts: 16
Mentioned: 0 Post(s)
Quoted: 1 Post(s)
Bike computer accuracy - magnet placement on spoke

Hi everyone, I just bought a new bike computer and something that has really been bothering me is that I can't understand how it can be accurate when it doesn't really tell you where to place the magnet on the spokes.

Tell me if I'm wrong here but if the magnet is closer to the hub the magnet will make more RPM's vs if it's closer to the outer edge so how is it possible for the computer to accurately track distance and speed? Or is the inaccuracy negligible?

05-17-11, 05:02 PM
#2
Allen
Senior Member

Join Date: Sep 2005
Posts: 4,757
Mentioned: 0 Post(s)
Quoted: 1 Post(s)
Negative.
It does not matter how far out from the hub the magnet is placed because the magnet will only pass by the sensor once a rotation.

S=D/T
You program the computer with the circumference of the wheel and the sensor counts each time the magnet passes it by.
The inter part of the wheel and the outer part take the same amount of time to make one rotation. The edge of a wheel moves at a faster rate than the inner part because it is moving a greater distance but they take the same amount of time to complete one rotation.
The bike moves forward the same distance as the circumference as the wheel each rotation.
So what your computer is calculating is: speed equals the circumference of the wheel (the distance the bike moves each rotation of the wheel) divided by the time it takes the wheel to complete one rotation.

Last edited by Allen; 05-17-11 at 05:08 PM.

05-17-11, 05:06 PM
#3
colleen c
I am a caffine girl

Join Date: Nov 2009
Location: Bay Area
Posts: 1,815

Bikes: 2012 Stumpjumper FSR Comp...2010 Scott CR1 CF...2007 Novara FS Float2.0...2009 Specialized Hardrock Disc...2009 Schwinn Le Tour GSr

Mentioned: 0 Post(s)
Quoted: 0 Post(s)
RPM of the rim remain the same regardless of where you place the magnet on the spoke. One turn of the wheel at the tire is equal to one turn at the spindle.

Magnet sensor read each individual pulse when the magnet passes the sensor. Since your bike will move X amount of feet with one revolution of the wheel, the sensor will see only one pulse for that one revolution regardless of the magnet is closer to the outside or inside of the wheel.

Edit: forgot to include a formula:

(rev/min) * (ft/rev) = ft/min

then:
(ft/min) * (mile/5280ft) * (60min/hour) = miles/hour

Last edited by colleen c; 05-17-11 at 05:15 PM.

05-17-11, 05:46 PM
#4
colleen c
I am a caffine girl

Join Date: Nov 2009
Location: Bay Area
Posts: 1,815

Bikes: 2012 Stumpjumper FSR Comp...2010 Scott CR1 CF...2007 Novara FS Float2.0...2009 Specialized Hardrock Disc...2009 Schwinn Le Tour GSr

Mentioned: 0 Post(s)
Quoted: 0 Post(s)
Originally Posted by colleen c
RPM of the rim remain the same regardless of where you place the magnet on the spoke. One turn of the wheel at the tire is equal to one turn at the spindle.

Magnet sensor read each individual pulse when the magnet passes the sensor. Since your bike will move X amount of feet with one revolution of the wheel, the sensor will see only one pulse for that one revolution regardless of the magnet is closer to the outside or inside of the wheel.

Edit: forgot to include a formula:

(rev/min) * (ft/rev) = ft/min

then:
(ft/min) * (mile/5280ft) * (60min/hour) = miles/hour
Just to clarify, in the real world, computer use either cm/rev or mm/rev and more like rev/milisec or sec. It still the same principle but just a matter of more conversion. You get the idea.

05-17-11, 05:51 PM
#5
ItsJustMe
Señior Member

Join Date: Sep 2005
Location: Michigan
Posts: 13,776

Bikes: Windsor Fens, Giant Seek 0 (2014, Alfine 8 + discs)

Mentioned: 12 Post(s)
Quoted: 440 Post(s)
Um, no, the inside of the wheel turns the same number of times as the outside. How could it possibly turn more or less times? Swing your arm around three times. Did your bicep swing around more times than your hand?

For maximum accuracy, you should put the magnet and sensor close to the hub of the wheel. Theoretically it doesn't matter, but the problem is that near the rim, the magnet will be moving past the sensor much faster (but the same number of times per minute) and at higher speeds, the sensor may not pick up every time the magnet goes past it. It will start to "skip" and you will suddenly start getting drastically lower speed readings. This may or may not happen with any particular computer, but it doesn't hurt to move the sensor towards the center. As a side benefit, with the magnet nearer the hub, it will be less likely to unbalance the wheel.
__________________
Work: the 8 hours that separates bike rides.

05-17-11, 06:46 PM
#6
Thunder Whisperer

Join Date: Apr 2008
Location: NE OK
Posts: 8,864

Bikes: '06 Kona Smoke

Mentioned: 6 Post(s)
Quoted: 270 Post(s)
The installation instructions weren't all that clear about whether to mount closer to the hub or rim. What it did make clear was that the spoke mounted magnet had to pass within like 2 mm of the sensor- up near the rim is too far away for them to "see" each other.

Another benefit about mounting closer to the hub (asides from the wheel balancing which i hadn't thought of) is that it's a bit more protected than if it was mounted near the rim.
__________________
Community guidelines

05-17-11, 07:11 PM
#7
dave_mac
Junior Member

Join Date: Mar 2011
Posts: 16
Mentioned: 0 Post(s)
Quoted: 1 Post(s)
Makes sense. The logic I was using was if you're going around a track (or your hub in this instance) the inside lane is always fastest but the S=D/T formula totally makes sense. Thanks.

05-17-11, 08:59 PM
#8
rm -rf
don't try this at home.

Join Date: Jan 2006
Location: N. KY
Posts: 4,930
Mentioned: 9 Post(s)
Quoted: 564 Post(s)
Originally Posted by ItsJustMe
Um, no, the inside of the wheel turns the same number of times as the outside. How could it possibly turn more or less times?
..snip..

05-18-11, 12:00 AM
#9
formicaman
Senior Member

Join Date: Apr 2011
Posts: 332
Mentioned: 0 Post(s)
Quoted: 0 Post(s)
Glad I am not the only idiot out there whose brain can't seem to wrap itself around the basic fact that it doesn't matter where the damn magnet is. Did you major in communications too?

05-20-11, 06:37 AM
#10
Richard Cranium
Senior Member

Join Date: Jun 2002
Location: Deep in the Shawnee Forest
Posts: 2,865

Bikes: LeMond - Gunnar

Mentioned: 1 Post(s)
Quoted: 20 Post(s)
Tell me if I'm wrong here but if the magnet is closer to the hub the magnet will make more RPM's vs if it's closer to the outer edge so how is it possible for the computer to accurately track distance and speed? Or is the inaccuracy negligible?
Yes, of course RPM is constant. But like some one mentioned - it is important that you give the magnet enough time to "pull" the sensing switch in the pickup unit.

Believe it or not, when i used to get fierce while riding rollers, i could get pickup sending units to "fail" or skip when riding at speeds near 50 mph. This was mostly because the unit was simply nearing being worn out. But it is proof that there was actual "mechanical" activity in older cat-eye and avocet units.

I assume they might still be using "reed switches." I don't know for sure. It seems I do still hear 'ticking."

By the way the "numbers" in the setup routine represent centimeters - even if you put in the wrong number - its hardly 50 feet per mile, in other words your only going to be off about 1 mile per hundred.

But I digress.

05-20-11, 09:02 AM
#11
ItsJustMe
Señior Member

Join Date: Sep 2005
Location: Michigan
Posts: 13,776

Bikes: Windsor Fens, Giant Seek 0 (2014, Alfine 8 + discs)

Mentioned: 12 Post(s)
Quoted: 440 Post(s)
Originally Posted by Richard Cranium
By the way the "numbers" in the setup routine represent centimeters
Millimeters, surely. My comp is set to something like 2055. If that was centimeters my wheel would be 20 meters in circumference, which works out to 21 feet in diameter.
__________________
Work: the 8 hours that separates bike rides.

05-20-11, 10:18 AM
#12
Iowegian
Senior Member

Join Date: Dec 2005
Location: Boulder, Colo
Posts: 1,958
Mentioned: 1 Post(s)
Quoted: 66 Post(s)
Whoops. Never mind.

Last edited by Iowegian; 05-20-11 at 03:41 PM. Reason: remove bogus assumptions

05-20-11, 11:33 AM
#13
dougmc
Senior Member

Join Date: Jul 2008
Location: Austin, TX
Posts: 3,030

Bikes: Giant OCR2, Bridgestone RB-T, Bike-E, Vision R-40, Novara Safari

Mentioned: 0 Post(s)
Quoted: 2 Post(s)
Originally Posted by rm -rf

In case somebody doesn't know what's going on here ... http://en.wikipedia.org/wiki/Rolling_shutter

05-20-11, 11:34 AM
#14
ItsJustMe
Señior Member

Join Date: Sep 2005
Location: Michigan
Posts: 13,776

Bikes: Windsor Fens, Giant Seek 0 (2014, Alfine 8 + discs)

Mentioned: 12 Post(s)
Quoted: 440 Post(s)
Actually it is a reed switch. You can put a volt meter across it and see the resistance go from infinite to zero when a magnet is nearby.

High end ones might use a hall effect transistor, that would be the smart way to do it. Much more reliable than an inductive loop since a hall effect switch is extremely fast and will give you essentially an on/off switch no matter how slow the magnet is moving (or even if it's stopped altogether). Hall effect transistors are pretty cheap.

It's possible that newer comps have already switched to hall effects, I wouldn't know, my computer is a number of years old at this point.
__________________
Work: the 8 hours that separates bike rides.

05-20-11, 03:40 PM
#15
Iowegian
Senior Member

Join Date: Dec 2005
Location: Boulder, Colo
Posts: 1,958
Mentioned: 1 Post(s)
Quoted: 66 Post(s)
Egads! you are correct. I guess that eliminates the whole signal conditioning problem although I wonder what would happen if you park your bike with the magnet next to the sensor. Might have to try that out tonight.

Well, I edited my mis-post and I've been thinking it's time for a new avartar...

05-20-11, 04:03 PM
#16
rscamp
Senior Member

Join Date: Jun 2008
Posts: 251
Mentioned: 0 Post(s)
Quoted: 1 Post(s)
Yes, FWIW the speedo sensors I have are reed switches. I haven't had them skip but it is certainly possible for them to miss a very brief passing of the magnet even though the moving part has very little mass.

If the magnet is stopped at the switch it will just hold it closed (they are NO (normally open) if memory serves).

These switches are also used for other applications such as defeating throttle with brake on ebikes...

05-20-11, 05:41 PM
#17
ItsJustMe
Señior Member

Join Date: Sep 2005
Location: Michigan
Posts: 13,776

Bikes: Windsor Fens, Giant Seek 0 (2014, Alfine 8 + discs)

Mentioned: 12 Post(s)
Quoted: 440 Post(s)
I think I know another reason they use reed switches. that makes it trivial to build computers that are auto-on without drawing much current. With a clean reed switch, the switch can just be hooked to an interrupt line on the microprocessor, and it can go into deep sleep mode and wake when the switch state changes. If it were a hall effect switch it would have to be powered constantly to know when the magnet moved so it could wake up, and the battery would only last a few weeks at best. It might be a little better with a coil but still, it would need more sensitive circuitry that would have to be powered.
__________________
Work: the 8 hours that separates bike rides.

05-23-11, 04:33 PM
#18
Iowegian
Senior Member

Join Date: Dec 2005
Location: Boulder, Colo
Posts: 1,958
Mentioned: 1 Post(s)
Quoted: 66 Post(s)
I am (obviously) not an analog guy so bear with me on this....It seems to me that whether the switch is NO or NC it has to be connected to some source of power to generate a transition to whatever is counting the rev's. I'd imagine it's a normally open switch that momentarily closes to complete some circuit and this generates a clock pulse to a counter or something along those lines. But wouldn't that quickly drain the battery if the switch was left in a closed state?

05-23-11, 07:52 PM
#19
ItsJustMe
Señior Member

Join Date: Sep 2005
Location: Michigan
Posts: 13,776

Bikes: Windsor Fens, Giant Seek 0 (2014, Alfine 8 + discs)

Mentioned: 12 Post(s)
Quoted: 440 Post(s)
Originally Posted by Iowegian
I am (obviously) not an analog guy so bear with me on this....It seems to me that whether the switch is NO or NC it has to be connected to some source of power to generate a transition to whatever is counting the rev's. I'd imagine it's a normally open switch that momentarily closes to complete some circuit and this generates a clock pulse to a counter or something along those lines. But wouldn't that quickly drain the battery if the switch was left in a closed state?
That's all true, but a microcontroller awaiting a state change in deep sleep mode can pull as little as a few nanoamps. I've done a little work with AVR controllers, and in deep sleep mode waiting for a state change, battery drain is such that a standard CR2032 button cell will last on the order of 3 or 4 years. It's true that if the switch happens to be closed, the current draw will go up a bit, but the pullup resistors can be quite high resistance and the drain would probably only kill the battery in a year or so. Since the odds of the wheel sitting where the switch is closed is probably about 1 in 100, in general you're still looking at multiple years, unless you happen to park it with the switched closed and leave it alone for 6 months.
__________________
Work: the 8 hours that separates bike rides.

05-24-11, 01:05 AM
#20
Juha
Formerly Known as Newbie

Join Date: Mar 2002
Location: Helsinki, Finland
Posts: 6,263
Mentioned: 1 Post(s)
Quoted: 2 Post(s)
Originally Posted by ItsJustMe
Since the odds of the wheel sitting where the switch is closed is probably about 1 in 100, in general you're still looking at multiple years, unless you happen to park it with the switched closed and leave it alone for 6 months.
And this would only be a problem for wireless computers, or if you used a wired computer and left it on the bike.
__________________
To err is human. To moo is bovine.

Who is this General Failure anyway, and why is he reading my drive?

Become a Registered Member in Bike Forums
Community guidelines

05-24-11, 05:31 AM
#21
ItsJustMe
Señior Member

Join Date: Sep 2005
Location: Michigan
Posts: 13,776

Bikes: Windsor Fens, Giant Seek 0 (2014, Alfine 8 + discs)

Mentioned: 12 Post(s)
Quoted: 440 Post(s)
Originally Posted by Juha
And this would only be a problem for wireless computers, or if you used a wired computer and left it on the bike.
I guess I've never considered that. I've never taken a computer off the bike except once a year or so to change the battery, or twice a year when I need to get to the "set" button to change the time.
__________________
Work: the 8 hours that separates bike rides.

07-01-17, 12:35 AM
#22
markorvll
Newbie

Join Date: Jul 2017
Posts: 1
Mentioned: 0 Post(s)
Quoted: 1 Post(s)
Does anyone know if the amount of spokes have anything to do with a cycle computer? My front rim only has 16 spokes and the computer doesn't seem acurate. I might have set it up wrong but i'm not sure because i've had them on other bikes.

marko

07-01-17, 01:30 AM
#23
dabac
Senior Member

Join Date: Mar 2008
Posts: 7,877
Mentioned: 36 Post(s)
Quoted: 787 Post(s)
Originally Posted by markorvll
Does anyone know if the amount of spokes have anything to do with a cycle computer? My front rim only has 16 spokes and the computer doesn't seem acurate. I might have set it up wrong but i'm not sure because i've had them on other bikes.

marko
Spoke count doesn't matter.
There's still only one magnet and only one pass per revolution.
If readings are consistent but inaccurate, check your calibration value. A roll-out can get you closer than numbers off a chart.
If readings are inconsistent, check installation.
Mainly how magnet pass pickup.
For wireless units, check your surroundings. They may pick up interference from power lines.

04-15-18, 10:08 AM
#24
Canuck57
Newbie

Join Date: Apr 2018
Posts: 1
Mentioned: 0 Post(s)
Quoted: 0 Post(s)
Bike RPM and Speed

I have seen this topic discussed all over the web, but never I have I seen it explained so clearly and succinctly as here. Awesome explanations.

04-15-18, 11:17 AM
#25
fietsbob
coprolite

Join Date: Jun 2010
Location: NW,Oregon Coast
Posts: 37,503

Bikes: 8

Mentioned: 143 Post(s)
Quoted: 5619 Post(s)
Originally Posted by dave_mac
Makes sense. The logic I was using was if you're going around a track (or your hub in this instance) the inside lane is always fastest but the S=D/T formula totally makes sense. Thanks.
Digital, computer counts 'one' as the magnet passes by.. your input saying how big your wheel is is the way you get the accuracy.

If the program only takes nominal wheel / tire sizes, not measured out to the hundred thousandths of a inch or mm,

then the accuracy quest is moot ..

....