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
- 1. Getting Familiar with techBASIC and Built-in Sensors
- 2. Accessing the Other Built-in Sensors
- 3. Creating a Metal Detector
- 4. HiJack
- 5. Creating a Moisture Meter with HiJack
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
7. Bluetooth Low Energy iPhone Rocket
- A Bit of Rocket Science
- Parts Lists
- Why Use a SensorTag?
- The Data Collection Program
- SensorTag 8G Software
- Flight Tips
- The Data
- What We Found
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!
- 9. Peer-to-Peer Bluetooth Low Energy
- 10. Paddles: A Bluetooth Pong Tribute
- 11. WiFi
- 12. WiFi Servos
- Title: Building iPhone and iPad Electronic Projects
- Release date: September 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449363505