Synopses & Reviews
Turn your iPhone or iPad into the hub of a distributed sensor network with the help of an Arduino microcontroller. With this concise guide, youll learn how to connect an external sensor to an iOS device and have them talk to each other through Arduino. Youll also build an iOS application that will parse the sensor values it receives and plot the resulting measurements, all in real-time.
iOS processes data from its own onboard sensors, and now you can extend its reach with this simple, low-cost project. If you're an Objective-C programmer who likes to experiment, this book explains the basics of Arduino and other hardware components you need—and lets you have fun in the process.
- Learn how to connect the Arduino platform to any iOS device
- Build a simple application to control your Arduino directly from an iPad
- Gather measurements from an ultrasonic range finder and display them on your iPhone
- Connect an iPhone, iPad, or iPod Touch to an XBee radio network
- Explore other methods for connecting external sensors to iOS, including Ethernet and the MIDI protocol
Synopsis
This book looks at how to integrate iOS devices into distributed sensors network, both to make use of its own on-board sensors in such networks, but also as a hub. Beyond the discussion of basic client-server architectures, and making use of the existing wireless capabilities, this book examines how to connect iOS devices to microcontroller platforms via serial connections.
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 Basic Sensors in iOS.
About 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.
Table of Contents
Preface; Who Should Read This Book?; What Should You 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: Introduction to the Arduino; 1.1 The Arduino; 1.2 Blinking an LED; 1.3 Making a Serial Connection; 1.4 Summary; Chapter 2: Connecting the iPhone to the Arduino; 2.1 The Apple MFi Program; 2.2 The Redpark Serial Cable; 2.3 Connecting to the Arduino; 2.4 Connecting to an iOS Device; 2.5 A Simple Serial Application; 2.6 Log Messages; 2.7 Summary; Chapter 3: Controlling the Arduino from the iPad; 3.1 An Arduino on Your iPad; 3.2 Listening for Messages on the Arduino; 3.3 Putting It All Together; 3.4 Going Further; 3.5 Summary; Chapter 4: Using External Sensors from the iPhone; 4.1 The LV-MaxSonar-EZ1; 4.2 MaxSonar Range Finder for iPhone; 4.3 Connecting Directly to the Cable; Chapter 5: Connecting to an XBee Network; 5.1 XBee Modules; 5.2 How to Configure an XBee Series 1 Radio; 5.3 Configuring Two XBee Radios; 5.4 Connecting an XBee to an Arduino; 5.5 Connecting an XBee to an iOS Device; 5.6 Going Further; Chapter 6: Other Ways to Connect; 6.1 Using the Network; 6.2 Using a Soft Modem; 6.3 Using the MIDI Protocol; 6.4 Summary; ;