# Use RS232 - RS422 Converter with Encoder

## Problem

I am trying to communicate an incremental encoder (TTL/422) with a PC, however, the PC is modern (correct me if I am wrong, It is a Sabertooth Z77) and doesn't have parallel ports...

I found a RS232 - RS485/422 Converter from Sintech, model: STM-8522B. And wondered if It could communicate with USB or VGA or even RJ45.

However, The encoder has the outputs: A, A/, B and B/. That are just outputs of 5V and my fear is to burn it with this converter, because the encoder just send signals and the communication is used bidirectional.

## Question

• Is it possible to read the encoder output from the PC with this converter?
• Will it burn the encoder?
• Is there another way to read the output?
• Just to make it clear, the encoder is not outputting the data using RS-whatever protocol. It's just an electrical signal specification, not logical. So connecting it to your serial port won't make any good. – Eugene Sh. Jan 8 '18 at 19:17

Is it possible to read the encoder output from the PC with this converter?

No.

An RS232 to RS485 converter is just a level shifter - it has no impact on the data protocol being used. PCs have no built in way to read quadrature encoder signals, so no level shifter will ever get the encoder to work with a PC - not on USB, VGA, RJ45, DB9, or any other connector.

Will it burn the encoder?

Probably not. If you keep the converter set to the correct direction, it won't break the encoder (if you flip it to the wrong direction, it'll output negative voltages which might break the encoder)

Is there another way to read the output?

What you need is:

1) A way to convert the quadrature encoder signals into a serial protocol that a PC understands.

2) A connection to the PC that uses the appropriate logic levels. USB is probably the favorite here.

There are a couple of solutions, depending on your skills, budget, and project.

1) Use a direct encoder to USB converter, such as RB-Phi-94

2) Use an absolute encoder with an SPI output (e.g. AMT20). Hook it up to a USB-SPI adaptor (E.G. MCP2210).

3) Get a microcontroller board such as an Arduino and build your own quadrature to serial converter. There are some helpful directions to get you started, but this is still a significant undertaking. I won't go into detailed instruction on this here because you'll probably need to do a lot of research to make this happen.

• I didn't want to add some processing delay. However I think that i will try to use an Arduino or Raspberry PI. Thanks. – danieltakeshi Jan 8 '18 at 22:21