/elec/audio-switcher

To get this branch, use:
bzr branch http://bzr.ed.am/elec/audio-switcher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ABOUT

This is a project to provide automated control over a relay that switches
audio.

Scematics for the audio switching unit can be found in the project directory.
In summary, a relay is controlled to switch stereo input audio between two
outputs.  Also, one of the outputs can be overridden by plugging in some
heaphones.

The software below is for a MinimusUSB and will turn it in to a USB serisl
device with a unique vendor and product id.  It is based on LUFA.


LUFA SETUP

Download the LUFA project and unpack it in to the root directory of this
project.  Then, either rename the LUFA directory to "LUFA", or just symlink to
it (which will allow you to have several versions of the library, should you
want to).

  $ wget http://lufa-lib.googlecode.com/files/LUFA-120730.zip
  $ unzip LUFA-120730.zip
  $ ln -s LUFA-120730 LUFA


BUILDING THE PROJECT

Having unpacked LUFA, build the audio-switcher software.

  $ cd src
  $ make

Then, plug in your MinimusUSB, put it in to DFU upload mode (whilst holding
down button B, press reset).  You can confirm it is ready with `lsusb`, which
should list the following device present:

  xxxxxxxxxxxxxxx

Now upload the audio switcher software.

  $ make dfu

Finally, reset the MinimusUSB.  You can confirm that the software is working
with `lsusb`, which should show the following device present:

  xxxxxxxxxxxxxxxx


REFERENCE

You can find out more about the excellent LUFA project here:

  http://www.fourwalledcubicle.com/LUFA.php