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

By Mike Westerfield

Why easily play song or go surfing if you happen to can use your iPhone or iPad for a few particularly enjoyable tasks, reminiscent of development a steel detector, hacking a radio keep an eye on truck, or monitoring a version rocket in flight? easy methods to construct those and different cool issues by utilizing iOS gadget sensors and cheap equivalent to Arduino and a Bluetooth Low power (LE) Shield.

This hands-on publication exhibits you the way to put in writing basic purposes with techBASIC, an Apple-approved improvement atmosphere that runs on iOS units. through the use of code and instance courses outfitted into techBASIC, you’ll write apps without delay in your Apple equipment and feature it engage 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 gather acceleration and rotation data
• Hack a radio keep watch over truck with Arduino and Bluetooth LE
• Create an arcade video game with an iPad controller and iPhone paddles
• regulate a sweet laptop 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

Best electronics books

Engineering Haptic Devices: A Beginner's Guide for Engineers

Tactile conception and haptics are crucial for us, as we achieve information regarding constructions and floor homes of actual gadgets by utilizing the experience of contact. Haptics additionally allows us to control the actual international. The emphasis of this e-book is wear applied sciences for artificially deceiving our haptic notion.

Electronic and Electrical Servicing, Second Edition: Consumer and Commercial Electronics

Digital and electric Servicing offers a radical grounding within the electronics and electric ideas required through provider engineers servicing domestic leisure gear corresponding to TVs, CD and DVD machines, in addition to advertisement gear together with computers. within the published booklet, this new version covers all of the center devices of the extent 2 development Award in electric and Electronics Servicing (Consumer/Commercial Electronics) from urban & Guilds (C&G 6958), plus of the choice devices.

Electronics : a systems approach, Fourth ed.

The fourth version of Electronics: A structures procedure is a phenomenal creation to this fast-moving, very important box. totally up to date, it covers the most recent alterations and advancements on the earth of electronics. It maintains to exploit Neil Storey's well-respected structures procedure, to begin with explaining the general suggestions to construct scholars' self assurance and knowing, prior to the extra precise research that follows.

Nanosensors : physical, chemical, and biological

"Because many chemical, organic, and actual sensors rely on interactions taking place on the nanoscale, the influence of nanotechnology at the sensor global is critical. Addressing study parts and demanding situations, this e-book describes nanosensor improvement from the viewpoints of fabrics, equipment constructions, and functionalities.

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

Example text

Mag t0 = m(4) WEND END IF ! Create the user interface. setUpGUI The Magnetometer | 33 ! 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. If so, a new one is recorded and displayed. Parameters: time - The time when the event occurred. SUB nullEvent (time AS DOUBLE) ! Get the new reading.

We also check to see if the program is supposed to save the acceleration data in the output file. If both conditions are met, the value from the ac‐ celerometer is written to the file. The four numbers are separated by commas, and each reading is placed on a separate line. This is the so-called comma-separated values, or CSV, file format. It’s extremely common, and a very easy format to write and read in BASIC. It’s also a format that most spreadsheets and databases can read and write, so using it makes it easy to process the accelerometer data offline.

As with the three sensors we’ve used so far, it’s just a matter of reading the value, perhaps after using headingAvailable to make sure the service exists on the device being used. There is a catch, though. The first call to heading starts the service, but it takes a while to get going. Rather than lock up the program while it waits, techBASIC returns the most recently recorded value. 5) NEXT This program reads the heading 10 times, waiting for a half second between readings. 501888 As you can see, the first reading is garbage.

Download PDF sample

Rated 4.67 of 5 – based on 45 votes