Skip to content

tuxcomputers/pizero_usb_device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published