Connect Raspberry Pi 4 to Yukon

Hello, I want to control a robot with a gamepad connected to a Raspberry Pi 4 and use a Yukon to control the servos and I was wondering if connecting a USB cable from the USB-A on the Pi to the USB-C on the Yukon is a good way to have the boards communicate. Thank you for your time!

Its one way to communicate twixt rpi and Yukon, as is UART and i2c. A possible disadvantage of USB is that you may be using the Yukons’ usb port to program it rather than using the usb as a communications link.

But a better way may be wifi if you have the Yukon wifi module then you wont need to have the rpi on the robot. For an outdoor Yukon controlled bot I included an ESP32 on the bot which was linked to the Yukon via UART. Another ESP32 was linked to a remote rpi and the two ESP’s communicated via ESPNow.

Theres lots of good ways to communicate from rpi to Yukon. There’s not an obviously better way, it just depends on the which way you want to proceed, but personally I would probably not use the usb port as I like to monitor the comms during the program development and the usb port would be in use for program development from my computer.