Frank de Beer wrote:
List,
I have several servomotors with Baumer encoders. The output level of the
encoder is 12-30 V (depends on what they get).
What is the best way to make the output TTL compatible?
If these are "open collector", then you just pull the lines to +5 V with
a resistor, and they won't go above 5 V. That is a common arrangement.
You may still have to supply 12 V to the encoders.
If they do, in fact, pull up to whatever the DC supply voltage is, you
will need level converters. Opto-couplers can be used to do that, so
you'd provide a series resistor and then let the encoder signal flow
through the LED in the coupler.
You could also use a CMOS buffer chip, such as a 74HC14, and a
voltage divider network such that the voltages came out in the 0..+5V
range. A 1 K resistor to ground at the input to the chip, and a 1.5 K
resistor from the input to the encoder signal would make the conversion,
and the output of the chip would feed to whatever was reading the encoder.
Jon