![gyroscope phones gyroscope phones](http://img.pricetree.com/large/20140602/hp-slate-6-voicetab-mobile.jpg)
A lot of cool games were developed using accelerometer. Accelerometer completely enhanced the gaming experience to another level, now we can turn the car just by tilting the phone in the desired direction. Every time the car needs a turn, he has to make a gesture on the touch screen using his finger while holding the phone, not to mention there may be other touch controls also which user has to deal with. Imagine one has to play a car racing game without the support of accelerometer. This also opened up a new avenue for all the gamers. The UI(user interface) can be automatically rotated either in portrait or landscape mode, depending on the phone's orientation. It added a lot of cool functionality to mobile phone. This is used to sense the orientation of the phone. Smartphones are just getting smarter.Īn Accelerometer can measure linear acceleration relative to a frame of reference. They can tell where they are geographically, they can sense proximity, they can sense linear orientation of the phone to auto rotate your photos and now they can also determine your rotation while you are spinning on a swivel chair. Considering their capabilities, we have to be amazed knowing how many hardwares are packed inside these small hand-held devices. Similar to accelerometers gyroscopes comes in pairs of three, one for each direction.Introduction of iPhone 4 saw the addition of another amazing sensor known as " Gyroscope" to mobile phones. This sideways movement can then be measured and you can calculate how the phone moves. If your phone is rotating then the crystal will not move in a streight line like expected but will also push to the side as it moves. The crystal is moved in a similar way that its movement is detected, by passing a current through the crystal it changes shape and moves. However instead of just measuring the movement of a flexible crystal a gyroscope needs to move the crystal and see how much it deflects to the side. The way a gyroscope work does remind a bit about howe an accelerometer work. But it is not really needed in most cases. But the gyroscope is used to help make the measurements from the accelerometer and compass faster and more accurate. This is due to inaccuracies in the gyroscope measurement accumulating over time. The problem with a gyroscope is that it can not tell the phone what is up and down and even have a hard time finding out how far you have rotated it. However phones can also come with gyroscopes. Most games can work with only the accelerometer. The accelerometer is the most important motion sensor in a phone as it does allow the phone to determine what is up and down as well as determine if you move it around. The other answers saying phones use accelerometers and not gyroscopes are partially right. Thats basically it, but the sensors could be set up far differently if your left finger moves forward and your right thumb moves backward, it knows its not moving forward or backward but its yawing, or spinning, this case around the z axis. So if your phone senses that left thumb is moving up and right finger is moving up but everythingelse shows nothing, the phone knows it is moving straight up. the "center" of your phone is the 0,0,0 point everything moves or twists around. these are the two "corners" of your phone. point your right hand finger up and your thumb towards you. Point your finger forward on your left hand, your thumb up and turn your other fingers in.
![gyroscope phones gyroscope phones](https://cdn.tgdd.vn/hoi-dap/873656/cau-hoi-873656-1-800x550.jpg)
combinations of these tell the phone if its turning or shaking as well.
![gyroscope phones gyroscope phones](https://c8.alamy.com/comp/2CTDNFH/gyroscope-smartphone-icon-isometric-style-2CTDNFH.jpg)
same for two other accelerometers in the x and y directions. metal gets squished, resistance drops, current goes up, telling the phone its moving down. when you put the phone down the opposite happens. when you lift your phone up, the metal stretches, making the resistance of the metal higher and dropping the current. in simplest analogy its a stretchy but of metal that current runs through. Those are far more likely accelerometers.