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
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..
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?