Attention!
The product has been discontinued. Check others products incategory .
Description
If you want to turn your iPhone into non-typical device, such as a metal detector or a barometer, this book is for you.
The book will teach you how to write simple applications with techBASIC, an Apple-approved development environment. You will learn how to create a hygrometer or accelerometer, using sensors built into iOS andArduino devices. Using Bluetooth Low Energy technology and microcontroller, you can remotely control the car. Explore these and other projects and use your iPhone in an original way.
Thanks to this book:
you will learn the language of techBasic
you can access the sensors built into your device
you will built gyroscope, barometer or hygrometer
you will fullyuse the capabilities of your iPhone and iPad
The contents
Preface (7)
1. Getting familiar with techBASIC and built-in sensors (13)
Your own tricorder (13)
A crash course in techBASIC (14)
techBASIC Sampler (15)
Running your first program (15)
Creating a program (17)
The accelerometer (20)
2. Access the other built-in sensors (33)
The Gyroscope (34)
The Magnetometer (41)
Faster sensor response (47)
Heading (51)
Location (52)
Your own tricorder (53)
3. Creating a metal detector (55)
The iPhone/iPad magnetometer (55)
The Earth's magnetic field (56)
Using the iPhone or iPad as a metal detector (58)
Converting the Magnetometer Sample into a metal detector (60)
Using the metal detector (61)
Finding out more (63)
4. HiJack (65)
What is HiJack? (65)
Building the Sensor (67)
External power for HiJack (71)
Hello HiJack (73)
When things go wrong (75)
A better HiJack program (75)
For more information (80)
5. Creating a moisture meter with HiJack (81)
Adding a moisture meter to the tricorder (81)
Assembling the moisture meter (82)
Calibration (83)
Collecting the calibration data (83)
Moving Datafiles to and from techBASIC (85)
Using the calibration data (86)
Better software (89)
The complete moisture meter source(96)
6. Bluetooth Low Energy (99)
What Is Bluetooth Low Energy? (99)
The TI SensorTag (101)
Writing Bluetooth Low Energy Programs (103)
The Accelerometer (115)
Whats an Accelerometer? (115)
Accessing the Accelerometer (116)
Using the Accelerometer (118)
The source (120)
The Barometer (123)
Accessing the Barometer (124)
The source (128)
The Gyroscope (132)
Accessing the Gyroscope (132)
Using the Gyroscope (134)
The source (135)
The Magnetometer (138)
Accessing the magnetometer (139)
Using the magnetometer (141)
The source (141)
The Humidity Sensor (Hygrometer) (144)
Accessing the Hygrometer (145)
The source(147)
The Thermometer (150)
Accessing the Thermometer (150)
Using the Thermometer (152)
The source (153)
Further Explorations (156)
7.Bluetooth Low Energy iPhone Rocket (157)
ABit of Rocket Science (158)
Parts Lists (159)
ST-1 (159)
ST-2 (160)
Other Items for Both Rockets (161)
Whyuse a SensorTag? (161)
Construction (162)
ST-2: the iPhone/SensorTag Rocket (163)
ST-1: The SensorTag Rocket (168)
The Data Collection Program (169)
SensorTag 8G Software (180)
Flight Tips (182)
Engines (182)
Parachutes (182)
Flight Conditions (182)
Power Up! (183)
The Data (183)
Analyzing the Data (183)
Rocket Data Analysis (185)
Velocity and Altitude (186)
Rotation and pressure (189)
What We Found (189)
ST-1 Results (189)
ST-2 Results (191)
8. Hacking a Radio-Controlled Truck with Bluetooth Low Energy and Arduino (193)
Controlling a Truck with BLE (194)
Selecting a Truck (196)
Hacking the Truck (200)
The H Bridge (201)
The TI Chip (202)
Wiring the complete circuit (204)
Controlling the Arduino Uno (211)
Installing Arduino (211)
Downloading Firmata (213)
The Software (216)
Pulse-width modulation (216)
Back to the software (218)
Start your engines! (228)
9.Peer-to-Peer Bluetooth Low Energy (231)
Bluetooth Low Energy Slave Mode (231)
BLE Chat (232)
Setting Up the Services (232)
Using the Services (234)
10. Paddles: A Bluetooth Pong Tribute (245)
The classic game of Pong (245)
The Paddles Game (246)
The Paddle Software (247)
The Paddles Console Software (251)
11. Wi-Fi (263)
Worldwide Sensors (263)
HTTP, FTP and TCP/IP (264)
WiFly (265)
The Circuit (266)
Establishing a Network Connection (267)
Communication with TCP/IP (268)
A simple terminal program (269)
Wi-Fi Arduino (271)
Loading Software onto the Arduino (271)
The Circuit (273)
Communication using the terminal program (274)
12. Wi-Fi Servos (275)
Servos: They're Where the Action Is (275)
The Pololu Serial Servo Controller (276)
The circuit (279)
Halloween Hijinks (281)
The Software (281)
Take It for a Spin (285)
Push and Pull with Servos (285)
Conclusion (288)
Index (289)