I'm working on a project and I need to measure the speed of a baja vehicle. The best and inexpensive way I found to do this is to use a reed switch right in front of the wheel's axis (with a magnet attached on it). That way, arduino can process the number of pulses it sends and calculate the speed. The problem is: how to do that? I found some tutorials out there but nothing really effective about interrupting functions.
I'd appreciate if you guys could help me to develop this code or to find some tutorial that teaches how to use Interrupt() correctly or another way to do this using this system. Thank you!!!