Hello,
I've been searching around the web for a effective way to measure the speed using a phototransitor or a reed switch, but still can't manage to create an algorithm for this. A phototransistor offers higher resolution as they are many pulses per revolution compared to a reed which provides only a pulse per rev. Which method is effective to accomplish this? Interrupts? I wouldn't like a time consuming routine. I'm using a STM32 nucleo. If you know other references that I could read, let me know.
Thank you.
I've been searching around the web for a effective way to measure the speed using a phototransitor or a reed switch, but still can't manage to create an algorithm for this. A phototransistor offers higher resolution as they are many pulses per revolution compared to a reed which provides only a pulse per rev. Which method is effective to accomplish this? Interrupts? I wouldn't like a time consuming routine. I'm using a STM32 nucleo. If you know other references that I could read, let me know.
Thank you.