http://nikosapi.org/w/index.php?title=MazdaSpoof_-_A_Tape_Deck_Emulator&feed=atom&action=historyMazdaSpoof - A Tape Deck Emulator - Revision history2024-03-29T15:31:24ZRevision history for this page on the wikiMediaWiki 1.35.0http://nikosapi.org/w/index.php?title=MazdaSpoof_-_A_Tape_Deck_Emulator&diff=71&oldid=prevNikosapi: 1 revision2013-09-14T02:16:28Z<p>1 revision</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en-CA">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:16, 14 September 2013</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en-CA"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Nikosapihttp://nikosapi.org/w/index.php?title=MazdaSpoof_-_A_Tape_Deck_Emulator&diff=70&oldid=prevNikosapi at 18:33, 18 August 20102010-08-18T18:33:41Z<p></p>
<p><b>New page</b></p><div>In order to use the tape deck audio input a device is needed which can pretend to be the tape deck by correctly answering the base unit commands. Furthermore, it is also possible to react to the base unit commands to control an external device using the radio's controls.<br />
<br />
MazdaSpoof attempts to do this. In it's most basic form it simply pretends to be a tape deck which allows use of the tape deck audio input. It also fakes responses for all the available buttons on the head unit. This allows us to do fancy things like basic iPod integration.<br />
<br />
<br />
==Software==<br />
The software is written in C for the ATtiny45, it can be ported to other AVRs without too much trouble. The code is licensed under GPL (version 3), so have fun with it!<br />
<br />
Latest Code (version 1.0):<br />
* Archive of source code and schematics: [http://nikosapi.org/hardware/mazda-radio/mazdaspoof-1.0.tar.bz2 mazdaspoof-1.0.tar.bz2]<br />
* Binary image in Intel Hex format: [http://nikosapi.org/hardware/mazda-radio/mazdaspoof-1.0/src/spoof.hex spoof.hex]<br />
* Browse the source: [http://nikosapi.org/hardware/mazda-radio/mazdaspoof/src/ ./mazdaspoof/src/]<br />
<br />
==Circuitry==<br />
===Tape Deck Emulator===<br />
[[File:Mazdaspoof.png]]<br />
<br />
This diagram includes extra circuitry for iPod integration, if you don't need iPod integration you can do the following:<br />
* Connect pin 7 (PB2) of the ATtiny45 to ground (omit R2 and R3)<br />
* Leave pin 6 (PB1) of the ATtiny45 floating (omit R4 and R5)<br />
* Connect the input of regulator (78L05) to ACC (switched 12V) instead of B+ (constant 12V)<br />
* Use 10K input resistors for the left/right audio inputs<br />
<br />
<br />
===iPod Dock Connector Connections===<br />
[[File:Mazda-ipod-dock.png]]<br />
<br />
<br />
===Switched 5V Power Supply===<br />
To charge an iPod you'll need a suitable power supply, the 78L05 used in the [[#Tape Deck Emulator|Tape Deck Emulator]] can't supply enough current. Much simpler power supplies can be built (think relays) but I went with this because it'll fit nicely in the void under the head unit.<br />
[[File:Mazda-Ipod-ps.png]]<br />
<br />
Notes:<br />
*'''Important:''' When dropping 7-9V at 500mA across a 7805 it's will get '''very''' hot. Use a big heat-sink (at least 2x2cm of metal) to prevent overheating.<br />
*The 2SA715 might be hard to find, but any large PNP transistor should work (like the TIP30C).<br />
<br />
<br />
==Built Circuit Pictures==<br />
The [[#Tape Deck Emulator|tape deck emulator]]:<br />
<br />
[[File:Mazda-spoof-board.jpg]]<br />
<br />
<br />
The [[#Switched 5V Power Supply|switched iPod power supply]]:<br />
<br />
[[File:Mazdaspoof-ipod-ps.jpg]]<br />
<br />
<br />
The two boards installed in the radio:<br />
<br />
[[File:Mazdaspoof-installed.jpg]]<br />
<br />
{{MazdaRadioSeeAlso}}</div>Nikosapi