Game-play on a mobile phone: introducing a miniature ... - ams
Game-play on a mobile phone: introducing a miniature ... - ams
Game-play on a mobile phone: introducing a miniature ... - ams
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Technical Article<br />
<str<strong>on</strong>g>Game</str<strong>on</strong>g>-<str<strong>on</strong>g>play</str<strong>on</strong>g> <strong>on</strong> a <strong>mobile</strong> ph<strong>on</strong>e: <strong>introducing</strong> a <strong>miniature</strong> joystick with ultrafine<br />
c<strong>on</strong>trol<br />
By Alfred Binder<br />
Marketing Manager, austriamicrosystems AG<br />
C<strong>on</strong>sumers are familiar and comfortable with the user input devices supplied with PCs and games c<strong>on</strong>soles, such<br />
as handheld gamepads with joysticks. They provide the fine c<strong>on</strong>trol resp<strong>on</strong>ses that gamers expect.<br />
The circuit and mechanical design of such devices does not, however, translate into the much smaller form factor<br />
of the <strong>mobile</strong> ph<strong>on</strong>e and other small portable electr<strong>on</strong>ic products. Yet the increasing computing power and graphics<br />
capability in <strong>mobile</strong> ph<strong>on</strong>es, tablets and so <strong>on</strong> mean that new technology for a game c<strong>on</strong>troller <strong>on</strong> the <strong>mobile</strong> ph<strong>on</strong>e<br />
is required.<br />
Existing technologies for user input <strong>on</strong> the ph<strong>on</strong>e are far from ideal for gaming:<br />
• a touchscreen provides far less precise c<strong>on</strong>trol than a cursor-based device, and the user’s hand masks<br />
part or all of the screen when inputting touch commands<br />
• gyro sensors provide an analogue-type resp<strong>on</strong>se, but moving the gyro means moving the whole device,<br />
including the dis<str<strong>on</strong>g>play</str<strong>on</strong>g> screen. This spoils the visual effect of many games.<br />
• a trackball’s performance can be degraded by dust or dirt. Its resp<strong>on</strong>se is also unsuitable for gaming, as it<br />
does not support c<strong>on</strong>tinuous movement or progressive speed c<strong>on</strong>trol, and does not effectively mimic the<br />
feel of an analogue joystick. Power c<strong>on</strong>sumpti<strong>on</strong> is relatively high.<br />
• a trackpad (also known as optical mouse, optical finger mouse, optical finger navigati<strong>on</strong> or optical joystick)<br />
suffers from the same disadvantages as a trackball, except that it is immune to dust and dirt.<br />
So a new technology for game c<strong>on</strong>trol in portable devices is needed.<br />
EasyPoint TM module matches the requirements of the <strong>mobile</strong> ph<strong>on</strong>e envir<strong>on</strong>ment<br />
austriamicrosystems’ new EasyPoint module (see Figure 1) is a resp<strong>on</strong>se to this challenge. It is a simple<br />
assembly that can be dropped <strong>on</strong> to a main board. Interfacing to the host system’s electr<strong>on</strong>ics is straightforward.<br />
Page 1 of 4
Technical Article<br />
Fig. 1: the EasyPoint module<br />
The module c<strong>on</strong>sists of a mechanical stack incorporating a navigati<strong>on</strong> knob, a magnet and the AS5013 magnetic<br />
encoder IC (see Figure 2). A metal housing provides for stable mounting to the host device’s main PCB. The<br />
module is available in various c<strong>on</strong>figurati<strong>on</strong>s: the smallest is 8mm x 8mm x 1.5mm.<br />
Fig. 2: the EasyPoint TM module is a simple assembly that can be easily surface-mounted to the main board, with<br />
the AS5013 IC directly underneath the main board<br />
How EasyPoint TM works<br />
The AS5013 IC uses an array of Hall sensors to detect the lateral movement of a magnet above it. The magnet’s<br />
maximum travel is a circle of 2mm radius. Four Hall sensors (C1-4) are placed <strong>on</strong> a circle centred <strong>on</strong> the middle of<br />
the AS5013 (see Figure 3). A fifth sensor, C5, in the middle is used to improve linearity resp<strong>on</strong>se for magnet<br />
displacements larger than ±1mm. The movement of the magnet above the IC generates magnetic fields the<br />
strength of which can be plotted, producing the bell-like shapes shown in Figure 2.<br />
Page 2 of 4
Technical Article<br />
Fig. 3: lateral displacement of the magnet to the edge of its travel produces a change in magnetic field strength that<br />
can be c<strong>on</strong>verted into lateral displacement data<br />
An internal 8-bit ADC digitises the field-strength values produced by the five Hall elements, and an internal<br />
processing engine interprets these five values to give a simple x,y co-ordinate representing lateral movement with<br />
a circle of up to 2mm radius. The processing engine eases the designer’s task, because the host processor does<br />
not have to run complex algorithms.<br />
An interrupt signal alerts the host processor to read the x,y co-ordinates over a standard I 2 C bus at a frequency<br />
determined by the developer.<br />
The AS5013, which is the <strong>on</strong>ly power-c<strong>on</strong>suming comp<strong>on</strong>ent in the module, has two power modes: a low-power<br />
operating mode, and idle. In idle mode, the device draws <strong>on</strong>ly 3µA. In operating mode, the developer can select<br />
from a number of read-out speeds: the higher the frequency of read-outs, the more power the device c<strong>on</strong>sumes.<br />
How does a joystick with <strong>on</strong>ly ±1mm lateral displacement enable involving game <str<strong>on</strong>g>play</str<strong>on</strong>g><br />
To test the performance of the EasyPoint TM module in game <str<strong>on</strong>g>play</str<strong>on</strong>g>, austriamicrosystems modified an HTC<br />
smartph<strong>on</strong>e, disabling the gyro sensor input and in its place interfacing to the applicati<strong>on</strong>s processor a small<br />
EasyPoint TM module with ±1mm displacement.<br />
The dem<strong>on</strong>strati<strong>on</strong> can be viewed <strong>on</strong>line at http://blog.easypoint.com/eng/Latest-Posts/Applicati<strong>on</strong>s/I-m-able-toshoot-out-2.7-milli<strong>on</strong>-words-about-EasyPoint-in-as-little-as-1-minute-48-sec<strong>on</strong>ds-impossible.<br />
This shows the tiny<br />
EasyPoint TM device in use in puzzle and car racing games.<br />
Page 3 of 4
Technical Article<br />
How is a tiny device with just ±1mm of travel able to c<strong>on</strong>trol games The answer is because of the AS5013’s<br />
extreme accuracy, precisi<strong>on</strong> and speed. The array of five Hall elements provides a detailed magnetic map of the<br />
circular space in which the joystick moves. The internal 8-bit ADC, which decodes the magnetic field data, divides<br />
the travel from the centre to any point at the edge of the sensed area into 128 segments, each with its own coordinate.<br />
When the device is c<strong>on</strong>figured to measure the maximum ±1mm displacement, this means it can track<br />
movements of just 7.8µm.<br />
In itself, this detailed reading will not provide a sharp resp<strong>on</strong>se to the user’s input unless the device updates the<br />
applicati<strong>on</strong> fast enough to track the real-time movement of the joystick. In the HTC ph<strong>on</strong>e test, the EasyPoint TM<br />
module’s user-selectable frequency was set to its fastest 50Hz speed (a reading every 20ms): the effect was<br />
incredibly sharp and resp<strong>on</strong>sive, as though the <str<strong>on</strong>g>play</str<strong>on</strong>g>er was using a c<strong>on</strong>venti<strong>on</strong>al, handheld gamepad.<br />
A low-power device that is easy to interface to an applicati<strong>on</strong>s processor, EasyPoint TM has the potential to change<br />
the way c<strong>on</strong>sumers use any number of small portable devices such as <strong>mobile</strong> ph<strong>on</strong>es. <str<strong>on</strong>g>Game</str<strong>on</strong>g> <str<strong>on</strong>g>play</str<strong>on</strong>g> <strong>on</strong> the go will<br />
never be the same again!<br />
A video dem<strong>on</strong>strating the EasyPoint TM module is available at http://blog.easypoint.com/eng/General/EasyPoint-<br />
Video . Developers can order the EasyPoint TM AS5013-DB Demoboard <strong>on</strong>line at www.austriamicrosystems.com.<br />
Page 4 of 4