Control games using arduino, mpu6050 and python

I am controlling my asphalt 8 game using my old upgraded bicycle. So let's see how it works

Jun 28, 2020

6142 views

1 respects

Components and supplies

2

Pushbutton Switch, Pushbutton

1

Arduino UNO

1

Jumper wires (generic)

1

6 DOF Sensor - MPU6050

Apps and platforms

1

Arduino IDE

1

python

Project description

Code

port1.py

python

before trying this install pyautogui by the command "pip install pyautogui", try this first if doesn't then try port2.py

Arduino_game_code.ino

arduino

Upload this code to your arduino uno

port2.py

python

this is port2.py, second python program use this if first one doesn't work, and this also need a additional program file so also place that on the same folder am also giving that additional program

port2.py

python

this is port2.py, second python program use this if first one doesn't work, and this also need a additional program file so also place that on the same folder am also giving that additional program

directkey.py

python

this is additional program required for port2.py so place them in same folder while running port2.py but don't run this, Only run port2.py that will automatically import the requirement from this program file

port1.py

python

before trying this install pyautogui by the command "pip install pyautogui", try this first if doesn't then try port2.py

Arduino_game_code.ino

arduino

Upload this code to your arduino uno

Downloadable files

Circuit Diagram

diagram is very easy and simple so connect wire, upload the program and enjoy

Circuit Diagram

Circuit Diagram

diagram is very easy and simple so connect wire, upload the program and enjoy

Circuit Diagram

Comments

Only logged in users can leave comments

hassankamran107

0 Followers

0 Projects

Table of contents

Intro

1

0