Wheel speed using hall effect sensor and STM32F446 - count 'teeth' rather than period.
Hello,
I'm new to all this, first-year uni student and still learning java. I'm working on someone else's code for the uni motorsport club in c++ and the original coder has left.
Currently, we detect the wheel speed using a hall effect sensor and capturing the period when the code is run (every 50ms). This is creating very messy data.
I was wondering if there's a way to just straight up count the number of 'teeth' rather than determine the period with Input Capture?
We want to grab the number of 'teeth' from the register, then use that to determine how many times the wheel has turned (distance travelled), plus how many counts of the clock from the last time we calculated and determine the speed as distance/time.
I hope this makes sense, I'm still learning my way around the STM32s.
