Electrical – RS232 serial output: confusion with wiring

rs232sensor

Brace with me as I am new to electronics, but am also eager to learn. I have a sensor which has 4 un-terminated wires:

1) 12V to 24V

2) RS-232 TxD

3) RS-232 RxD

4) Ground(and serial connector return)

I'm trying to get the sensor and my computer to talk but have faced nothing but failure. I have an RS-232 to TTL converter followed by an RS-232 to USB adapter. Here's where my real question starts. I understand that TTL has VCC, Tx, Rx and GND pins. Can my sensor talk to my computer using only the Tx and Rx wires? From my understanding, the two other wires need to be connected to an external battery since it draws so much power…but that leaves VCC and GND empty on my converter.

I've come to realize this morning that my RS-232 to USB adapter was out of date and not supported on my current version of windows. I have a new one on its way but still feel something is not quite right with my setup. Any help is greatly appreciated.

Thank you!

EDIT: Some extra information about my sensor: Digital output is RS-232 as ASCII chars, runs on 12-24 VDC(30mA@12V), configuration is 115200,8,N,1. I've also come to realize I probably don't need my TTL converter. How then would I communicate with only Rx and Tx? (Also, I know that Tx must go to Rx and vice-versa)

Best Answer

schematic

simulate this circuit – Schematic created using CircuitLab

Figure 1. Wiring diagram.

It sounds as though you have an industrial sensor as 24 V is standard for these. You need to supply 24 V DC between the Vcc and GND terminals. You also need to use screened data cable back to your RS232 port.

If your sensor sends out a continuous stream of data then you can monitor this with a serial terminal emulator such as PuTTY to see if you can make any sense of the data.