Hello everyone, I've been trying to setup serial communication between a Raspberry Pi Zero W and an Arduino mega 2560. I don't have a voltage level-shifter so I am trying to do it using USB. For context, I am using Raspbian little (bookworm) and the arduino board is not a clone.
When I connect the Arduino using an usb-a to usb-b and otg adapter, I cannot see any new device listed in /dev/tty*. No signs of "ttyACM0" or equivalent. Things I've tried:
- Double checked both cables support data by connecting a keyboard.
- Tried to use an external power supply for the arduino to make sure it is powered correctly while connected.
- Trying same setup with a different Arduino board and a different rapsberry (RPI Zero 2W).
- Adding "dtoverlay=dwc2,dr_mode=host" to /boot/firmware/config.txt file.
- Manually loading the CDC-ACM kernel module using the command "sudo modprobe cdc_acm"
- Checked in raspi-config that both serial interface and serial login shell are enabled.
"sudo dmesg -wH" output:"lsusb" output:"ls /dev/tty*" output:Thank you for reading.
When I connect the Arduino using an usb-a to usb-b and otg adapter, I cannot see any new device listed in /dev/tty*. No signs of "ttyACM0" or equivalent. Things I've tried:
- Double checked both cables support data by connecting a keyboard.
- Tried to use an external power supply for the arduino to make sure it is powered correctly while connected.
- Trying same setup with a different Arduino board and a different rapsberry (RPI Zero 2W).
- Adding "dtoverlay=dwc2,dr_mode=host" to /boot/firmware/config.txt file.
- Manually loading the CDC-ACM kernel module using the command "sudo modprobe cdc_acm"
- Checked in raspi-config that both serial interface and serial login shell are enabled.
"sudo dmesg -wH" output:
Code:
usbcore: registered new interface driver cdc_acmcdc_acm: USB Abstract Control Model driver for USB modems and ISDN adaptersCode:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubCode:
/dev/tty /dev/tty15 /dev/tty22 /dev/tty3 /dev/tty37 /dev/tty44 /dev/tty51 /dev/tty59 /dev/tty9/dev/tty0 /dev/tty16 /dev/tty23 /dev/tty30 /dev/tty38 /dev/tty45 /dev/tty52 /dev/tty6 /dev/ttyprintk/dev/tty1 /dev/tty17 /dev/tty24 /dev/tty31 /dev/tty39 /dev/tty46 /dev/tty53 /dev/tty60/dev/tty10 /dev/tty18 /dev/tty25 /dev/tty32 /dev/tty4 /dev/tty47 /dev/tty54 /dev/tty61/dev/tty11 /dev/tty19 /dev/tty26 /dev/tty33 /dev/tty40 /dev/tty48 /dev/tty55 /dev/tty62/dev/tty12 /dev/tty2 /dev/tty27 /dev/tty34 /dev/tty41 /dev/tty49 /dev/tty56 /dev/tty63/dev/tty13 /dev/tty20 /dev/tty28 /dev/tty35 /dev/tty42 /dev/tty5 /dev/tty57 /dev/tty7/dev/tty14 /dev/tty21 /dev/tty29 /dev/tty36 /dev/tty43 /dev/tty50 /dev/tty58 /dev/tty8Statistics: Posted by josdelsan — Tue Jun 17, 2025 9:54 am