Pocket-Sized Impersonator: Turning a Pi Zero Into Any USB Device You Need
A Pi Zero with the right configfs setup can walk up to any computer and introduce itself as a serial console, an Ethernet adapter, a CD-ROM, or a keyboard. Here is the full build, from the four config lines to composite gadgets to the pitfalls that stop first-timers cold.