Skip to main content

Sensors in Mobile devices



Modern mobile phones come with a variety of sensors that automate or easy many of our daily tasks. This field takes into account the presence of an accelerometer, a gyroscope, a compass, and a barometer.

Accelerometer and gyroscope:-

Accelerometers in mobile phones are used to detect the orientation of the phone. The gyroscope, or gyro for short, adds an additional dimension to the information supplied by the accelerometer by tracking rotation or twist.
An accelerometer measures linear acceleration of movement, while a gyro on the other hand measures the angular rotational velocity. Both sensors measure rate of change; they just measure the rate of change for different things.
In practice, that means that an accelerometer will measure the directional movement of a device but will not be able to resolve its lateral orientation or tilt during that movement accurately unless a gyro is there to fill in that info.
With an accelerometer you can either get a really "noisy" info output that is responsive, or you can get a "clean" output that's sluggish. But when you combine the 3-axis accelerometer with a 3-axis gyro, you get an output that is both clean and responsive in the same time."

Application of Gyros:-
  • Auto Balancing Robot
  • Car navigation
  • Mobile games
  • Motion sensing
  • Radio – controlled helicopters
  • Motorboats
  • Aircraft
  • Space shuttle
  • Digital and SLR camera
Digital compass:-

The digital compass that's usually based on a sensor called magnetometer provides mobile phones with a simple orientation in relation to the Earth's magnetic field. As a result, your phone always knows which way is North so it can auto rotate your digital maps depending on your physical orientation.

Barometer:-

Barometer as ā€œa scientific instrument used in meteorology to measure atmospheric pressure.ā€ It measures the pressure exerted by the atmosphere above it. This measurement of pressure can be used to forecast short term changes in the weather and can be used to estimate altitude.
Some manufacturer includes ā€œclock and weatherā€ widget prominently featured on the home screen. Other app developers have created similar widgets.
These widgets use your Smartphone’s Geo-location information and your Internet connection to retrieve local weather information (current, high, and low temperatures; and current conditions) for various weather data providers. Using the same information you can get the weather forecast for the next several days.

Note: - Barometer is there to help the GPS chip inside the device get a faster lock by instantly delivering altitude data.

Comments

Popular posts from this blog

Collect console logs for iOS devices

Mostly I work in a windows environment and it is necessary to get console logs for iOS devices to find out the root cause of the issue. We can get iOS app crash log from this path ( C:\Users\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\DSS-Iphone 6 ) in windows machine using iTunes. But we need an entire app log to understand what goes wrong in the application. And after some research, I found iTools which allow you to manage iOS devices and also show entire device logs. This tool helps me to do my testing. As per my understanding, this tool will not run without iTunes. iTools was also affected by the latest iTunes update. Now I have found some other tool called 'iOSLogInfo'. Download and run iOSLogInfo to get console log for iOS devices in windows. Requirements:- iOSLogInfo ( Download link - https://www.blackberry.com/blackberrytraining/web/KB_Resources/KB36986_iOSLogInfo_4.3.4.zip    ) iTunes for windows Steps:- Download and save iOSLogInfo ...

Test Android app battery consumption with Battery Historian Tool

Requirement:-  1. Android ADB 2. Download the open source Battery Historian python script from GitHub.       https://github.com/google/battery-historian . 3. Unzip the file to extract the Battery Historian folder. Inside the folder, find the historian.py  file and move it to the Android SDK platform-tools folder.            Steps:- 1.  Connect your mobile device to the computer. 2.  On your computer, open a terminal window. 3.  Change to the directory where you have saved historian.py.        D:\Android\sdk\platform-tools> 4.  Shut down your running adb server.       >adb kill-server 5.  Restart your adb server.          D:\Android\sdk\platform-tools> adb start-server 6.  Check for connected devices.          D:\Android\sdk\platform-tools> adb devices 7.  Reset...

Mobile application and its types

Mobile Application and its types Mobile Application A mobile application is a  software application  designed to run on  smartphones ,  tablets  and other  mobile devices . They are usually available through application distribution platforms, which are typically operated by the owner of the  mobile operating system , such as the Apple  App Store , Google Play Store, RIM BlackBerry App World and Windows App Store. Types of Mobile Applications There are following types of mobile applications exists:- 1.      Native Application. 2.     Hybrid (Client Server) Application. 3.     Mobile Web Application. 1.      Native Application:-                      Native applications are built for a specific platform with the platform...