Building iPhone and iPad Electronic Projects: Real-World by Mike Westerfield

By Mike Westerfield

Why easily play track or go surfing for those who can use your iPhone or iPad for a few rather enjoyable tasks, equivalent to construction a steel detector, hacking a radio keep watch over truck, or monitoring a version rocket in flight? construct those and different cool issues by utilizing iOS machine sensors and cheap comparable to Arduino and a Bluetooth Low strength (LE) Shield.

This hands-on publication exhibits you the way to put in writing easy functions with techBASIC, an Apple-approved improvement surroundings that runs on iOS units. by utilizing code and instance courses outfitted into techBASIC, you’ll methods to write apps at once in your Apple gadget and feature it have interaction with different hardware.

• construct a steel detector with the iOS magnetometer
• Use the HiJack platform to create a plant moisture sensor
• placed your iPhone on a small rocket to assemble acceleration and rotation data
• Hack a radio keep an eye on truck with Arduino and Bluetooth LE
• Create an arcade video game with an iPad controller and iPhone paddles
• keep an eye on a sweet desktop with an iOS equipment, a micro servo, and a WiFi connection

Show description

Read Online or Download Building iPhone and iPad Electronic Projects: Real-World Arduino, Sensor, and Bluetooth Low Energy Apps in techBASIC PDF

Similar electronics books

Building iPhone and iPad Electronic Projects: Real-World Arduino, Sensor, and Bluetooth Low Energy Apps in techBASIC

Why easily play song or go surfing in case you can use your iPhone or iPad for a few rather enjoyable tasks, reminiscent of construction a steel detector, hacking a radio keep an eye on truck, or monitoring a version rocket in flight? the right way to construct those and different cool issues through the use of iOS machine sensors and cheap reminiscent of Arduino and a Bluetooth Low power (LE) guard.

Signal Processing for Intelligent Sensor Systems

Integrates a large diversity of physics, algorithms, and sensing concepts for improvement of clever structures together with frequency area processing, adaptive filtering, wavenumber structures and sign processing purposes, detailing adaptive least-squared blunders modeling.

Additional info for Building iPhone and iPad Electronic Projects: Real-World Arduino, Sensor, and Bluetooth Low Energy Apps in techBASIC

Example text

Time - The time when the event occurred. SUB touchUpInside (ctrl AS Button, time AS DOUBLE) IF ctrl = quit THEN stopRecording STOP ELSE IF ctrl = record THEN IF recording THEN stopRecording ELSE startRecording END IF ELSE IF ctrl = send THEN stopRecording sendData END IF END SUB 16 | Chapter 1: Getting Familiar with techBASIC and Built-in Sensors Simply creating a subroutine with the name touchUpInside and this parameter list turns the program into an event-driven program. It will run until deliberately stopped, waiting for the user to tap on a button.

What You Will Learn This chapter shows how to access the magnetometer and gyroscope built into most iOS devices. You can use them for anything from direction finding to augmented reality. Toward the end of the chapter you’ll also learn a bit more about techBASIC, including another way to access the sensors that gives faster response times and how to use the techBASIC help system to find out more about these and other commands. The chapter closes with a quick look at two other services. While not sensors in the traditional sense, they are accessed that way.

DIM quit AS Button, record AS Button, send AS Button ! Create and initialize the global tracking variables. txt" The Gyroscope | 25 recording = 0 ! Get and set an initial time for the gyroscope. gyro t0 = r(4) WEND END IF ! Create the user interface. setUpGUI ! Creates a new button with a gradient fill. ! Parameters: ! x - Horizontal location. y - Vertical location. title - Name of the button. ! Returns: The new button. 6) newButton = b END FUNCTION ! ! ! ! 1 seconds have elapsed since the last sensor reading.

Download PDF sample

Rated 4.26 of 5 – based on 47 votes