Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Building iPhone and iPad Electronic Projects
Preface
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
Credits
1. Getting Familiar with techBASIC and Built-in Sensors
Your Own Tricorder
A Crash Course in techBASIC
techBASIC Sampler
Running Your First Program
Creating a Program
The Accelerometer
2. Accessing the Other Built-in Sensors
The Gyroscope
Radians or Degrees?
The Magnetometer
Faster Sensor Response
Heading
Location
Your Own Tricorder
3. Creating a Metal Detector
The iPhone/iPad Magnetometer
The Earth’s Magnetic Field
Using the iPhone or iPad as a Metal Detector
Converting the Magnetometer Sample into a Metal Detector
Using the Metal Detector
Finding Out More
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
5. Creating a Moisture Meter with HiJack
Adding a Moisture Meter to the Tricorder
Assembling the Moisture Meter
Calibration
Collecting the Calibration Data
Moving Datafiles to and from techBASIC
Using the Calibration Data
Better Software
The Complete Moisture Meter Source
6. Bluetooth Low Energy
What Is Bluetooth Low Energy?
The TI SensorTag
Writing Bluetooth Low Energy Programs
The Accelerometer
What’s an Accelerometer?
Accessing the Accelerometer
Using the Accelerometer
The Source
The Barometer
Accessing the Barometer
The Source
The Gyroscope
Accessing the Gyroscope
Using the Gyroscope
The Source
The Magnetometer
Accessing the Magnetometer
Using the Magnetometer
The Source
The Humidity Sensor (Hygrometer)
Accessing the Hygrometer
The Source
The Thermometer
Accessing the Thermometer
Using the Thermometer
The Source
Further Explorations
7. Bluetooth Low Energy iPhone Rocket
A Bit of Rocket Science
Parts Lists
ST-1
ST-2
Other Items for Both Rockets
Why Use a SensorTag?
Construction
ST-2: The iPhone/SensorTag Rocket
ST-1: The SensorTag Rocket
The Data Collection Program
SensorTag 8G Software
Flight Tips
Engines
Parachutes
Flight Conditions
Power Up!
The Data
Analyzing the Data
Rocket Data Analysis
Velocity and Altitude
Rotation and Pressure
What We Found
ST-1 Results
ST-2 Results
8. Hacking a Radio-Controlled Truck with Bluetooth Low Energy and Arduino
Controlling a Truck with BLE
Selecting a Truck
Disassembly
Hacking the Truck
The H Bridge
The TI Chip
Wiring the Complete Circuit
Controlling the Arduino Uno
Installing Arduino
Downloading Firmata
Installing Firmata
The Software
Pulse Width Modulation
State engines
Back to the Software
Start Your Engines!
9. Peer-to-Peer Bluetooth Low Energy
Bluetooth Low Energy Slave Mode
BLE Chat
Setting Up the Services
Using the Services
10. Paddles: A Bluetooth Pong Tribute
The Classic Game of Pong
The Paddles Game
The Paddle Software
The Paddles Console Software
11. WiFi
Worldwide Sensors
HTTP, FTP, and TCP/IP
WiFly
The Circuit
Establishing a Network Connection
Communication with TCP/IP
A Simple Terminal Program
WiFi Arduino
Loading Software onto the Arduino
The Circuit
Communication Using the Terminal Program
12. WiFi Servos
Servos: They’re Where the Action Is
The Pololu Serial Servo Controller
The Circuit
Halloween Hijinks
The Software
Take It for a Spin
Push and Pull with Servos
Pomp and Circumstance
Index
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →