Compact FLASH III Digital Audio System
Copyright©1992-2010 by ACS, Sarasota, Florida
44
ALL RIGHTS RESERVED
Controlling Eight LEDs with a Sound Sequence
The CFSound-III can play a sequence of sounds, one for every button push, turning on a LED associated
with each sound. This requires a Contact I/O 8 module.
The LEDs, button and speakers are wired as shown. Select the series resistor for the LED to set the
current with the LED forward voltage drop and power supply:
IN
P
U
T
8
IN
P
U
T
7
IN
P
U
T
6
IN
P
U
T
5
IN
P
U
T
4
IN
P
U
T
3
IN
P
U
T
2
G
R
O
U
N
D
IN
P
U
T
1
G
R
O
U
N
D
INP1
1
2
3
4
5
6
7
8
9
10
O
U
T
4
N
.O
.
O
U
T
4
C
O
M
O
U
T
3
N
.O
.
O
U
T
3
C
O
M
O
U
T
2
N
.O
.
O
U
T
1
C
O
M
O
U
T
2
C
O
M
O
U
T
1
N
.O
.
O
U
T
4
N
.C
.
O
U
T
3
N
.C
.
OUT1
1
2
3
4
5
6
7
8
9
10
O
U
T
8
N
.O
.
O
U
T
8
C
O
M
O
U
T
7
N
.O
.
O
U
T
7
C
O
M
O
U
T
6
N
.O
.
O
U
T
5
C
O
M
O
U
T
6
C
O
M
O
U
T
5
N
.O
.
O
U
T
8
N
.C
.
O
U
T
7
N
.C
.
OUT2
1
2
3
4
5
6
7
8
9
10
G
R
O
U
N
D
1
0
V
-
1
8
V
D
C
P
T
T
C
o
n
ta
c
t N
.O
.
P
T
T
C
o
n
ta
c
t C
O
M
In
p
u
t C
o
n
ta
c
t 2
6
In
p
u
t C
o
n
ta
c
t 2
5
R
ig
h
t S
p
e
a
k
e
r
+
L
e
ft
S
p
e
a
k
e
r
-
L
e
ft
S
p
e
a
k
e
r
+
R
ig
h
t S
p
e
a
k
e
r
-
1
2
3
4
5
6
7
8
9
10
Power
Supply
+
-
MAIN
To play a sequence of sounds with associated LED illumination, one every time that the button is pushed,
name the sounds 01CSN.WAV, 02CSN.WAV, … , 08CSN.WAV.
Add the following text file CFSOUND.INI onto the CF card along with the sound files:
[Contacts]
SequenceContactNumber=25
FirstSoundNumber=1
LastSoundNumber=8
Be sure to leave a blank line at the end of the file so that the CFSound can „see‟ the last line of text.
Now, every actuation of the button will play the next sound in the sequence, without being interrupted,
and the associated LED illuminates while the sound is playing.
To make the CFSound play the entire sequence of sounds when the button is pushed, add the additional
entry to the CFSOUND.INI text file in the
[Contacts]
section:
AutoplayEntireSequence=TRUE
See the
Sequential Sound Playout
section above for more information.