Skip to content

Wireless game controller using Gyro, Accelerometer, Arduino, Raspberry Pi

Notifications You must be signed in to change notification settings

Alamaar/Gyro-gun-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game controller

GIF

The game controller works as mouse input device to the PC. Device has its own website to control when the controller is on or off and make calibration to the controller. Project also includes game made with unity. Game is designed in mind to be used with controller.

Shooting gallery game made for this controller:

https://play.unity.com/mg/other/webgl-builds-45974

Frameworks and languages:

- Python
- Flask
- Unity (Game)
- i2c Dev libs (Arduino & MPU6050)

Controller

MPU6050 and Arduino feeds angles Roll,Pitch, Yawn with USB to Raspberry Pi. In RasbPi angles are converted to pixel values and then send to the client via sockets. In the client pixel values move the mouse and press Left Mouse if controllers trigger is pressed.

Simplyfyed diagram

Web UI

Web UI

Input lag and Yaw drift

With no other devices on wifi network the input lag was under 25ms. Yaw drift with this sensor was around 1 degree per minute. Yawn drift can be countered while in use by tilting controller 45 degress to oposite direction to correct the mouse placement in screen.

In Nucleo folder is yearlier version of the project using Nucleo with GY-50, GY-61 sensors.

About

Wireless game controller using Gyro, Accelerometer, Arduino, Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published