PC USB to serial to serial to USB Arduino

I need to run an Arduino (Uno, but that isn't critical) to PC connection through which I need to pass through a 9 pin serial type connector. Is it possible to run a PC USB to serial converter through the 9 pin, the serial back to USB for the Arduino? Or any other suggestions about how to pass control of the Arduino from the PC through this approach?

Thanks for any suggestions

RS232 9 Pin connector on the PC, is this what you mean ?

You can find MAX232 based RS232 to UART TTL for a few bucks

See also How to connect Arduino with 9-pin(db9) serial port cable - #2 by sterretje

No, sorry I wasn't more clear.

PC USB to serial -> 9 pin in the wall -> serial to USB -> Arduino

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for advice on your project.

In theory you can do what you want.

What is the distance betwee PC and Arduino?
Do you only want your Arduino sketch to communicate with the PC? Or do you also want to be able to upload your sketch?

DB9 usually refers to RS232, not TTL. So you need a USB-to-RS232 converter at the PC side that will connect to the DB9. At the other wall, you will need a RS232-to-TTL converter that you can connect to the Arduino. That's the safe way.

For very long distances your better of with RS422.

For short distances you can use TTL levels as you described in your opening post.

In theory, that’s ok.
Get the tx & rx correctly matched, and ensure ground/0V is common all the way through.

If you’re planning to upload new code, you also need to ensure DTR is carried to the Arduino for the ‘auto reset’ functionality.

The distance is about 30 feet total. I'm trying the setup that I've described with a pair of USB-to-RS232 converters, but it doesn't seem to be working yet, even for simple data transfer via the serial monitor. I'm wondering if the RS-485 approach may be a better way to do it since the wiring should be more straightforward and able to tolerate the longer distance.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.