Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Beginners • Re: Connect Raspberry PI to RS232 device

$
0
0
You can use a USB device with the Pi Zero, but you'd need a micro USB to USB-A socket OTG adaptor (those are easy to find and not expensive). Configuration of that type of device is automatic.

Or you can use a voltage converter connected to the UART TxD and RxD pins. The handshaking pins aren't always used, but you can connect those up as well if needed. A little bit of configuration is needed if you use this type of adaptor, and it's best if you disable Bluetooth (on a Zero W) as that uses the better of the two available serial ports.

Ive got a Zero that uses RS232 to talk to some equipment. I use a voltage converter (uses the MAX3232C chip) on the UART pins, and have this in /boot/firmware/config.txt

Code:

enable_uart=1
For a Zero W I would add

Code:

dtoverlay=disable-bt
The minimum connections you'd need are

Code:

VCC   -> 3.3VGND   -> GNDRxOUT -> RxDTxIN  -> TxD
The device will be called /dev/ttyAMA0 on the Pi, and can also be accessed as /dev/serial0.

The USB device would show as something like /dev/ttyUSB0.

Statistics: Posted by rpdom — Fri Mar 28, 2025 12:10 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles