3
This is a project to provide automated control over a relay that switches
6
Scematics for the audio switching unit can be found in the project directory.
7
In summary, a relay is controlled to switch stereo input audio between two
8
outputs. Also, one of the outputs can be overridden by plugging in some
11
The software below is for a MinimusUSB and will turn it in to a USB serisl
12
device with a unique vendor and product id. It is based on LUFA.
17
Download the LUFA project and unpack it in to the root directory of this
18
project. Then, either rename the LUFA directory to "LUFA", or just symlink to
19
it (which will allow you to have several versions of the library, should you
22
$ wget http://lufa-lib.googlecode.com/files/LUFA-120730.zip
23
$ unzip LUFA-120730.zip
24
$ ln -s LUFA-120730 LUFA
29
Having unpacked LUFA, build the audio-switcher software.
34
Then, plug in your MinimusUSB, put it in to DFU upload mode (whilst holding
35
down button B, press reset). You can confirm it is ready with `lsusb`, which
36
should list the following device present:
40
Now upload the audio switcher software.
44
Finally, reset the MinimusUSB. You can confirm that the software is working
45
with `lsusb`, which should show the following device present:
52
You can find out more about the excellent LUFA project here:
54
http://www.fourwalledcubicle.com/LUFA.php