By Mike Westerfield

Why easily play song or log on in case you can use your iPhone or iPad for a few particularly enjoyable initiatives, resembling construction a steel detector, hacking a radio keep watch over truck, or monitoring a version rocket in flight? find out how to construct those and different cool issues by utilizing iOS equipment sensors and cheap comparable to Arduino and a Bluetooth Low power (LE) Shield.

This hands-on publication indicates you the way to put in writing easy functions with techBASIC, an Apple-approved improvement setting that runs on iOS units. by utilizing code and instance courses outfitted into techBASIC, you’ll easy methods to write apps without delay in your Apple equipment 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
• positioned 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 online 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 or Download Building iPhone and iPad Electronic Projects: Real-World Arduino, Sensor, and Bluetooth Low Energy Apps in techBASIC PDF

Similar electronics books

Tab Electronics Guide to Understanding Electricity and Electronics

During this thorough hobbyist's consultant, electric engineer Slone offers a valid review of the fundamental theoretical recommendations essential to effectively construct, continue, or fix electronics. moreover, he addresses sensible functions equivalent to easy methods to construct a workbench, how you can solder, and the way to create a components and fabrics stock via salvaging.

Nonlinear Superconductive Electronics and Josephson Devices

The on-going advancements, and the new achievements of the superconducting electronics (especially within the box of Josephson junctions and the inherent nonlinear dynamics) encouraged us to arrange a convention the place varied teams engaged on the topic may possibly meet and speak about the newest result of their investigations.

Encyclopedia of Electronic Components Volume 2: LEDs, LCDs, Audio, Thyristors, Digital Logic, and Amplification

Need to know the right way to use an digital part? This moment publication of a three-volume set contains key info on electronics components to your projects--complete with photos, schematics, and diagrams. you are going to research what each does, the way it works, why it is worthy, and what versions exist. regardless of how a lot you recognize approximately electronics, you will find interesting info you could have by no means come upon prior to.

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

Example text

SetTitle("Stop") recording = 1 OPEN fileName$ FOR OUTPUT AS #1 END SUB ! ! ! ! Called to stop recording data, this subroutine changes the name of the recording button to Recording, clears the recording flag and closes the output file. It is safe to call this subroutine even if nothing is being recorded. setEnabled(1) END IF END SUB ! Handle a tap on one of the buttons. ! Parameters: ! ctrl - The button that was tapped. 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 The Magnetometer | 37 ELSE startRecording END IF ELSE IF ctrl = send THEN stopRecording sendData END IF END SUB Faster Sensor Response The three programs presented so far are fun, useful ways to see the raw sensor values for the accelerometer, gyroscope, and magnetometer, but they do have a drawback.

Mag ! If needed, write the value to the output file. IF recording AND (t0 <> m(4)) THEN PRINT #1, m(1); ","; m(2); ","; m(3); ","; m(4) END IF ! Update the plot. 1 THEN ! Update the arrays holding the points to plot. 1 FOR i = 1 TO 99 mx(i, 2) = mx(i + 1, 2) my(i, 2) = my(i + 1, 2) mz(i, 2) = mz(i + 1, 2) NEXT mx(100, 2) = m(1) my(100, 2) = m(2) mz(100, 2) = m(3) WEND 34 | Chapter 2: Accessing the Other Built-in Sensors ! Adjust the function range based on the maximum observed value. setView(-10, -range, 0, range, 0) !

Create the plots and arrays to hold the plot points. DIM p as Plot, px as PlotPoint, py as PlotPoint, pz as PlotPoint DIM rx(100, 2), ry(100, 2), rz(100, 2) ! Create the controls. 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: !

Download PDF sample

Download Building iPhone and iPad Electronic Projects: Real-World by Mike Westerfield PDF
Rated 4.16 of 5 – based on 46 votes