Projects / Ideas / Joystick USB mouse

Joystick USB mouse

BeginnerAssistive TechIdeaReviewed
In short

How do you build a joystick USB mouse?

A joystick module and two buttons turn an Arduino Leonardo into a USB mouse for people who find a normal mouse hard to use. You need Arduino Leonardo, Joystick module (dual axis), Tactile push button 6 mm × 2 and USB A to micro-USB cable (data).

Level
Beginner
Time
About 60 min
Parts
4
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Make a microcontroller act as a USB HID device.

How to build it

  1. Read the joystick axes
  2. Remove the centre offset and dead zone
  3. Move the pointer with Mouse.move
  4. Add click and double click buttons
  5. Adjust the speed

Related projects

Common questions

What parts do I need for the joystick USB mouse?

Arduino Leonardo, Joystick module (dual axis), Tactile push button 6 mm × 2 and USB A to micro-USB cable (data).

How long does the joystick USB mouse take to build?

About 60 minutes for a beginner maker.