I started thinking about making a PCB that will carry both a Teensy 4.1 and an Rpi CM4. I've had a couple of CM4s sitting in a drawer next to a bunch of Teensy 4.0s and 4.1s for a while now. I got the bug to build a PnP machine, and somehow a 3D printer as well which I haven't had as of yet. Probably doesn't really matter either way as something like klipper probably only sends small amounts of data but I've come to somewhat dislike USB for latency and general issues. So for local PCB communication I'm leaning towards UART.
USB is half duplex and differential from the silicon so there's some noise immunity but I'm rather confident I can handle single ended UART without noise being too much of a concern. I haven't even begun to route the board yet and it seems kind of silly but I'd almost be tempted to stick RS422 transceivers at both ends if it becomes more than a couple of inches. Sounds like over kill but who knows with a bunch of little stepper drivers buzzing away. I'll likely route SPI too but I don't think it's currently supported with anything I'd use software wise.
I'm curious what other people prefer to do for serial communication in situations like this.
USB is half duplex and differential from the silicon so there's some noise immunity but I'm rather confident I can handle single ended UART without noise being too much of a concern. I haven't even begun to route the board yet and it seems kind of silly but I'd almost be tempted to stick RS422 transceivers at both ends if it becomes more than a couple of inches. Sounds like over kill but who knows with a bunch of little stepper drivers buzzing away. I'll likely route SPI too but I don't think it's currently supported with anything I'd use software wise.
I'm curious what other people prefer to do for serial communication in situations like this.