Use the Raspberry Pi 5 debug UART port (Serial0 -- ttyAMA10) or the traditional 40 pin GPIO UART port (ttyAMA0) to send serial data. Data is sent to a phone through FTDI cable and USB OTG adapter. Data is also sent to a Xiao SAMD21 chip in keyboard mode. This technique has also been demonstrated to work on Raspberry Pi 4, Orange Pi 5, and Teensy 3.6. The Raspberry Pi 5 is running the Bookworm 64 bit desktop operating system. All baud rates are 115200.
Correction: The diode used was 1N4004.
Raspberry Pi 5 documentation:
[ Ссылка ]
new uart port cable: [ Ссылка ]
Copy the c_send5.cpp and arduino program for Xiao SAMD21: [ Ссылка ]
Xiao SAMD21: [ Ссылка ]
FTDI cable: [ Ссылка ]
pi pinout: [ Ссылка ]
USB OTG adapter: [ Ссылка ]
![](https://s2.save4k.ru/pic/27p4XHE3iyw/maxresdefault.jpg)