Idea
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.
Parts list
- Development Boards
- Sensors
- Switches
- Cables & Wires
How to build it
- Read the joystick axes
- Remove the centre offset and dead zone
- Move the pointer with Mouse.move
- Add click and double click buttons
- 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.
