iOS Sensor Apps with Arduino.pdf
(
42390 KB
)
Pobierz
iOS Sensor Apps with Arduino
Alasdair Allan
Beijing
Cambridge
Farnham
Köln
Sebastopol
Tokyo
•
•
•
•
•
iOS Sensor Apps with Arduino
by Alasdair Allan
Copyright © 2011 Alasdair Allan. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (
http://my.safaribooksonline.com
)
. For more information, contact our
corporate/institutional sales department: (800) 998-9938 or
corporate@oreilly.com
.
Editors:
Shawn Wallace and Brian Jepson
Production Editor:
Teresa Elsey
Cover Designer:
Karen Montgomery
Interior Designer:
David Futato
Revision History for the First Edition:
See
http://oreilly.com/catalog/errata.csp?isbn=9781449308483
for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc.
iOS Sensor Apps with Arduino
, the image of an agouti, and related trade dress are
trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-30848-3
[LSI]
1317134531
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1.
Introduction to the Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Arduino
1
Powering the Board
3
Input and Output
3
Communicating with the Board
3
Installing the Software
3
Connecting to the Board
5
Blinking an LED
6
Uploading the Sketch
9
Making a Serial Connection
11
Summary
13
2.
Connecting the iPhone to the Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
The Apple MFi Program
15
The Redpark Serial Cable
16
Testing the Cable
17
Connecting to the Arduino
18
Connecting to an iOS Device
21
A Simple Serial Application
21
Adding the Redpark Serial Library
24
Connecting the Arduino
28
Sending Data Back to the Arduino
30
Log Messages
31
Summary
37
3.
Controlling the Arduino from the iPad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
An Arduino on Your iPad
39
Adding the Serial Library
39
Building the User Interface
40
iii
Plik z chomika:
kubuspucharek
Inne pliki z tego folderu:
Making Things See.pdf
(20912 KB)
Arduino Internals 2.pdf
(28159 KB)
iOS Sensor Apps with Arduino.pdf
(42390 KB)
Apress - Arduino and Kinect Projects 2012 RETAiL eBOOk-rebOOk.pdf
(17743 KB)
Arduino projects to save the world.pdf
(27276 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin