game controlling via android
TRANSCRIPT
Prepared by : Mohammed Adnan Abu Ward 120081704Prepared for : Prof.Mohammed Mikki
Main Points Introduction
Android OS
Android sensors
Connecting
Controlling
Problems
Conclusion
References
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
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
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.
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
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.
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.
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).
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
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
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.
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 .
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.
I remove the video due to Model limitation in size
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
Questions ?