game controlling via android

18
Prepared by : Mohammed Adnan Abu Ward 120081704 Prepared for : Prof.Mohammed Mikki

Upload: -

Post on 09-Jul-2015

119 views

Category:

Education


2 download

TRANSCRIPT

Page 1: Game controlling via android

Prepared by : Mohammed Adnan Abu Ward 120081704Prepared for : Prof.Mohammed Mikki

Page 2: Game controlling via android

Main Points Introduction

Android OS

Android sensors

Connecting

Controlling

Problems

Conclusion

References

Page 3: Game controlling via android

Introduction Control is one of complex engineering tasks that need

compatibility between two different systems.

Our project is a controlled computer, especially racing games through the mobile devices

This is done by measuring the exact movement of the mobile in any direction north or the right to be applied to a racing game

Page 4: Game controlling via android

Introduction… Values are taken resulting from the movement of

mobile and filtered and then sent via Bluetooth to a computer.

Values usually range between three typesMovement to the right in specific value

Movement of the North in specific valueStop Motion

After that, these movements are sent to the racing game installed on your computer

Page 5: Game controlling via android

Android OS

Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers.

Android become the world's most widely used smartphone platform, overtaking Symbian in the fourth quarter of 2010.

Page 6: Game controlling via android

Android OS…Why Android ?

open source code and permissive licensing allows the software to be freely modified and distributed by device manufacturers.

Android has a large community of developers writing applications.

In October 2012, there were approximately 700,000 apps available for Android

Page 7: Game controlling via android

Android Sensors Android Mobile has 13 sensor divides as software

or hardware each sensor has specific task.

We will talk about just 2 sensors which we use in our project.

Page 8: Game controlling via android

Android Sensors… Linear accelerometer sensor

Type :

Hardware

Description :

Measures the acceleration force in m/s2 that is applied to a device on all three physical axes (x, y, and z), excluding the force of gravity.

Page 9: Game controlling via android

Android Sensors… Gravity Sensor

Type :

Software or Hardware

Description :

Measures the force of gravity in m/s2 that is applied to a device on all three physical axes (x, y, z).

Page 10: Game controlling via android

Android Sensors… By moving your mobile linear accelerometer sensor

and gravity sensor give to us 3 values every value in different axis ( X , Y , Z ).

Software installed on android Mobile use these values to detect 3 instruction depending on your movement previously mentioned :

Move the object Left

Move the object right

Stop moving

Page 11: Game controlling via android
Page 12: Game controlling via android

ConnectingThe project consists of two programs

The first program: is on his Android mobile his job is to create Bluetooth communication with PC.

The second program: exists on the device and receive connection request accept in and start receiving data.

We use Bluetooth connection

Page 13: Game controlling via android

Controlling First : Android send the instruction to PC.

Second : PC receive these instruction and apply them to running game .

In flash games apply theses instruction simply using keyboard events

In complex game (Need For Speed ) you should access DirectX package to give movement instruction.

Page 14: Game controlling via android

Problems In this project we had faced many problems

1- It is very difficult to get a very accurate value based on the X , Y , Z values and then determine the direction.

2-most of complex games make low level instructions using assembly language and to control motion .

Page 15: Game controlling via android

Conclusion We can extend our project to control PC windows not

just Games.

We can use internet connection instead of Bluetooth connection.

I hope that you are interesting with this presentation.

Page 16: Game controlling via android

I remove the video due to Model limitation in size

Page 17: Game controlling via android

References [1] http://www.techrepublic.com/blog/app-builder/a-

quick-tutorial-on-coding-androids-accelerometer/472

[2] https://www.youtube.com/watch?v=iJIYmYlh38Y

[3]https://www.facebook.com/groups/449183371799566/files/

[4]http://developer.android.com/guide/topics/sensors/sensors_motion.html

Page 18: Game controlling via android

Questions ?