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 z

Android Application Automation Testing using MonkeyTalk IDE Professional

Steps to install and run the MonkeyTalk scripts 1. Download Monkey Talk IDE and AspectJ from given link:     https://www.cloudmonkeymobile.com/monkeytalk     Download Eclipse 4.3.1 or 4.3.2 (for Windows) from given link and copy in    your C Drive.     https://www.eclipse.org/downloads/packages/eclipse-standard-432/keplersr2 2. Launch Eclipse and install AspectJ for respective eclipse version.      aspectj - http://download.eclipse.org/tools/ajdt/37/update 3. Now get the app source code from your developer which you want to test and import it in eclipse. 4. Right Click on your project >> Configure >> Convert to AspectJ project.      5. Check you have "libs" folder or not.If you have then OK or else create a new "libs" folder. 6. Now open Monkey Talk\monkeytalk\agents\android\ monkeytalk-agent-2.0.5.jar folder that we downloaded in step 1. Drag & copy the agent.jar file in libs folder. 7. Now Right Click on newly c

AI in Software Testing

AI Testing In the span of only a few months, AI has reshaped the landscape of almost every industry around the world in both positive and negative ways. Indeed, there is still a lot of room for improvement in this groundbreaking technology, but if businesses don’t embrace it, they’re sure to be left behind. In the QA industry, “AI testing” will become the norm in the next few years, bringing incredible advancements in the way we think and do software testing. In this article, we’ll explore the concept of AI testing in-depth, see how AI can optimize testing, and share the pioneering AI testing tools that you can leverage to transform your QA workflows. What is AI? Before diving into the concept of AI testing, we must first have a common understanding of Artificial Intelligence (AI). AI has become a buzzword recently after the introduction of ChatGPT – a revolutionizing chatbot. So, what is AI? AI can be defined as the simulation of human intelligence via machines that are programmed to