Go Back  Bike Forums > Bike Forums > Electronics, Lighting, & Gadgets
Reload this Page >

Bike computer accuracy - magnet placement on spoke

Search
Notices
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

Thread Tools
 
Search this Thread
 
Old 05-17-11, 04:31 PM
  #1  
Junior Member
Thread Starter
 
Join Date: Mar 2011
Posts: 16
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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?
dave_mac is offline  
Old 05-17-11, 05:02 PM
  #2  
Senior Member
 
Join Date: Sep 2005
Posts: 4,697
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 10 Times in 9 Posts
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.
Allen is offline  
Old 05-17-11, 05:06 PM
  #3  
I am a caffine girl
 
colleen c's Avatar
 
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)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 1 Time in 1 Post
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.
colleen c is offline  
Old 05-17-11, 05:46 PM
  #4  
I am a caffine girl
 
colleen c's Avatar
 
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)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 1 Time in 1 Post
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.
colleen c is offline  
Old 05-17-11, 05:51 PM
  #5  
Señior Member
 
ItsJustMe's Avatar
 
Join Date: Sep 2005
Location: Michigan
Posts: 13,749

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

Mentioned: 13 Post(s)
Tagged: 0 Thread(s)
Quoted: 446 Post(s)
Likes: 0
Liked 8 Times in 7 Posts
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.
ItsJustMe is offline  
Old 05-17-11, 06:46 PM
  #6  
Thunder Whisperer
 
no1mad's Avatar
 
Join Date: Apr 2008
Location: NE OK
Posts: 8,843

Bikes: '06 Kona Smoke

Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Quoted: 275 Post(s)
Likes: 0
Liked 6 Times in 2 Posts
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
no1mad is offline  
Old 05-17-11, 07:11 PM
  #7  
Junior Member
Thread Starter
 
Join Date: Mar 2011
Posts: 16
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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.
dave_mac is offline  
Old 05-17-11, 08:59 PM
  #8  
don't try this at home.
 
rm -rf's Avatar
 
Join Date: Jan 2006
Location: N. KY
Posts: 5,940
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
Quoted: 974 Post(s)
Liked 512 Times in 352 Posts
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..
Ask this guy.

rm -rf is offline  
Old 05-18-11, 12:00 AM
  #9  
Senior Member
 
formicaman's Avatar
 
Join Date: Apr 2011
Location: Philadelphia, PA
Posts: 332
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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?
formicaman is offline  
Old 05-20-11, 06:37 AM
  #10  
Senior Member
 
Richard Cranium's Avatar
 
Join Date: Jun 2002
Location: Rural Missouri - mostly central and southeastern
Posts: 3,014

Bikes: 2003 LeMond -various other junk bikes

Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 79 Post(s)
Likes: 0
Liked 45 Times in 36 Posts
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.
Richard Cranium is offline  
Old 05-20-11, 09:02 AM
  #11  
Señior Member
 
ItsJustMe's Avatar
 
Join Date: Sep 2005
Location: Michigan
Posts: 13,749

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

Mentioned: 13 Post(s)
Tagged: 0 Thread(s)
Quoted: 446 Post(s)
Likes: 0
Liked 8 Times in 7 Posts
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.
ItsJustMe is offline  
Old 05-20-11, 10:18 AM
  #12  
Senior Member
 
Iowegian's Avatar
 
Join Date: Dec 2005
Location: Boulder, Colo
Posts: 1,801
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Quoted: 101 Post(s)
Liked 14 Times in 12 Posts
Whoops. Never mind.

Last edited by Iowegian; 05-20-11 at 03:41 PM. Reason: remove bogus assumptions
Iowegian is offline  
Old 05-20-11, 11:33 AM
  #13  
Senior Member
 
dougmc's Avatar
 
Join Date: Jul 2008
Location: Austin, TX
Posts: 3,040

Bikes: Bacchetta Giro, Strada

Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 6 Post(s)
Likes: 0
Liked 1 Time in 1 Post
Originally Posted by rm -rf
Ask this guy.

Clever answer!

In case somebody doesn't know what's going on here ... https://en.wikipedia.org/wiki/Rolling_shutter
dougmc is offline  
Old 05-20-11, 11:34 AM
  #14  
Señior Member
 
ItsJustMe's Avatar
 
Join Date: Sep 2005
Location: Michigan
Posts: 13,749

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

Mentioned: 13 Post(s)
Tagged: 0 Thread(s)
Quoted: 446 Post(s)
Likes: 0
Liked 8 Times in 7 Posts
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.
ItsJustMe is offline  
Old 05-20-11, 03:40 PM
  #15  
Senior Member
 
Iowegian's Avatar
 
Join Date: Dec 2005
Location: Boulder, Colo
Posts: 1,801
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Quoted: 101 Post(s)
Liked 14 Times in 12 Posts
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...
Iowegian is offline  
Old 05-20-11, 04:03 PM
  #16  
Senior Member
 
rscamp's Avatar
 
Join Date: Jun 2008
Posts: 251
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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...
rscamp is offline  
Old 05-20-11, 05:41 PM
  #17  
Señior Member
 
ItsJustMe's Avatar
 
Join Date: Sep 2005
Location: Michigan
Posts: 13,749

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

Mentioned: 13 Post(s)
Tagged: 0 Thread(s)
Quoted: 446 Post(s)
Likes: 0
Liked 8 Times in 7 Posts
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.
ItsJustMe is offline  
Old 05-23-11, 04:33 PM
  #18  
Senior Member
 
Iowegian's Avatar
 
Join Date: Dec 2005
Location: Boulder, Colo
Posts: 1,801
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Quoted: 101 Post(s)
Liked 14 Times in 12 Posts
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?
Iowegian is offline  
Old 05-23-11, 07:52 PM
  #19  
Señior Member
 
ItsJustMe's Avatar
 
Join Date: Sep 2005
Location: Michigan
Posts: 13,749

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

Mentioned: 13 Post(s)
Tagged: 0 Thread(s)
Quoted: 446 Post(s)
Likes: 0
Liked 8 Times in 7 Posts
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.
ItsJustMe is offline  
Old 05-24-11, 01:05 AM
  #20  
Formerly Known as Newbie
 
Juha's Avatar
 
Join Date: Mar 2002
Location: Helsinki, Finland
Posts: 6,249
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 2 Post(s)
Likes: 0
Liked 4 Times in 3 Posts
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
Juha is offline  
Old 05-24-11, 05:31 AM
  #21  
Señior Member
 
ItsJustMe's Avatar
 
Join Date: Sep 2005
Location: Michigan
Posts: 13,749

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

Mentioned: 13 Post(s)
Tagged: 0 Thread(s)
Quoted: 446 Post(s)
Likes: 0
Liked 8 Times in 7 Posts
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.
ItsJustMe is offline  
Old 07-01-17, 12:35 AM
  #22  
Newbie
 
Join Date: Jul 2017
Posts: 1
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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
markorvll is offline  
Old 07-01-17, 01:30 AM
  #23  
Senior Member
 
Join Date: Mar 2008
Posts: 8,688
Mentioned: 46 Post(s)
Tagged: 0 Thread(s)
Quoted: 1074 Post(s)
Liked 295 Times in 222 Posts
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.
dabac is offline  
Old 04-15-18, 10:08 AM
  #24  
Newbie
 
Join Date: Apr 2018
Posts: 1
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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.
Canuck57 is offline  
Old 04-15-18, 11:17 AM
  #25  
Banned
 
Join Date: Jun 2010
Location: NW,Oregon Coast
Posts: 43,598

Bikes: 8

Mentioned: 197 Post(s)
Tagged: 0 Thread(s)
Quoted: 7607 Post(s)
Liked 1,355 Times in 862 Posts
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 ..






....
fietsbob is offline  


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.