Skip to content

About

Waveshare RP2040-Zero mouse jiggler with creative profiles, LED feedback and interactive keyboard menu

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Jiggler

A mouse jiggler for the Waveshare RP2040-Zero, based on doccaz/multi-jiggler, rewritten in CircuitPython. Spoofs as a Logitech M105 mouse, cycles through creative movement profiles, and has a keyboard-driven config menu.


Hardware

Component Pin
WS2812 RGB LED GP16 (built-in)
BOOT button GP23 (built-in — safe mode only, not usable at runtime)
External button GP1 + GND

Wire an external momentary button between GP1 and GND. GP23 is driven LOW by the USB stack at runtime and cannot be used for button input.


Quick-start

1 · Flash CircuitPython

Download the RP2040-Zero .uf2 from circuitpython.org (9.x recommended).

Hold BOOT, plug in via USB-C → drag .uf2 to the RPI-RP2 drive.

2 · Install libraries

From the Adafruit CircuitPython Bundle, copy into lib/:

adafruit_hid/

neopixel is built-in on this board.

3 · Copy project files

Copy all files to the root of CIRCUITPY:

boot.py
code.py
config.json

4 · Replug

Unplug and replug without holding any button. The device enumerates as a Logitech USB Optical Mouse with no drive or serial port visible.


Operating modes

Mode How to enter USB appearance
Normal Plug in without holding BOOT Logitech HID mouse only
Config Hold BOOT while plugging in (or hold BOOT + press RESET) CircuitPython safe mode — CIRCUITPY drive + serial visible, code.py does not run

In config mode the drive is visible so you can edit config.json or replace code.py. Press RESET without holding BOOT to return to normal mode.


Button (GP1)

Press Action
Short (< 1.5 s) Cycle to next enabled profile
Long (≥ 1.5 s) Open / navigate config menu

LED colours

Profile Colour
nudge 🔵 Blue
figure8 🟢 Green
spiral 🟣 Purple
random 🟠 Orange
clock 🩵 Cyan
zen 🩷 Pink
off 🔴 Dim red

LED breathes while active. Blinks white slowly while in the config menu.


Profiles

Name Description
nudge Tiny alternating ±X nudge
figure8 Smooth lemniscate (figure-of-eight)
spiral Expanding then contracting spiral, two rotations
random Random burst in any direction, snaps back
clock Full circular sweep
zen Single-pixel drift in 8 directions — imperceptible
off No movement

Disable any profile by setting "enabled": false in config.json — it will be skipped by the button cycle.


Config menu

Long-press GP1 while in normal mode. The menu is typed via HID keyboard into whatever text field is currently focused.

=== JIGGLER MENU ===
> Profile:    nudge  (~40px)
    (tiny back-and-forth nudge)
  Amplitude:  1.0x
  Interval:   5s
  Brightness: 0.08
  Erase:      on
  Save & Exit
[short=move  long=edit/save]
In menu Short press Long press
Menu select Move cursor down Enter edit for highlighted item
Edit mode Cycle value (profile/amplitude also demo the movement live) Confirm and return to menu
Save & Exit — Write config.json and exit menu

Menu items

Item Options Notes
Profile nudge, figure8, spiral, random, clock, zen, off Shows description and ~px span
Amplitude 0.25×, 0.5×, 1×, 2×, 4×, 8× Global multiplier on all movement distances
Interval 5, 10, 15, 30, 60, 120 s Time between each jiggle
Brightness 0.04 – 0.30 LED brightness
Erase on / off Whether menu redraws in-place (turn off for auto-indenting editors)
Save & Exit — Saves all pending changes to config.json

The ~px figure next to the profile name is an estimate of how far the cursor travels on screen. Actual pixels depend on OS pointer speed.


config.json reference

{
    "active_profile": "nudge",
    "amplitude": 1.0,
    "interval_seconds": 5,
    "led_brightness": 0.08,
    "menu_erase": true,
    "profiles": {
        "nudge":   { "enabled": true, "distance": 20 },
        "figure8": { "enabled": true, "radius": 80,      "steps": 32 },
        "spiral":  { "enabled": true, "max_radius": 100, "steps": 40 },
        "random":  { "enabled": true, "max_distance": 60 },
        "clock":   { "enabled": true, "radius": 80,      "steps": 60 },
        "zen":     { "enabled": true, "distance": 3 },
        "off":     { "enabled": true }
    }
}

USB spoofing

boot.py sets:

Manufacturer : Logitech
Product      : USB Optical Mouse
VID          : 0x046D
PID          : 0xC077  (M105 Optical Mouse)

To spoof a different device edit those four values in boot.py. Note that boot.py is skipped entirely in safe mode, so the spoofing only applies during normal operation.


Troubleshooting

Drive never appears — hold BOOT before the USB-C is connected, not after.

Button does nothing — confirm the external button is wired between GP1 and GND, not GP23.

Menu text is indented/shifting — set "menu_erase": false in config.json (or toggle Erase to off in the menu itself).

Mouse not moving — check serial console in safe mode for HID init failed or HID error. Confirm adafruit_hid is in /lib.

About

Waveshare RP2040-Zero mouse jiggler with creative profiles, LED feedback and interactive keyboard menu

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages