accelerometers in phones - a workshop
DESCRIPTION
Slides from a presentation to postgrads at Sussex University. Feb 2012. Students had to give short talks on GPS, accelerometer, gyro and compass. I presented these slides - what I know about GPS and what I don;t know about AccTRANSCRIPT
Accelerational
A few thoughts on the use of accelerometers in games
Richard Vahrman - Locomatrix
Phones & Tablets - Full of Sensors
• But lets look at GPS and accelerometers
GPS – What you getAttribute Description Unit
latitudeThe geographical coordinate with a value between –90 to +90 degrees. Negative latitude denotes south and positive latitude denotes north.
Degrees
longitudeThe geographical coordinate with a value between –180 to +180 degrees. Negative longitude denotes west and positive longitude denotes east.
Degrees
altitude Vertical height of the geographical coordinates (Latitude and Longitude). Meters
horizontalAccuracy(Accuracy) The horizontal accuracy of the position denoted by the geographical coordinates (Latitude and Longitude). Meters
verticalAccuracy(Altitude Accuracy) The vertical accuracy of the position denoted by the geographical coordinates (Latitude and Longitude). Meters
speed The current ground speed of the device. If the device is stationary, the value of this attribute will be zero.
Meters per Second
timestamp
The time since the application was initialized. For example, if the application has captured geolocation data for four seconds after it got initialized, then the value of this attribute will be 4000.
Milliseconds
GPS – What you can do with it
Invisible BuildingsHere’s our game
Metal Detectors
GeoFizz
The Dig
Dinosaurs
Bomb Disposal Squad
Accelerometers – What you get• accelerationX—Acceleration along the x-axis, measured in g’s. The x-axis
runs from the left to the right of the device when it is in the upright position. (The device is upright when the top of the device is facing up.) The acceleration is positive if the device moves toward the right.
• accelerationY—Acceleration along the y-axis, measured in g’s. The y-axis runs from the bottom to the top of the device when it is in the upright position. (The device is upright when the top of the device is facing up.) The acceleration is positive if the device moves up relative to this axis.
• accelerationZ—Acceleration along the z-axis, measured in g’s. The Z axis runs perpendicular to the face of the device. The acceleration is positive if you move the device so that the face of the device points up. The acceleration is negative if the face of the device points towards the ground.
• timestamp—The number of milliseconds at the time of the event since the runtime was initialized.
Plane flying games
Car Racing Games
Tilting Games
Arcade Games
Penguin Skiing Games
But, aren’t these all the same?
• Yes, a more interactive mouse.• Can we do more?
Thinking something more like this
Maybe this
My Height System
Digging• The winners of this
year’s hole digging contest managed to dig a 3.26-meter-deep hole, and took home the 100,000 yen ($1,215) cash prize. It didn’t exactly make them rich men, but it was an original way to spend a Sunday.
Investigating Sensors - GPS Status
Investigating Sensors – Tour de Flex