Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Android Sensor Programming By Example

You're reading from  Android Sensor Programming By Example

Product type Book
Published in Apr 2016
Publisher Packt
ISBN-13 9781785285509
Pages 194 pages
Edition 1st Edition
Languages
Author (1):
Varun Nagpal Varun Nagpal
Profile icon Varun Nagpal

Table of Contents (13) Chapters

Android Sensor Programming By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Sensor Fundamentals 2. Playing with Sensors 3. The Environmental Sensors – The Weather Utility App 4. The Light and Proximity Sensors 5. The Motion, Position, and Fingerprint Sensors 6. The Step Counter and Detector Sensors – The Pedometer App 7. The Google Fit Platform and APIs – The Fitness Tracker App

Understanding position-based sensors


The position sensor lets your app determine the position of a device. There are two major sensors in this category: the geomagnetic field sensor and the orientation sensor. The proximity sensor, which measures the proximity of any object to the phone, also comes under this category. The proximity sensor has already been discussed in the previous chapter in detail.

The magnetometer sensor

The magnetometer sensor measures the changes in the earth's magnetic field. It provides the raw magnetic field strength in units of micro tesla (μT). The magnetometer sensor is based on a miniature Hall effect sensor, which detects the earth's magnetic field along the three perpendicular xy, and z axes. The Hall effect sensor measures the magnetic field by generating a voltage that is proportional to the earth's magnetic field strength and polarity. This voltage is converted to micro tesla (μT) values using electric circuits. The magnetometer sensor provides two types...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}