Anda di halaman 1dari 5

GENERALINTEREST

8-Channel Disco
Light Controller
up to 500 watts per channel
Design by Tom Varley

The unit is designed as a stand alone disco lighting controller but can be
used for driving eight sets of Christmas tree lights, shop display lights etc.
It is sound activated and self-running. The effects are blackout, flood, VU
meter, streak and pattern sequence. The only controls needed are three
pushbuttons. It’s based around the popular 87C750 OTP device from
Philips and was designed with a DJ or small band with a need to drive
eight 500-watt PAR-56 lighting cans with a minimum of fuss.

Main features
– Effects: Flood, Blackout, Pattern
Sequence, Beat Detect, VU
Meter, Fast Chase on Beat
Detect
– Microprocessor controlled
– Beat detector with built-in
microphone and adjustable sensi-
tivity
– Controls 8 stage lights of up to
500 watts each
– Electrical isolation between lamp
drivers and microcontroller cir-
cuit
– Single-board construction
– Three-button control

This project should satisfy, at least for a while, atively expensive, hence our hope- boards and software supplied
those of you who have written to us clamour- fully successful go at publishing a through our Readers Services, the
ing for disco light effects units. Apparently DIY unit. Don’t be put off by ‘hope- present project has been thoroughly
commercial units with serious specifications fully’, it’s false modesty. As with all tested by our in-house design staff,
are not only few and far between but also rel- projects supported by printed circuit in close co-operation with the author,

18 Elektor Electronics 4/2003


GENERALINTEREST
230V

2 K10
R7
IC5 R15
1 MOC3042
IC3.A 560 Ω 560 Ω
3 1 6 K2
TRI1

K1
D1 D2 IC13
ZC
7805 +5V
9V 2 4 R16 LOAD 8
100mA
560 Ω
D4 D3 13 IC6
14 R8 R17
MOC3042
C1 C2 C3 IC3.D 560 Ω 560 Ω K3
12 1 6
4x
1N4001 1000µ 100n 100µ TRI2
25V 16V

ZC

2 4 R18 LOAD 7
560 Ω
9 IC7
R9 R19
8 MOC3042
IC3.C 560 Ω 560 Ω K4
10 1 6
R1 R5
C7 C5 TRI3
2k2

10k

100n 10µ
C6 ZC
16V

R3 100n 2 4 LOAD 6
MIC1 R20
5V
10M 560 Ω
24
6 IC8
0V3 IC1 0V3
7 R10 R21
8 MOC3042
C4 R2 5 T1 P0.0 IC3.B 560 Ω 560 Ω K5
2 7 7 5 1 6
1k R4 P0.1 20
2V4

6 6 P1.7 TRI4
100n 10k P0.2 IC2 19
3 P1.6
8
9 18
4 RESET P1.5
ZC
P1 0V3 1 BC547 17
C8 21 P1.4
10k CA3140 P3.7 16
22 P1.3 2 4 R22 LOAD 5
D5 P3.6 15
10µ 16V 23
87C750 P1.2 560 Ω
P3.5 14
1 87C751 P1.1 2
P3.4 13 R11
IC9
BAT85 R23
2 P1.0 1 MOC3042
P3.3 IC4.A 560 Ω 560 Ω
3 3 1 6 K6
P3.2
4 TRI5
P3.1
5
P3.0
ZC
X1 X2
S3 S2 S1 R6 12 11 10
X1 2 4 R24 LOAD 4
8k2

560 Ω
13 IC10
C12 C11 14 R12 R25
MOC3042
IC4.D 560 Ω 560 Ω K7
12 1 6
22p 4MHz 22p
TRI6

S1 = FLOOD CONTROL ZC
S2 = PROGRAM CONTROL
S3 = STROBE VU 2 4 R26 LOAD 3
560 Ω
9 IC11
8 R13 R27
MOC3042
IC4.C 560 Ω 560 Ω
+5V 10 1 6 K8

MIC1 TRI7

4 C10 4 C9
IC3 = LM2902 ZC
IC3 IC4
100n 100n
IC4 = LM2902
11 11 2 4 R28 LOAD 2
560 Ω
6 IC12
7 R14 R29
MOC3042
IC4.B 560 Ω 560 Ω
5 1 6 K9
TRI1 ... TRI8 = BTA08-600C
TRI8

ZC

2 4 R30 LOAD 1
560 Ω
010131 - 11

Figure 1. Circuit diagram of the 8-channel disco lights controller.

Tom Varley, who has live-tested the intentional because in reality these trol switches S1, S2 and S3, as well as the
circuit with a performing band. sub-circuits are contained on a sin- output of comparator IC1.
gle, single-sided printed circuit Since the circuit is required to respond to
board. acoustic stimuli (pounding bass speakers,
Circuit description The heart of the design is a etc.) a preamplifier is required to tell the
The schematic shown in Figure 1 microcontroller type 87C750 or microcontroller whenever such a signal is
combines the digital and analogue 87C751, which has been pro- present. For this purpose a standard minia-
sections in a single diagram. This is grammed to look at the state of con- ture electret microphone capsule with a DC

4/2003 Elektor Electronics 19


GENERALINTEREST
impedance of 2 kΩ is used. The microphone
sensitivity is adjusted using preset P1 whose Initialise ports
for
DC path also provides the capsule bias volt- inputs & outputs
age. The gain of the preamp can be a few
thousand times because neither distortion
nor high-frequency response are an issue
here. Because the opamp will only amplify Test lamps
&
alternating signals, its dc gain is unity (1?). go to standby
Consequently the opamp inputs, and the out-
put, are at a dc level equal to the forward
drop of Schottky diode D5, or about 0.3 V.
Using a ‘normal’ silicon diode in this position Look at
would produce a level of about 0.6 V which switches
is enough to make T1 conduct all the time,
and that is undesirable. When no sound is
A = Floodlight < 1/2 s
detected, the collector of T1 should be at B = Pattern run < 1/2 s
about +5 V. Summarizing, an acoustic signal A B C
D E F C = VU mode < 1/2 s
of sufficient level picked up by the micro- D = Blackout < 1/2 s
phone is turned into a square wave with a Pattern selection via E = Pattern + beat detect < 1/2 s
switches
logic swing that can be detected and
010131- 12
processed by the microcontroller, using its
port line P0.0.
Almost any type of pushbutton switch can Figure 2. Flowchart of the pushbutton reading routine.
be used as there is a comprehensive de-
bounce algorithm as part of the software run-
ning inside the micro. using a quartz crystal, X1, and the assembler and is about 150 lines of
Ports lines P1.0 through P1.7 of the micro usual pair of small ceramic capaci- code, the rest of the program mem-
drive opamp buffers type LM2902 (IC3-IC4). tors, C11-C12. C5 and R6 are the ory area (1 K for the 87C750) is used
Each of the buffered opamp outputs in turn boot-up components that hold the as a lookup table which simply
drives an LED inside an opto triac driver (IC5- RESET pin high for a minimum of determines which lamps are turned
IC12). The micro needs buffering to reduce two machine cycles when power is on. After the board is powered up
load constraints on the port lines. The opto- applied to the board. This is the rec- the micro is initialised so that port 1
triac drivers are a simple method of providing ommended cold start for 8051 archi- is briefly strobed, driving all the
zero crossing (ZC) to reduce switching noise tecture devices. lights on in sequence, to give visual
while providing a few kV of electrical isola- indication of power up. After the
tion between the ‘hot’ lamp circuits and the strobe is run, the device puts itself
delicate electronics. The triacs Tri1-Tri8 may Software and operation into a loop and starts to look at the
be wired via PCB terminal blocks to two The program inside the 87C750 (or switches. Each switch has two func-
Bulgin sockets or eight individual mains sock- ‘751) black box was written as tions. The first function is achieved
ets for connection of the lights or light units.
More about this further on.
The author experimented with different COMPONENTS LIST
values for biasing the triac driver. In practice,
560 Ω works fine and being the same value Resistors: IC1 = CA3140, CA3130
as the LED bias resistor reduces the number R1 = 2kΩ2 IC2 = 87C750 or 87C751,
of resistor values. The MOC3042 may be R2 = 1kΩ programmed, order code 010131-
replaced by its slightly more sensitive sibling R3 = 10MΩ 41
the MOC3043. The MOC3041 is not suitable R4,R5 = 10kΩ IC3,IC4 = LM2902
R6 = 8kΩ2 IC5-IC12 = MOC3042
here. The triacs, too, are uncritical, and virtu-
R7-R30 = 560Ω IC13 = 7805
ally anything may be used that’s capable of
P1 = 10kΩ preset T1 = BC547
switching 400 V at about 4 A.
The standard power supply arrangement Capacitors:
of a ready-made mains adapter (9 VAC or 9 Miscellaneous:
C1 = 1000µF 25V radial
K1-K10 = 2-way PCB terminal block,
VDC, 300 mA) or a dedicated transformer, a C2,C4,C10 = 100nF
lead pitch 7.5mm
bridge rectifier (D1-D4) and a fixed voltage C6,C7,C9 = 100nF, 7.5mm lead pitch
C3 = 100µF 16V radial MIC1 = electret capsule
regulator (IC13) is a good low-pass filter for
C5, C8 = 10µF 16V radial S1,S2,S3 = pushbutton, 1 make
mains-borne noise and transients. The sup-
C11,C12 = 22pF ceramic contact
ply should always include the 0.1 µF decou- TRI1-TRI8 = BTA08-600C (BCR6 AM
pling capacitor. Thanks to the bridge rectifier, 8)
Semiconductors:
the supply works irrespective of the output D1-D4 = 1N4001 X1 = 4MHz quartz crystal
polarity of the mains adapter. D5 = BAT43 or BAT85 (Schottky) PCB, order code 010131-1
The microcontroller is running at 4 MHz

20 Elektor Electronics 4/2003


GENERALINTEREST
I K2 K3 K4 K5 K6 K7 K8 K9

H2
H3

K10
ROTKELE )C(
1-131010

TRI1 R16 TRI2 TRI3 TRI4 TRI5 TRI6 TRI7 TRI8

R18

R20

R22

R24

R26

R28

R30
R15 R17 R19 R21 R23 R25 R27 R29

+ IC5 IC6 IC7 IC8 IC9 IC10 IC11 IC12


010131-1

R8 R9 C6 R12 R13
P1

R11
R10
R7

R14

D2
D3
IC3 IC2 IC4

D1

D4
C10

C12 C9
S1 C3 C2
K1
C4 IC1 C1
R1
R2
R3

R5
R4

S2
D5

R6
C5

H4
H1

C8 S3 IC13
C7 T1 X1 C11
(C) ELEKTOR
010131-1

Figure 3. Copper track layout and component overlay of the single-sided PCB designed for the unit (board available ready-made).

Figure 4. This is what our finished an tested board looks like. Note that the three pushbuttons (not shown) are connected via pin strips.

4/2003 Elektor Electronics 21


GENERALINTEREST
by depressing the switch for less than half a each stage light (or cluster of lights) smaller than 6 mm so this equip-
second, these functions are A, B & C. The sec- to be powered via its own cable. ment meets Class 1 only.
ond layer of functions are reached by depress- Some of you may want to employ
ing the relevant switch for more than half a two ‘Bulgin’ 8-way sockets, one for With no lights connected and the
second. It should be noted that if you keep each group of four lamps. The easi- microcontroller out of its socket,
the switch depressed it will loop around the est way of wiring to the IEC socket power up via the mains adapter.
top and bottom functions of the switch. The and the Bulgin connectors is to pre- Check for 5 volts at the regulator
chart in Figure 2 indicates which function wire tails from the PCB pins and output, if it’s not there check the
can be selected. Once selected, the controller thread these tails through the rele- diodes D1-D4 are the right way
will operate in this mode until a new function vant holes in your case. Once the round and are being fed with the
is selected. PCB is secured inside the case you proper AC or DC voltage.
Because the author receives royalty pay- can then solder the sockets. If you Once you have 5 volts, you can
ments for every ready-programmed micro- are using a steel case make sure that set up the microphone sensitivity.
controller sold, the assembly code listing of all parts of the case are earthed to The room needs to be free of exces-
the program burned into IC2 will not be made the IEC socket earth pin. sive background noise. Using a small
available as usual through our website, or on If used, the Bulgin connectors screwdriver, rotate P1 fully counter-
a floppy disk. Ready-programmed ICs for this should be wired as follows: clockwise. Connect a scope probe or
project are however available from Readers the DVM meter leads to IC1 pin 6.
Services, the order code is 010131-41. Pin 1 Protective Earth Slowly rotate the wiper and stop
Pin 2 Light 4 (or 8) when pin 6 goes Low. Rotate the
Pin 3 Light 3 (or 7) wiper counter-clockwise again and
Assembly Pin 4 Light 2 (or 6) stop when the output swings High.
Pin 5 Light 1 (or 5)
The electronics fits neatly on a single-sided Now clap your hands or whistle and
Pin 6 n.c.
PCB, the layout of which is shown in Figure Pin 7 Neutral
the output should briefly change
3. No problems or difficulties are envisaged if Pin 8 Neutral state when the microphone picks up
you work carefully, take your time and stick the sound. Carefully tweak the set-
to the parts list and the component overlay Whatever the method used to con- ting of P1 until the toggling takes
printed on the board. For your convenience, nect the stage lights to the circuit, place reliably and at the desired
our tested prototype is shown in Figure 4. great care must be taken and acoustic level. Do remember that
There are nine wire links on the board, we proper materials used to eliminate ambient noise levels will be very
suggest counting them to make sure you any risk of the mains voltage being high in a discotheque!
haven’t missed one. touched. In this respect, we advise Power down and install the micro-
The electret capsule is connected to the (re-)reading our notes on Electrical controller. Make sure the PCB is
PCB via a short two-wire cable. Depending Safety which are published every securely installed in the case and
on how well sealed the case is and how flex- few months in this magazine. that the stage lights are connected
ible the case walls are will determine the to PCB terminal blocks K1-K8. If you
bass sensitivity of the microphone. If air can do not have a set of lights handy you
pass through the case with ease then the Testing can either wire up 8 sets of fairy
microphone will be sensitive to bass. Experi- Warning lights or hardwire 8 batten holders.
mentation with the mechanical coupling of The mains voltage must be Close the case and connect the
the microphone to the PCB or case wall will removed from K10 before doing mains power to K10.
also change the acoustic response character- any measurements or testing on Plug in the mains adapter and test
istics. The choice of the electret capsule is not the circuit. When the mains voltage the switch functions. Switch 1 if
critical, and even the cheapest ones will work is present on K10, the tabs of the depressed will continually cycle with
fine. Usually, the capsule has two solder pads triacs are LIVE. No matter if you the light pattern (binary) as follows :
at its rear side. The pad connected to the decide to house the circuit in a
metal encapsulation is the negative (–) con- solid plastic (ABS) or a steel enclo- *******
nection (see also the insert in the circuit dia- sure, a proper connection to the *- - - - - - *
gram). mains Protective Earth (PE) termi- - - - - - - - -
The triac output connectors K1-K8 may be nal must be provided. The isolation
wired to 8 separate mains sockets allowing distance on the circuit board is (010131-1)

22 Elektor Electronics 4/2003

Anda mungkin juga menyukai