/elec/audio-switcher

To get this branch, use:
bzr branch http://bzr.ed.am/elec/audio-switcher

« back to all changes in this revision

Viewing changes to README

  • Committer: Tim Marston
  • Date: 2012-11-22 18:27:56 UTC
  • Revision ID: tim@ed.am-20121122182756-htn5j0b912tyx4w2
initial commit

Show diffs side-by-side

added added

removed removed

1
 
ABOUT
2
 
 
3
 
This is a project to provide automated control over a relay that switches
4
 
audio.
5
 
 
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
9
 
heaphones.
10
 
 
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.
13
 
 
14
 
 
15
 
LUFA SETUP
16
 
 
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
20
 
want to).
21
 
 
22
 
  $ wget http://lufa-lib.googlecode.com/files/LUFA-120730.zip
23
 
  $ unzip LUFA-120730.zip
24
 
  $ ln -s LUFA-120730 LUFA
25
 
 
26
 
 
27
 
BUILDING THE PROJECT
28
 
 
29
 
Having unpacked LUFA, build the audio-switcher software.
30
 
 
31
 
  $ cd src
32
 
  $ make
33
 
 
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:
37
 
 
38
 
  xxxxxxxxxxxxxxx
39
 
 
40
 
Now upload the audio switcher software.
41
 
 
42
 
  $ make dfu
43
 
 
44
 
Finally, reset the MinimusUSB.  You can confirm that the software is working
45
 
with `lsusb`, which should show the following device present:
46
 
 
47
 
  xxxxxxxxxxxxxxxx
48
 
 
49
 
 
50
 
REFERENCE
51
 
 
52
 
You can find out more about the excellent LUFA project here:
53
 
 
54
 
  http://www.fourwalledcubicle.com/LUFA.php