Interface to 24V encoder via optocoupler
Split from: Evaluation of Encoder Signal Level Shifting Approach as that was a different issue, and has been solved.
I am also working with this same issue, in my case i have a encoder operating at 24V, and signal in comparable frequency
i have implemented a simple voltage divider, the circuit works just fine, but as i don't have equipment to measure the noise and also i would prefer to have galvanic separation to my MCU, so in this case is there any good suggested level shifter or optocoupler, should i combine the both strategy of voltage divider and optocoupler or just 1 is fine (from perspective of noise and safety)?

