Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.38 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.38 KB

RaspberryPi Zero W as Virtual USB devices

This project was developed to turn a RaspberryPi Zero into different virtual USB devices

Hardware requirements

  1. Raspberry Pi zero W x 1
  2. Micro SD card x 1
  3. Raspberry Pi OS Lite

Notes:

  1. 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
  2. You can use one of the other OS packages if you wish and skip the install of the GPIO Python package install
  3. Ensure you plug in the USB cable to the left hand side port, the right side is power only

Left port

Software installation

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

Configure the Zero so it can act as a USB device

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

Follow the instructions inside one of the folders for the type of device you want to emulate

  1. Joystick
  2. Mouse
  3. Network