user-img

FUSION AUTOMATE

  • 16 Projects
  • 4 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

🖱️ ATtiny85 USB Mouse Jiggler

Turn your Digispark ATTiny85 into a compact, plug-and-play USB Mouse Jiggler using the DigiMouse library. This tiny tool keeps your computer awake by simulating subtle mouse movements — perfect for long downloads, presentations, or unattended tasks.


🔧 Arduino Setup

  • Additional Board URL
    Add this to your Arduino IDE:
    https://raw.githubusercontent.com/digistump/arduino-boards-index/master/package_digistump_index.json

  • Board Reference Image


📦 Project Overview

The Digispark ATTiny85 is a low-cost microcontroller capable of emulating USB HID devices. In this project, it acts as a virtual mouse, gently moving the cursor in a square pattern — right, down, left, up — every few seconds.

These movements are:

  • Minimal enough to avoid disrupting your workflow
  • Effective enough to prevent screen lock or sleep mode

⚙️ Key Features

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

🧠 How It Works

  • The DigiMouse library initializes a virtual USB mouse.
  • The loop moves the cursor in a small square pattern.
  • A delay ensures subtle, periodic movement to keep the system active.

📚 Required Library

#include <DigiMouse.h>

The DigiMouse library allows the ATTiny85 to simulate mouse movements and clicks as a USB HID device.


💡 Applications

  • 🖥️ Prevent Screen Lock: Keeps your system awake during downloads or updates
  • 🎤 Presentations: Ensures your screen stays active while presenting
  • 🧪 Testing & Automation: Maintains activity during unattended operations
  • 🛡️ Monitoring Systems: Prevents sleep on machines requiring constant uptime

🧪 Example Use Case

Upload the sketch to your Digispark ATTiny85, plug it into your PC or laptop, and let it run. Your system will stay awake — no more manual mouse wiggles!


⚠️ Notes

  • Compatible with Windows, macOS, and Linux systems that support USB HID devices
  • You can customize movement intervals and directions in the code to suit your needs

✅ Conclusion

With just a few lines of code and a Digispark ATTiny85, you can build a reliable USB Mouse Jiggler that keeps your system active — hands-free. It’s compact, affordable, and incredibly useful for anyone needing uninterrupted uptime.

 

Code
  • Arduino code

    ATTIny85-Mouse_7678985966900e6bd9c650.zip
    Download(8)

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.

389
 
9
0
0

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

  • Comments( 0 )
  • Like( 9 )
/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 | Guaranteed Purchase: Full techsupport