Unless you are in a particularly electrically noisy environment, this should work fine over these distances.
This would be more robust than just using the TTL signals, but probably isn't necessary over short distance for a non-critical "hobby project".Or should I use line drivers like SP232e (if I use RS232)?
Yes, if your STM32 has USB support hardware and software then you can go USB to USB. This would normally be my preference over using the serial ports as it supports differential signaling and very high data rates.Can I use USB ports of the raspberry to communicate with the STM32?
What STM32 product and development environment are you using?I would appreciate any guidance regarding the best way to interface both microcontrollers taking into account possible external noises which could affect communication.
The voltage on RS232 can be anywhere from +/- 3V to +/-24V (IIRC). The driver chip incorporates the charge pumps. The chip voltage, its supply, and the GPIO voltage MUST match (3V3 for the Pi, the other end could be different).XaviPacheco wrote: ↑Wed May 16, 2018 9:28 pmThanks for your suggestions. I will finally consider RS232 for my application. I know that other protocols offer better characteristics, but RS232 would work here.
Another question, as I will use MAX3232, should I supply it with 3.3V right? As STM32 and Pi works with 3.3V, I need the charge pump for 3.3V to RS232 levels. If I supply the MAX with 5V then the RX/TX signal will be at 5V also, right?
Users browsing this forum: abojiuc and 38 guests