Skip to the content
2 layers22 × 12 mmInsomniac, the printed circuit board in 3D

CH32V003 USB HID Mouse which moves randomly to keep PCs awake, or many other dumb uses!

Size
22 × 12 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
10
Pads
32
Tracks, vias
60, 14
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
7 Jan 2025
Updated
2 Jun 2026

Overview

Insomniac is an open-source printed circuit board by ADBeta, from the ADBeta/Insomniac_Mouse repository on GitHub, published under the MIT licence. It is a 2-layer board of 22 × 12 mm with 12 parts on 10 nets, routed with 60 tracks and 14 vias.

It is built around the AP2112K-3.3. Its parts include 2 capacitors, 2 ICs, 1 resistor and 1 connector. It belongs with the RISC-V boards of this library.

Main components

1

README

README.md

Insomniac Mouse MkII

USB HID Mouse Device using a 10¢ Microcontroller.
Moves randomly to keep PCs awake; make games harder to play; annoy co-workers and friends; or to give you a digital fishbowl to watch.
Each board has jumpers to change the Mouse Behaviour, a lanyard loop, and is designed with minimum cost and complexity.

Using ch32v003fun and rv003usb to create a Software Defined HID Mouse - it then uses Bresenham's Line Algorithm to plot lines for the mouse to move.

Schematic
PCB_2D
PCB_Front PCB_Back

Jumpers

ModeJ1J2J3DescriptionUsecase
Normal000±125 Units MovementDefault balance of speed and distance
Hi-Res100±250 Units MovementLonger movement for Hi DPI Displays
Jitter010±20 Units MovementMore chaotic movement. Good for messing with games
Stepped110±2 Unit Movement (Slower)Slow mode for controllability while plugged in
Square001Lock movement to a squarePrevents the mouse from wandering too far
Unused101
Unused011
Unused111

Uses

Keeping PCs awake

Even if you disable Screensaver/Sleep mode, some PCs go to sleep anyway - this forces the machine to stay awake regardless.
This is especially useful on Industial, Unmanaged and headless machines.

Testing USB Ports

Due to the very low power consumption, small size, lanyard loop, USB 1.0 connection spec, and simple HID data, this is a perfect cheap USB Tester.

Activity Monitor Spoofing

Because this moves the mouse like any other HID Mouse, it keeps users as "Online" on Teams, Slack etc programs which monitor user activity.
WARNING This is not recommended, and any touble you get into for doing this is your own fault.

Pranks / Game Challenges

Guaranteed to annoy your friends and make games much harder to play.

Creating Artwork

Hold down the mouse in an art package of your choice to create some.... interesting art.

art 4 colour
art 12 colour
art confetti

PCB Specification

The overall thickness of the PCBs MUST be between 2.0mm and 2.4mm.
MkII Offers more adaptability to get to this final thickness easily.

  • Order Insomniac_USB_Gerb as a 2.0mm PCB
  • Order Insomniac_USB_Gerb as a 1.6mm PCB and glue on a 0.4mm - 0.8mm Shim
  • Order Insomniac_USB_Gerb and Insomniac_Shim_Gerb as 1.2mm or 1.0mm PCBs and glue together

Partslist

text
U1    CH32V003J4M6       SOIC-8
U2    AP2112K-3.3        SOT-23-5
C1    100nF MLCC         0603
C2    100nF MLCC         0603
R1    1.5K Ohm           0603

CHANGELOG

  • V1.0.1 - Fixed a compatability issue with Windows
  • V1.1.2 - Refactor functions and vairable names
  • V1.2.0 - Added Diagonal Movement for USB HID Data, improves smoothness
  • V1.3.2 - Changed Jumper Detection Method & added JITTER Mode
  • V1.4.0 - Refined the code and added CALM Mode.
  • V1.5.0 - Added USB Serial Number based on UUID of the MCU
  • V2.0.0 - MkII PCB and minor bug fixes & refactor
  • V2.1.0 - Added Square Limit Mode

TODO


MIT License Copyright (c) 2025-2026 ADBeta

Parts

12
QtyValueFootprintReferences
2100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2
11K5Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U2
1CH32V003Package_SO:SOP-8_3.9x4.9mm_P1.27mmU1
1GNDTestPoint:TestPoint_Pad_D1.0mmTP2
1JP1Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1JP2Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP2
1JP3Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP3
1PCB_USBFootprints:PCB_USB_AJ1
1SWIOTestPoint:TestPoint_Pad_D1.0mmTP1
1VCCTestPoint:TestPoint_Pad_D1.0mmTP3

More from ADBeta/Insomniac_Mouse

1
  • 2 layers27 × 12 mmInsomniac MkII, the printed circuit board in 3D

    Insomniac MkII

    ADBeta/Insomniac_Mouse

    CH32V003 USB HID Mouse which moves randomly to keep PCs awake, or many other dumb uses!

    10 parts2MIT

Similar boards

  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 2 layers53.2 × 24.8 mmPicoLink, the printed circuit board in 3D

    PicoLink

    ErichStyger/mcuoneclipse

    McuOnEclipse projects and examples

    46 parts765
  • 2 layers36 × 20 mmCombined, the printed circuit board in 3D

    Combined

    adamb314/ServoProject

    Getting the most out of your hobby servo

    24 parts545
  • 2 layers25 × 25 mmSmallEncoder, the printed circuit board in 3D

    SmallEncoder

    DDeGonge/OS-ARM

    This arm is not industrial and it will not be fast, but that is not my goal. But it will hopefully be a very nice looking arm fully capable of 6dof motion, cheap enough to keep it accessable but capable enough to…

    17 parts498MIT
  • 4 layers70 × 72 mmSPINC AA Charger, the printed circuit board in 3D

    SPINC AA Charger

    CoretechR/SPINC

    DIY Automatic Battery Charger Using RP2040

    101 parts467GPL-3.0
  • 4 layers60.8 × 61.3 mmOS3M Mouse, the printed circuit board in 3D

    OS3M Mouse

    spoter368/os3m-hardware

    All the hardware needed to build your own OS3M Mouse!

    51 parts399
  • 4 layers74 × 104 mmBeepy, the printed circuit board in 3D

    Beepy

    sqfmi/beepy-hardware

    Beepy Hardware

    160 parts348MIT

Questions

How big is the Insomniac PCB?

It measures 22 × 12 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Insomniac use?

12 parts, built around the AP2112K-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Insomniac KiCad files?

From the ADBeta/Insomniac_Mouse repository on GitHub, at the commit this page was made from: the board is PCB/MkI/Insomniac.kicad_pcb and its schematic PCB/MkI/Insomniac.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Insomniac design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).