Basic Sensors in iOS: Programming the Accelerometer, Gyroscope, and More [NOOK Book]

Overview

What really sets the iPhone apart from laptops and PCs is its use of onboard sensors, including those that are location-enabled. This concise book takes experienced iPhone and Mac developers on a detailed tour of iPhone and iPad hardware by explaining how these sensors work, and what they're capable of doing.

With this book, you'll build sample applications for each sensor, and learn hands-on how to take advantage of the data each sensor ...

See more details below
Basic Sensors in iOS: Programming the Accelerometer, Gyroscope, and More

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$10.99
BN.com price
(Save 15%)$12.99 List Price

Overview

What really sets the iPhone apart from laptops and PCs is its use of onboard sensors, including those that are location-enabled. This concise book takes experienced iPhone and Mac developers on a detailed tour of iPhone and iPad hardware by explaining how these sensors work, and what they're capable of doing.

With this book, you'll build sample applications for each sensor, and learn hands-on how to take advantage of the data each sensor produces. You'll gain valuable experience that you can immediately put to work inside your own iOS applications for the iPhone, iPod touch, and iPad. This book helps you focus on:

  • Camera: learn how to take pictures and video, create video thumbnails, customize video, and save media to the photo album
  • Audio: use the media picker controller and access the iPod music library in your own application, and enable your app to record and play sampled audio
  • Accelerometer: write an application that uses this sensor to determine device orientation
  • Magnetometer: learn how this sensor verifies compass headings
  • Core Motion: use this framework to receive motion data from both the accelerometer and the vibrational gyroscope


This short book is part of a collection that will, along with new material, be compiled into a larger book, iOS Sensor Programming. The other books in this collection are Augmented Reality in iOS, Geolocation in iOS, and iOS Sensor Apps with Arduino.

Read More Show Less

Product Details

  • ISBN-13: 9781449315429
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 7/22/2011
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 108
  • File size: 8 MB

Meet the Author

Alasdair Allan is a senior research fellow in Astronomy at the University of Exeter, where he is building an autonomous, distributed peer-to-peer network of telescopes that reactively schedule observations of time-critical events. He also runs a small technology consulting business writing bespoke software and building open hardware, and is currently developing a series of iPhone applications to monitor and manage cloud-based services and distributed sensor networks.

Read More Show Less

Table of Contents

Preface; Who Should Read This Book?; What You Should Already Know?; What Will You Learn?; What’s In This Book?; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: The Hardware; 1.1 Available Sensor Hardware; 1.2 Differences Between iPhone and iPad; 1.3 Detecting Hardware Differences; 1.4 Setting Required Hardware Capabilities; Chapter 2: Using the Camera; 2.1 The Hardware; 2.2 Capturing Stills and Video; 2.3 Video Thumbnails; 2.4 Saving Media to the Photo Album; 2.5 Video Customization; Chapter 3: Using Audio; 3.1 The Hardware; 3.2 Media Playback; 3.3 Recording and Playing Audio; Chapter 4: Using the Accelerometer; 4.1 About the Accelerometer; 4.2 Writing an Accelerometer Application; 4.3 Determining Device Orientation; 4.4 Detecting Shaking; Chapter 5: Using the Magnetometer; 5.1 About the Magnetometer; 5.2 Writing a Magnetometer Application; 5.3 Measuring a Magnetic Field; Chapter 6: Using Core Motion; 6.1 Core Motion; 6.2 Accessing the Gyroscope; 6.3 Measuring Device Motion; Chapter 7: Going Further; 7.1 The iPhone SDK; 7.2 Geolocation and Maps; 7.3 Speech Recognition; 7.4 Computer Vision; 7.5 External Accessories; Colophon;

Alasdair Allan is a senior research fellow in Astronomy at the University of Exeter, where he is building an autonomous, distributed peer-to-peer network of telescopes that reactively schedule observations of time-critical events. He also runs a small technology consulting business writing bespoke software and building open hardware, and is currently developing a series of iPhone applications to monitor and manage cloud-based services and distributed sensor networks.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)