Convert encoder output voltage (5 and 24 volts) to 3.3v to use in STM32f4 Timer in encoder mode
Hello everyone.
I have 2 incremental encoders. One of them has the output voltage of signals A and B 5 volts and the other one 24 volts.
I need to count the increments with stm32f4 and timers in the mode encoder.
But I have to first convert the 5 and 24 volts to 3.3.
Can I use a comparator like LM393? Does it support high frequency of the encoder?
Or do you have any other suggestions? I also tried Voltage Divider but it didn't work.
Thank you so much.