Game controller, based on the MPU6050 gyroscope & Arduino Pro Micro. See https://github.com/SimonMaier/MarioKartHelmet form more infos.
For the Giant Joystick use the Branch GiantJoystick
: https://github.com/HackerLoop/BasicHeadTracker/tree/GiantJoystick
Plug the USB directly on the computer.
Go to https://gamepad-tester.com/
MPU6050
VCC -> VCC GND -> GND SCL -> 2 SDA -> 3 AD0 -> GND INT -> 7
pin A0 -> button a (onboard) pin A1 -> LED onboard button
pin 15 -> TriggerL (connector 1 green) pin 14 -> TriggerR (connector 1 blue) pin 16 -> button B (connector 2 green) pin 10 -> button START (connector 2 blue)
pin RST -> Button RESET
- Keep wire short Between MPU and Arduino (may cause issue if wire are to long)
- Install external Arduino libraries:
-
i2cdevlib collection (at least I2Cdev and MPU6050).
Follow the installation instructions on the website, or copy the folders
i2cdevlib/Arduino/I2Cdev
andi2cdevlib/Arduino/MPU6050
from the project repository into your Arduino libraries directory (~/Arduino/libraries/
on Linux).
- Upload the software (select Arduino Leonardo w/Xinput as a target board)
!!!!!!! IMPORTANT !!!!!!! Due to the nature of how the XInput USB mode works, Arduinos that have XInput sketches on them will not automatically reset when programmed by the IDE!
You will need to press the reset button twice quickly every time you upload new code.
How to Upload: https://github.com/dmadison/ArduinoXInput_AVR