
Building iPhone and iPad Electronic Projects
Real-World Arduino, Sensor, and Bluetooth Low Energy Apps in techBASIC
Publisher: O'Reilly Media
Release Date: September 2013
Pages: 334
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
Why simply play music or go online when you can use your iPhone or iPad for some really fun projects, such as building a metal detector, hacking a radio control truck, or tracking a model rocket in flight? Learn how to build these and other cool things by using iOS device sensors and inexpensive hardware such as Arduino and a Bluetooth Low Energy (LE) Shield.
This hands-on book shows you how to write simple applications with techBASIC, an Apple-approved development environment that runs on iOS devices. By using code and example programs built into techBASIC, you’ll learn how to write apps directly on your Apple device and have it interact with other hardware.
- Build a metal detector with the iOS magnetometer
- Use the HiJack hardware platform to create a plant moisture sensor
- Put your iPhone on a small rocket to collect acceleration and rotation data
- Hack a radio control truck with Arduino and Bluetooth LE
- Create an arcade game with an iPad controller and two iPhone paddles
- Control a candy machine with an iOS device, a micro servo, and a WiFi connection
Table of Contents
-
Chapter 1 Getting Familiar with techBASIC and Built-in Sensors
-
Your Own Tricorder
-
A Crash Course in techBASIC
-
The Accelerometer
-
-
Chapter 2 Accessing the Other Built-in Sensors
-
The Gyroscope
-
The Magnetometer
-
Faster Sensor Response
-
Heading
-
Location
-
Your Own Tricorder
-
-
Chapter 3 Creating a Metal Detector
-
The iPhone/iPad Magnetometer
-
The Earth’s Magnetic Field
-
Using the iPhone or iPad as a Metal Detector
-
Finding Out More
-
-
Chapter 4 HiJack
-
What Is HiJack?
-
Building the Sensor
-
External Power for HiJack
-
Hello HiJack
-
When Things Go Wrong
-
A Better HiJack Program
-
For More Information
-
-
Chapter 5 Creating a Moisture Meter with HiJack
-
Adding a Moisture Meter to the Tricorder
-
Assembling the Moisture Meter
-
Calibration
-
Better Software
-
-
Chapter 6 Bluetooth Low Energy
-
What Is Bluetooth Low Energy?
-
The TI SensorTag
-
The Accelerometer
-
The Barometer
-
The Gyroscope
-
The Magnetometer
-
The Humidity Sensor (Hygrometer)
-
The Thermometer
-
Further Explorations
-
-
Chapter 7 Bluetooth Low Energy iPhone Rocket
-
A Bit of Rocket Science
-
Parts Lists
-
Why Use a SensorTag?
-
Construction
-
The Data Collection Program
-
SensorTag 8G Software
-
Flight Tips
-
The Data
-
What We Found
-
-
Chapter 8 Hacking a Radio-Controlled Truck with Bluetooth Low Energy and Arduino
-
Controlling a Truck with BLE
-
Selecting a Truck
-
Hacking the Truck
-
Controlling the Arduino Uno
-
The Software
-
Start Your Engines!
-
-
Chapter 9 Peer-to-Peer Bluetooth Low Energy
-
Bluetooth Low Energy Slave Mode
-
BLE Chat
-
-
Chapter 10 Paddles: A Bluetooth Pong Tribute
-
The Classic Game of Pong
-
The Paddles Game
-
The Paddle Software
-
The Paddles Console Software
-
-
Chapter 11 WiFi
-
Worldwide Sensors
-
WiFly
-
WiFi Arduino
-
-
Chapter 12 WiFi Servos
-
Servos: They’re Where the Action Is
-
Halloween Hijinks
-
Push and Pull with Servos
-
Pomp and Circumstance
-
-
Index
-
Colophon