Hello guys!
I am a beginner in microcontrollers and I need some help with a personal project.
I have a Hall Sensor which is generating 2000 pulses for every km.
I am interfacing with a PIC18F46. How could I calculate the speed from this sensor or how can I find period of time for every km or meter?
I know that I can use an interrupt for every rising or falling edge but I am a beginner in software and have no idea how to do.
I am a beginner in microcontrollers and I need some help with a personal project.
I have a Hall Sensor which is generating 2000 pulses for every km.
I am interfacing with a PIC18F46. How could I calculate the speed from this sensor or how can I find period of time for every km or meter?
I know that I can use an interrupt for every rising or falling edge but I am a beginner in software and have no idea how to do.