This project was developed to turn a RaspberryPi Zero into different virtual USB devices
- Raspberry Pi zero W x 1
- Micro SD card x 1
- Raspberry Pi OS Lite
Notes:
- You can use the original Zero and configure the USB port to act as a network adaptor but that is out of scope for this project
- You can use one of the other OS packages if you wish and skip the install of the GPIO Python package install
- Ensure you plug in the USB cable to the left hand side port, the right side is power only
Image the SD card with the image of the OS. There are many instructions on how to do this but my go to program is balenaEtcher
Enable libcomposite and other necessary modules and drivers
sudo echo "dtoverlay=dwc2" | sudo tee -a /boot/config.txt
sudo echo "dwc2" | sudo tee -a /etc/modules
sudo echo "libcomposite" | sudo tee -a /etc/modules