user-img

FUSION AUTOMATE

  • 4 Projects
  • 3 Followers
  • Oct 28,2025
+ Follow

ATTiny85 mouse jiggler

This project uses a Digispark ATTiny85 to act as a USB mouse jiggler. Using the DigiMouse library, it emulates a mouse and moves the cursor in a small square pattern every few seconds, preventing the computer from going idle or locking automatically.

ATTiny85 mouse jiggler
 
  • thumbnail-img
 

Hardware Components

  • ATtiny85

    X 1

Tools, APP Software Used etc.

  • Arduino IDE

    Arduino IDE

    Arduino

Story

Digispark ATTiny85 USB Mouse Jiggler

Turn your Digispark ATTiny85 into a simple yet powerful USB Mouse Jiggler using the DigiMouse library!
This tiny project ensures your computer never goes idle or locks automatically — perfect for long-running tasks, presentations, or downloads.


Project Overview

The Digispark ATTiny85 is a compact and affordable microcontroller that can easily emulate USB devices.
In this project, it acts as a virtual USB mouse, performing small, periodic cursor movements to keep your computer awake.

Once plugged into a USB port, the device automatically moves the mouse cursor in a subtle square pattern — right, down, left, and up — every few seconds.
These movements are minimal enough not to interfere with your workflow but effective enough to prevent system inactivity or screen lock.


⚙️ Key Features

No extra hardware required — runs entirely on the Digispark ATTiny85
USB HID mouse emulation using the DigiMouse library
Configurable movement interval (default: every 2 seconds)
Prevents automatic sleep, lock, or screensaver activation
Plug-and-play operation — just connect it to any USB port


How It Works

  1. The DigiMouse library initializes a virtual USB mouse.

  2. In the main loop, the device moves the cursor slightly in four directions — forming a small square.

  3. A delay is applied (default 2000 ms) between cycles to keep movements subtle yet consistent.

  4. The loop repeats indefinitely, keeping the system in an active state.


Required Library

#include <DigiMouse.h>

The DigiMouse library enables the Digispark ATTiny85 to act as a USB Human Interface Device (HID), simulating mouse movement and clicks.


Applications

➤ Prevent Screen Lock: Keeps your computer awake during long downloads, updates, or file transfers.
Perfect for Presentations: Ensures your display never turns off while presenting.
Ideal for Testing & Automation: Maintains system activity during unattended operations.
Useful in Controlled Environments: Prevents automatic sleep on machines that require constant monitoring.


Example Use Case

Simply upload the sketch to your Digispark ATTiny85, plug it into your PC or laptop, and let it do the rest.
Your system will remain active — no more manual mouse wiggles!


⚠️ Note

➤Works best on Windows, macOS, and Linux systems that recognize standard USB HID devices.

➤Ensure to adjust movement intervals and directions in code if you want a different pattern or timing.


Conclusion

With just a few lines of code and the Digispark ATTiny85, you can build a fully functional USB Mouse Jiggler that prevents your system from going idle. It’s a compact, low-cost, and practical tool for anyone who needs to keep their computer awake — hands-free!

 

Code
  • Arduino code

    ATTIny85-Mouse_7678985966900e6bd9c650.zip
    Download(1)

ATTiny85 mouse jiggler

This project uses a Digispark ATTiny85 to act as a USB mouse jiggler. Using the DigiMouse library, it emulates a mouse and moves the cursor in a small square pattern every few seconds, preventing the computer from going idle or locking automatically.

68
 
2
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 2 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Supported Purchase: Full After-sales Protection