Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 49 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
49
Dung lượng
6,06 MB
Nội dung
.Figure 12-137 Hacking into the R/C Controller hook-up wire If you don’t have an R/C car, you might be tempted to use LEDs for all four pins just to try this hack out. If you do that, be sure to put a resistor (220 ohms or more should be ne) in series between the LED and either the GND or the pin you are using. You do not need a resistor for pin 13 because one is built in to the Arduino board. Download at Boykma.Com HACK # 12.16 chapter 12 .Figure 12-138 .Figure 12-139 .Figure 12-140 Download at Boykma.Com • • • • .Figure12-141 • • • • .Figure12-142 Download at Boykma.Com HACK # 12.17 .Figure 12-143 12.17:HACK Download at Boykma.Com [Hack #12.14] Buy a Universal Charger with a Dock Connector Passthrough .Figure 12-144 Buy an Adapter for Your Existing Charger [Hack #12.07] .Figure 12-145 Build Your Own Adapter [Hack #12.14] Download at Boykma.Com HACK # 12.17 chapter 12 .Figure 12-146 .Figure 12-147 Download at Boykma.Com Make a 3G Adapter Cable to Charge via FireWire Voltage regulator chip very [Hack #12.14] .Figure 12-148 GND 12V PodBreakout dock connector breakout board 7805 voltage regulator with heatsink .75 A resistor network Download at Boykma.Com HACK # 12.17 • • • • • • • • • More pinout information can be found at: d http://pinouts.ru/Devices/ipod_pinout.shtml and [Hack#12.14] Download at Boykma.Com If necessary, add the USB voltage divider described earlier in this hack to the USB output of d the charger. You may need to remove the USB connector to make room for the new wires. 12.18:Hack Connect Your iPhone to a Serial Port Using a Dock Connector • Download at Boykma.Com HACK # 12.18 chapter 12 • • [Hack#12.09] [Hack#12.14] [Hack#12.14] Table12-2 PinNumber Color Purpose .Figure12-149 Download at Boykma.Com [...]... driver for the FTDI cable from www.ftdichip.com/FTDrivers.htm X4-1 and X4-2 on the right side of the circuit are for the next hack [Hack #12.22] The same basic circuit is used for both hacks, just with different firmware The top of the schematic shows the wiring that connects to the headphone jack to plug into the iPhone The bottom left of the schematic shows the header pins that connect to the UART... of communicating with an iPhone or second-generation iPod touch And for another, the source code for the hardware used—both to program the chip, and to run on the iPhone are publicly available You can download schematics, code, plans, and a parts list from http://perceptdev.com/labs/iphonehacks Furthermore, you can purchase new and used infrared keyboards online for less than $10 USD Thus, with everything... Figure 12-176 The iPhone FSK adapter schematic To connect the Targus keyboard, you need to snip the red and white wires that lead to the IR transmitter (Figure 12-177) Figure 12-177 Finding the IR red and white wires Wires 444 iphone hacks Download at Boykma.Com HACK # 12.22 Then clip these two wires The white wire from the Targus IR keyboard (not shown) clips to the IRDA_IN pin on the circuit The red wire... iPhone or iPod touch with the Dock Connector Make an iPhone- and iPod- compatible docking station Ever since the second generation of iPods, there has been the option to control the iPod through an external interface so that you could remotely skip songs and use other functions This feature still exists in today’s iPhone In order to control your iPhone externally, we’re going to use the serial port pins... phone lines, and they have far less fidelity than the iPhone s sound chip And Apple’s SDK works fine with audio input and output no jailbreaking required! dd You can find the source code for the application as well as the schematic at http://perceptdev.com/labs/iphonehacks For this demonstration hack, we’ve wired up a simple circuit that takes infrared pulses and converts them to a sound wave Then we’ve... hack Pins 2 and 3 of the IR receiver are connected to 5V and ground, respectively A capacitor (I used 10uF) is put across ground and 5V to stabilize the input from the batteries When you point a remote at the IR receiver and press its buttons, this creates a signal in the 5V range on pin 1 of the IR receiver, which is much too hot for the iPhone microphone circuit So we pass pin 1 (row 2) of the IR receiver... data into and out of the iPhone the dock connector, Bluetooth, the camera and screen, and Wi-Fi—none of these are well suited for simple, low-speed bidirectional communication with inexpensive components Plus, several of these are simply inaccessible from Apple’s SDK The audio port, however, is accessible from the SDK—both playing audio and recording it and thus does not require a jailbreak The demo... with the FSK method presented here 440 iphone hacks Download at Boykma.Com HACK # 12.21 As a test, you can play these audio files out of your computer, and pipe the audio into your iPhone using the microphone splitter from [Hack #12.14] One of the audio files has a canned message: “If you can read this, then your system is working!” Like a player piano, you can even see the speed and cadence of the. .. wires and use them instead These are just 22 gauge wires, precut and prestripped Now you need to connect everything on the breadboard, as shown in Figure 12-151 Connect the serial ground to the iPhone breakout ground (pins 1 and 11) Leave pin 2 separate, as that is audio ground and does not need to match the other grounds You will obtain better audio quality this way chapter 12 - Remote Control Your iPhone. .. (row 2) of the IR receiver through a 220K resistor (rows 2 and 8), to the 1K resistor (rows 8 and ground), which then goes to ground Where these two resistors meet (shown as row 8 in Figure 12-156), they join a 47uF capacitor The other side of the 47uF capacitor provides the lowered signal that can be safely put into the microphone port of the iPhone chapter 12 - Read Signals from an Infrared Remote . fry. Because the iPhone exposes TTL serial, you could bypass the TTL-to-RS-232 or TTL-to-USB adapter entirely if you connect the iPhone directly to your microcontroller. However, the iPhone uses. more should be ne) in series between the LED and either the GND or the pin you are using. You do not need a resistor for pin 13 because one is built in to the Arduino board. Download. If necessary, add the USB voltage divider described earlier in this hack to the USB output of d the charger. You may need to remove the USB connector to make room for the new wires.