Arduino 32u4 Joystick/KeyBoard through UART instead of USB

Hello,

I am trying to develop a joystick/gamepad based on an Arduino 32u4 board together with a Pi as the main controller of a hand-held portable device. I use the Joystick Arduino Library to achieve it and works fine when connecting the Arduino to the Pi through the USB port, but the USB cable takes too much space inside my portable device.

Will the Pi be able to recognize the Arduino as a USB device if I connect it through the RX/TX pins to it?

Will the Pi be able to recognize the Arduino as a USB device if I connect it through the RX/TX pins to it?

No.

You can make it to work over the RX/TX pins but that needs a lot of programming on the Pi side. If you're not an experience Linux driver developer the answer is definitely a "no".

But the connection between the 32U4 board and the Pi doesn't have to be a cable with connectors, the wires may be soldered, with all the advantages and drawbacks such a solution has.