Skip to content

GlowingBones/PiCycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiCycle

PiCycle

Raspberry Pi Zero 2 W USB gadget: HID keyboard, mass storage, and a USB network interface at the same time.

Status: work in progress. Expect breaking changes.

What it does

PiCycle configures a Raspberry Pi Zero 2 W to present multiple USB functions concurrently:

  • HID keyboard (for scripted keystrokes)
  • Mass storage (exposed over USB)
  • USB Ethernet (network emulator) with a local web interface

Web Interface

PiCycle Web Interface

Hardware

Software

  • Raspberry Pi OS Lite (64-bit)

Install

  1. Flash Raspberry Pi OS Lite (64-bit) to the microSD (TF) card.
  2. Boot the Pi and log in.
  3. From your home directory, run:
sudo raspi-config nonint do_expand_rootfs
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y git
git clone --recursive https://github.com/GlowingBones/PiCycle.git
cd PiCycle
sudo bash ./install.sh
  1. When prompted to reboot, select Yes.

Connect

Option A: USB network

Using the USB dongle expansion board, plug the PiCycle device directly into your computer's USB port.

Open: http://10.55.0.1/

Option B: WiFi

Connect to the Pi remotely using the IP address assigned by your network.

WiFi is configured when flashing the OS image. You can change networks from the web interface.

Troubleshooting

Device not recognized over USB

  • Ensure you're using the USB data port, not the power-only port
  • Try a different USB cable (some cables are charge-only)
  • On Windows, the RNDIS driver may need to install automatically; wait a moment

Can't reach the web interface

  • Verify your computer received an IP address in the 10.55.0.x range
  • Try disabling other network interfaces temporarily
  • Clear your browser cache or try incognito mode

Safety and legal

PiCycle can generate HID keystrokes. Use only on systems you own or have explicit permission to test. Review and validate any automation before running it.

License

This project is licensed under the MIT License. See LICENSE for details.

About

Raspberry Pi Zero 2W as a HID keyboard, Mass storage device, and Network emulator all at the same time.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •