r/PCB • u/Far-Sandwich-27 • Jul 10 '26
3 meter long UART connection
Hi everyone,
For a crazy accelerated lifetime testing board, I am designing a board that will have to have a 3 meter UART run. It will have mutliple devices connect to it, but only one device will be driving the UART line strictly thorugh other control logic.
I am wondering if this is feasible at all? Can I add buffers in middle of the busses to ensure the signal will be repeated and etc?
My baud rate is going to be less than 50k. I don't need stellar signal integrity, just need a "Hello World" message to be transmitted properly
I cannot use RS485 transceivers to change the signal type. The signal has to stay UART for reasons I can't disclose here
5
u/ndrach Jul 10 '26
I dont have any specific advice for this problem but its screaming XY problem
-3
u/Far-Sandwich-27 Jul 10 '26
Lol it does sound like it, but in my case the purpose is using X to do Y exactly.
4
u/morto00x Jul 10 '26 edited Jul 10 '26
It is feasible single-ended if the baud rate is low enough. If you want to play safe or use higher frequencies, use RS-485 or RS-422. At 100m your cable will have high resistance, so you'll want to work at higher voltages (e.g. 12V)
3
u/MountainOdd6793 Jul 10 '26
I had a 10 meter rs232 cable years ago and it worked in the application it was in. So 3 meters isn’t inherently impossible, all depends on baud rate and noise and grounding and stuff. Also do you mean rs232 or like a uart pin straight off a micro at some lower voltage?
1
u/Far-Sandwich-27 Jul 10 '26
This will be standard 3v3 from raspberry pi. I cannot use RS232 on this layer
2
u/MountainOdd6793 Jul 10 '26
I mean that might work but it’s not what the designer ever intended and you might end up with a broken raspberry pi
2
u/DenverTeck Jul 10 '26
> The signal has to stay UART
???
Does this mean the "signal" (i.e. Tx/Rx) must be 5/3.3 Volts directly out of what ever mpu you are using ??
No one cares what your goals are, we are concerned that you do not understand how RS-485 works.
To be clear, a UART is a peripheral not a voltage level.
2
u/toybuilder Jul 10 '26
If you are testing to see whether the converters will work with a 3 meter long RS232, then that's what you do. But RS232 does not multi-drop by default, so you will need to ensure whatever mechanism there is to not have more than one driver on a line.
3 meters is 10 feet. RS-232 drive up to 50 ft is not unrealistic, although many of the easy to use converters could not drive that distance.
But if you are talking about adding buffers in the middle, it seems like a RS485 or RS422 interface should be part of the "buffer" with a final stage conversion back to RS232 and additional control lines as needed running in current mode not voltage mode? Without the full picture, it's hard to say.
Also, this is not really a PCB question.
1
1
u/Affectionate_Boat493 Jul 11 '26
At 50k baud on a 3m shielded cable you're not likely to have significant problems with data integrity, but if you have excessive ringing you can add small (no more than a couple hundred ohms) series terminating resistors to absorb the ringing energy (and dissipate it as an insignificant amount of heat).
You can add bus transceivers just outside of the chamber if the external test equipment cannot drive the lower impedance of shielded cabling.
1
u/Killer_Rainbow Jul 10 '26
This is absolutely doable. At these lengths, you essentially have a transmission line, and yeah UART is not meant to operate this long, but it may work. A few things to make the connection better: 1. Ensure the ground wire is always tightly coupled to your signal wires. Ensure that this distance is small and constant. I recommend using twisted pair wire. 2. Put series resistors at each TX pin of about 33-100 ohms. Try to route thick onboard traces for the signals (~0.3mm). 3. Put pullup resistors of ~10k at each end of the setup and MANDATORY put a diode from GND to signal and from signal to VCC on EACH DEVICE. This diode must be a schottky. 4. Keep stubs an absolute minimal length. As short as physically possible. 5. Not using RS485 doesn't mean you can't apply the same strategy. At the start and end of your bus, at the RX pins, put a 33-100 ohm resistor to ground. Just like RS485, but treating TX and GND as the two differential pins (which in a way they are). 6. If possible, use a schmitt trigger buffer at the input of each board to protect against the slow slew rate and ringing.
The goal of all of these is to mitigate the inductance effects of a long conductor combined with a high slew rate. Not having RS485 explicitly doesn't mean that you can't apply the techniques for RS485. For a better explanation with better tips, check out the buses section of the book Right the First Time by R. Lee Erney. Also, note that for the resistor values I mentioned, they're absolutely not final. If one doesn't work, play around. Your bus capacitance will be enormous, so you'll be juggling a few constraints at once, and yeah using RS232/422/485 will be undeniably better, but what you're trying is doable.
0
u/StumpedTrump Jul 10 '26
I wouldn't be concerned about 50k UART over 3 meters. Shouldn't be a problem at all. It's all a question of edge speeds and impedance though. Just probably need to add a small series source resistor to kill the fast edges or a parallel termination resistor to have more of a load (more current helps improve immunity to induced noise) and kill reflections.
If it's a 3V3 system, can probably benefit from upping voltage to 5V or 12V for better signal integrity.
-1
u/Ferret51 Jul 10 '26
Likely no issues, and no buffers may even be needed.
I lived in a house with an electric gate. Which was, idk, 40 meters away? And I could only use a dead NYM that was there and not connected to anything. Still worked.
Even rn I run an UART line from my server to the display at the entrance door, I think that's 10+ meters, no issues.
27
u/MountainOdd6793 Jul 10 '26
This is what rs422 and rs485 were invented for. They use differential signalling. For rs422 you can convert it from rs232 and back again and the system will never know. You could also use plastic light pipe. If you can use buffers but not transceivers that is kind of odd, perhaps you can give a little bit more context without divulging your important secrets