Skip to content

🕹️ A simple joystick made of an arduino nano to emulate mouse actions and movements.

License

Notifications You must be signed in to change notification settings

alexemanuelol/Arduino-JoyStick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino JoyStick 🕹️

A simple joystick made of an arduino nano to emulate mouse actions and movements.

GIF, JoyStick in action

In this project I used a Arduino Nano to emulate mouse actions and movements. Since the nano does not have native support for HID I had to create a python program that received the joystick data via serial messages and translated them to actual mouse actions and movements.

Complete overview Behind

How it works

The joystick is connected to the PC via USB-A to Mini-USB. From the PC you simply run the python program and the joystick will automatically connect to the program.

When the joystick is not connected to the program, the LED will be RED. And when the joystick is connected to the program, the LED will be GREEN. See image below: Status LED

Electronics

The components required are the following:

  • Arduino Nano
  • Analog JoyStick x1
  • Red LED x1
  • Green LED x1
  • 220Ω resistor x2

Schematics Hardware overview

The fritzing file of the hardware schematics can be found here.

Design

The stl file can be found here.

Design sketch

Setup environment

The only python library that is needed is pyserial defined in requirements.txt