Speed measurement on bikes

i have been trying to make a speed measuring device usinng hall sensor modules for my bike. I have gone through a no. of tutorials online and worked with it. I am unable to detect the Rpm at higher speed above 20Kmph. I even started using interrupt function so that arduino can process the detected signals. But the issue is the sensor is unable to detect at high speeds.

Can u suggest me some alternatives or the change in ideas. please help

Thanking you in advance

My best guess is that the problem is in the code. Which you didn't post.
Or maybe in the hardware. Details of which you didn't post.
It could even be the wiring. But then again you didn't post a schematic of your setup.

My guess is the code too - the 5$ bike speedos on eBay invariable use a magnet and reed switch and can read much higher speeds .
They are really quite good actually..

SWAP287:
or the change in ideas.

The latest one I bought cost $3 at KMart. I have had it for about four years, i'ts done 11,000 km, works perfectly up to about 38kph (which is all I am good for), and is about four years old. It does all this so well because it probably has a million dollars worth of research and development behind it. Why would you bother doing this with an Arduino?

I have a good amount of experience with getting speed sensors working--my application can detect much higher than speed you need--so it's possible. I've used the magnet type hall effect as well as the opto units. You definitely will need to use interrupts and most likely some debouncing code.

Post code and we'll take a look. Photo of your setup will help.

KrisKasprzak:
I've used the magnet type hall effect as well as the opto units. You definitely will need to use interrupts and most likely some debouncing code.

Why would the Op need debounce on a hall effect or an opto device?

KrisKasprzak:
You definitely will need to use interrupts and most likely some debouncing code.

Debouncing is not needed. Interrupts I doubt are needed, depends on how long the pulse lasts mostly.

with 26” tires it’s only 259 wheel RPM at 20 MPH.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .

Can you post the code you are using please?

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

What hall effect devices have you used?

Thanks.. Tom... :slight_smile: