Ever had your cursor move a little bit while you weren't even touching the mouse? Freaky! This MakeCode program will turn your Gemma M0 into a Phantom Mouse Jiggler. When plugged in to a computer, it will wait patiently, and then occasionally take over the mouse cursor from the user and move it around back and forth. Maddening!

ALERT: do not use this knowledge for evil. Never use such a device on a computer that plays a critical role in safety, health, or security environments. This is best used a prank when you are nearby to prevent the user from smashing their machine to bits in frustration!

One very powerful feature of the Gemma M0 (and other ATSAMD21 ARM Cortex M0-based microcontrollers) is its ability to appear as a keyboard or mouse when plugged into a computer’s USB port.

The Gemma M0 can pretend to be a USB mouse, so we'll take a look at how to program it with MakeCode to wait dormant for long periods of time, and then jiggle the cursor for a few seconds!

You can code this project up using any 'M0 board that MakeCode supports, including the Metro M0, Trinket M0, even the Circuit Playground Express!


All you'll need is a Gemma M0 and a short USB cable to program and then deploy this prank!

1 x Gemma M0
Powerful yet small microcontroller
1 x USB Cable
A/Micro B - 6"

This guide was first published on Mar 12, 2018. It was last updated on Mar 12, 2018.

This page (Overview) was last updated on Mar 11, 2018.

Text editor powered by tinymce.