Atjaunināt sīkdatņu piekrišanu

Building IPhone and IPad Electronic Projects: Real-World Arduino, Sensor, and Bluetooth Low Energy Apps in Techbasic [Mīkstie vāki]

  • Formāts: Paperback / softback, 320 pages
  • Izdošanas datums: 29-Oct-2013
  • Izdevniecība: O'Reilly Media
  • ISBN-10: 1449363504
  • ISBN-13: 9781449363505
  • Mīkstie vāki
  • Cena: 28,81 €*
  • * ši ir gala cena, t.i., netiek piemērotas nekādas papildus atlaides
  • Standarta cena: 33,90 €
  • Ietaupiet 15%
  • Grāmatu piegādes laiks ir 3-4 nedēļas, ja grāmata ir uz vietas izdevniecības noliktavā. Ja izdevējam nepieciešams publicēt jaunu tirāžu, grāmatas piegāde var aizkavēties.
  • Daudzums:
  • Ielikt grozā
  • Piegādes laiks - 4-6 nedēļas
  • Pievienot vēlmju sarakstam
  • Formāts: Paperback / softback, 320 pages
  • Izdošanas datums: 29-Oct-2013
  • Izdevniecība: O'Reilly Media
  • ISBN-10: 1449363504
  • ISBN-13: 9781449363505

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
Preface vii
1 Getting Familiar with techBASIC and Built-in Sensors
1(20)
Your Own Tricorder
1(1)
A Crash Course in techBASIC
2(1)
techBASIC Sampler
2(1)
Running Your First Program
3(2)
Creating a Program
5(3)
The Accelerometer
8(13)
2 Accessing the Other Built-in Sensors
21(24)
The Gyroscope
22(8)
Radians or Degrees?
30(1)
The Magnetometer
30(8)
Faster Sensor Response
38(4)
Heading
42(1)
Location
43(1)
Your Own Tricorder
44(1)
3 Creating a Metal Detector
45(10)
The iPhone/iPad Magnetometer
45(1)
The Earth's Magnetic Field
46(2)
Using the iPhone or iPad as a Metal Detector
48(2)
Converting the Magnetometer Sample into a Metal Detector
50(2)
Using the Metal Detector
52(2)
Finding Out More
54(1)
4 HiJack
55(18)
What Is HiJack?
55(2)
Building the Sensor
57(4)
External Power for HiJack
61(2)
Hello HiJack
63(2)
When Things Go Wrong
65(1)
A Better HiJack Program
65(6)
For More Information
71(2)
5 Creating a Moisture Meter with HiJack
73(20)
Adding a Moisture Meter to the Tricorder
73(1)
Assembling the Moisture Meter
74(1)
Calibration
75(1)
Collecting the Calibration Data
76(1)
Moving Datafiles to and from techBASIC
77(1)
Using the Calibration Data
78(3)
Better Software
81(8)
The Complete Moisture Meter Source
89(4)
6 Bluetooth Low Energy
93(66)
What Is Bluetooth Low Energy?
93(2)
The TI SensorTag
95(2)
Writing Bluetooth Low Energy Programs
97(15)
The Accelerometer
112(1)
What's an Accelerometer?
112(1)
Accessing the Accelerometer
113(2)
Using the Accelerometer
115(2)
The Source
117(4)
The Barometer
121(1)
Accessing the Barometer
121(5)
The Source
126(4)
The Gyroscope
130(1)
Accessing the Gyroscope
130(3)
Using the Gyroscope
133(1)
The Source
133(4)
The Magnetometer
137(1)
Accessing the Magnetometer
138(2)
Using the Magnetometer
140(1)
The Source
141(4)
The Humidity Sensor (Hygrometer)
145(1)
Accessing the Hygrometer
145(2)
The Source
147(4)
The Thermometer
151(1)
Accessing the Thermometer
151(3)
Using the Thermometer
154(1)
The Source
154(4)
Further Explorations
158(1)
7 Bluetooth Low Energy iPhone Rocket
159(40)
A Bit of Rocket Science
159(2)
Parts Lists
161(1)
ST-1
161(1)
ST-2
162(1)
Other Items for Both Rockets
163(1)
Why Use a SensorTag?
164(1)
Construction
164(1)
ST-2: The iPhone/SensorTag Rocket
164(7)
ST-1: The SensorTag Rocket
171(3)
The Data Collection Program
174(11)
SensorTag 8G Software
185(2)
Flight Tips
187(1)
Engines
187(1)
Parachutes
188(1)
Flight Conditions
188(1)
Power Up!
188(1)
The Data
189(1)
Analyzing the Data
189(2)
Rocket Data Analysis
191(2)
Velocity and Altitude
193(2)
Rotation and Pressure
195(1)
What We Found
196(1)
ST-1 Results
196(1)
ST-2 Results
197(2)
8 Hacking a Radio-Controlled Truck with Bluetooth Low Energy and Arduino
199(42)
Controlling a Truck with BLE
200(2)
Selecting a Truck
202(1)
Disassembly
202(5)
Hacking the Truck
207(1)
The H Bridge
207(2)
The TI Chip
209(2)
Wiring the Complete Circuit
211(8)
Controlling the Arduino Uno
219(1)
Installing Arduino
219(2)
Downloading Firmata
221(4)
The Software
225(1)
Pulse Width Modulation
225(2)
Back to the Software
227(12)
Start Your Engines!
239(2)
9 Peer-to-Peer Bluetooth Low Energy
241(14)
Bluetooth Low Energy Slave Mode
241(1)
BLE Chat
242(1)
Setting Up the Services
242(2)
Using the Services
244(11)
10 Paddles: A Bluetooth Pong Tribute
255(20)
The Classic Game of Pong
255(1)
The Paddles Game
256(2)
The Paddle Software
258(4)
The Paddles Console Software
262(13)
11 WiFi
275(14)
Worldwide Sensors
275(1)
HTTP, FTP, and TCP/IP
276(1)
WiFly
277(1)
The Circuit
278(1)
Establishing a Network Connection
279(2)
Communication with TCP/IP
281(1)
A Simple Terminal Program
281(2)
WiFi Arduino
283(1)
Loading Software onto the Arduino
283(2)
The Circuit
285(2)
Communication Using the Terminal Program
287(2)
12 WiFi Servos
289(16)
Servos: They're Where the Action Is
289(2)
The Pololu Serial Servo Controller
291(3)
The Circuit
294(1)
Halloween Hijinks
295(1)
The Software
295(5)
Take It for a Spin
300(1)
Push and Pull with Servos
300(3)
Pomp and Circumstance
303(2)
Index 305
Mike started programming on a PDP-8 using a teletype terminal. As the personal computer revolution got going he sold his car and rode a bike for several months to raise cash to buy an Apple II computer. He wanted to write a chess program but couldn't find a good assembler, so he took a summer off to write his own. Two years later he finished ORCA/M, which went on to become Apple Programmer's Workshop, the Apple-labeled development environment for the Apple IIGS. Born the same year as Steve Jobs and Bill Gates, Mike made the mistake of getting an education instead of getting rich. A slow learner, he graduated from the U.S. Air Force Academy in 1977 with a degree in Physics, earned an M.S. in Physics from the University of Denver, and was Working on a Ph.D. when he started making more money from his sideline software company than from the Air Force. Since then Mike has developed numerous compilers and interpreters, software for mission-critical physics packages for military satellites, plasma physics simulations for Z-pinch experiments, multimedia authoring tools for grade schoolers, disease surveillance programs credited with saving lives of hurricane Katrina refugees, advanced military simulations that protect our nation's most critical assets, and technical computing software for iOS. Mike currently runs the Byte Works, an independent software publishing and consulting firm. He is a PADI scuba instructor who lives in Albuquerque with his wife and cat, enjoying being an empty nester and spoiling his grandchildren.