Académique Documents
Professionnel Documents
Culture Documents
Game Play
To start a game, a switch is pressed,
which selects at random one of the winning patterns (see Fig.8.1) although this
of course remains hidden from the players. The players now take turns to press
one of the nine switches (S1 to S9) and if
the switch pressed forms part of the hidden pattern, the relevant l.e.d. in the display will light. If it does not form part of
the pattern the l.e.d. will remain off. From
this information, a logically-thinking
player can deduce the hidden pattern. The
first player to guess this correctly is the
winner.
A simple-minded way of finding the
hidden pattern would be to press each button in turn and see which ones cause the
l.e.d.s to light and thus deduce the stored
pattern. A good player, however, can be
much cleverer than that.
There are only eight winning patterns and
these are labelled P1 through P8 in Fig.8.1.
Advanced Call
785
Completed Noughts
and Crosses Enigma board
Circuit Diagram
The simplicity of the block diagram is
matched by that of the Noughts and
Crosses Enigma circuit diagram in
Fig.8.3, except that it contains rather a lot
of diodes. IC1a forms a familiar gated
oscillator which is activated when Play
switch S10 is pressed, producing a series
of pulses which are fed to the clock input
of decade counter IC2, connected as a
divide-by-eight counter.
COMPONENTS
Noughts and Crosses
Resistors
See
R1
100k
SHOP
R2
10k
TALK
R3
1M
page
R4
390
All 025W 5% carbon film
Capacitors
C1
10n ceramic
disc, 5mm pitch
C2
1 radial elect.
16V
Semiconductors
D1 to D9
red l.e.d. (9 off)
D10 to D33
1N4148 signal
diode (24 off)
TR1
2N3904 npn
transistor
IC1
4093 quad
Schmitt NAND
gate
IC2
4017 decade
counter
Miscellaneous
S1 to S10
min. push-tomake switch,
p.c.b. mounting
(10 off)
S11
min. s.p.s.t. toggle
switch (see text)
Printed circuit board, available
from the EPE PCB Service, code
538; 14-pin d.i.l. socket; 16-pin d.i.l.
socket; 9V PP3 battery and connector; connecting wire; solder, etc.
Approx.
Cost
16
excl case and batt
Fig.8.3. Completed circuit diagram for the Noughts and Crosses Enigma
786
Construction
Printed circuit board component and
track layout details are shown in Fig.8.4.
This board is available from the EPE
PCB Service, code 538.
Switches S1 to S9 and the l.e.d.s are
mounted in a 3 3 matrix pattern. Except
for the battery, all components are
mounted on the board. Ensure that polarity-sensitive components such as l.e.d.s,
diodes, i.c.s and electrolytic capacitor C2
are inserted correctly. The i.c.s are static
sensitive and the usual precautions
should be observed. Do not fit them in
their sockets until the board has been
fully checked.
As mentioned, the game can be played
in two versions. You can allow for both to
be played by using switch S11.
Alternatively, you could replace the
switch by a link wire (advanced version)
or omitting the connection (standard
version).
Testing
No adjustment or setting up is necessary and provided the circuit has been
correctly assembled, it will be ready
to play as soon as a battery has been
connected.
A simple way to determine if all of the
diodes have been correctly fitted and that
there are no faults is to set the unit for the
Advanced game and then press each
switch in turn until one l.e.d. is found to
light. Keeping this switch pressed, determine which winning pattern is active by
pressing two other switches until all three
l.e.d.s selected light. When these switches
have been released, the next pattern will be
selected and this may be confirmed by
pressing the relevant switches. In this way
all eight patterns can be checked.
Fig.8.4. Printed circuit board component layout and copper foil trackside master for
the Noughts and Crosses Enigma
787
Viewpoint
To get around this, some form of indicator mounted in a convenient place
indoors is useful. The simplest scheme for
such a device would consist of an 8-way
switch, to which the vane is attached,
feeding eight l.e.d.s which display the
position of the switch. A typical arrangement is shown in Fig.8.5.
To achieve this, a switch capable of
rotating through 360 degrees is required
and, although such switches are not generally available, it is a relatively simple matter to modify a standard 12-way rotary
switch to perform this function.
A bigger problem is the fact that a 9way cable is required to connect the
switch to the display and since the length
of this is likely to be considerable, the cost
of such a system would be quite high with
the cable costing more than the indicator.
This circuit allows a relatively inexpensive 2-way cable to be used instead and
could also be useful in many other signalling applications.
Basic Operation
The weather vane presented here consists of two units; an indoor Display and
a Wind Vane mounted on the roof. These
are shown in the block diagram in
Time Out
When the monostable times out, the
counters clock terminal goes high again.
As long as no more clock pulses are
received, the Vane counter is reset, ensuring that it always starts with output Q0
high. The Display counter is reset independently at the beginning of each count
cycle (controlled by a separate oscillator)
Circuit Diagram
The circuit diagram for the Electronic
Weather Vane is shown in Fig.8.7. The
operation is best considered by assuming
that a transmission has just ended and
transistor TR1 has switched off. One of
788
Master Oscillator
The master oscillator in the Display
circuit is built around IC1a and produces
a short positive pulse (about 10ms) every
few seconds or so defined by the time
constants set by the relationship between
capacitor C2, resistors R3 and R4, and
diode D9. When the output of IC1a goes
high, counter IC2 is reset via C1, and the
oscillator formed around IC1b is
enabled, providing clock signals to both
counters. Resistor R5 and capacitor C3
set the clocking rate.
The Enable input of counter IC2 is also
taken high via inverter IC1c so that counting can proceed. Diode D10 ensures that
the output of IC1b can only pull the clock
line low, while R6 pulls it high when the
output goes high.
As soon as the clock line goes low, C5
will discharged via D12, removing the
reset on counter IC3. The values of R7
and C5 are chosen to ensure that the
reset input of IC3 remains low during
the short positive periods of each clock
pulse, so that the i.c. is not reset and can
continue to count. Since the counters are
initially reset and they receive the same
clock pulses, both counters will advance
on the positive clock transition and will
therefore remain in step.
When the output of IC3, to which the
rotor or pole of switch S2 is connected,
goes high, transistor TR1 will be switched
on by the resulting pulse across C6,
grounding further clock pulses so that
counting stops even though IC1b will still
be oscillating.
When the output of IC1a goes low
again, clock oscillator IC1b switches off
Approx. Cost
COMPONENTS
14
Semiconductors
D1 to D8
red l.e.d. (8 off)
D9 to D13
1N4148 signal
diode (5 off)
TR1
2N3904 npn
transistor
IC1
4093 quad NAND
gate
IC2, IC3
4017 CMOS
decade counter
(2off)
Miscellaneous
S1
min. push-to-make
switch, p.c.b.
mounting
S2
1-pole 12-way
rotary switch,
p.c.b. mounting
Printed circuit board, available from
the EPE PCB Service, code 539;
cases to suit (see text); 14-pin d.i.l.
socket; 16-pin d.i.l. socket (2 off);
9V PP3 battery and connector;
connecting wire; solder, etc.
Construction
Printed circuit board component and
track layout details are shown in Fig.8.8.
This board is available from the EPE PCB
Service. code 539. Cut the board into its
two sections as indicated.
All of the components including both
switches are mounted on the board
although S1 (Display switch) may need
to be mounted on the front panel of the
enclosure if one is used. In this case a
suitable panel mounted push switch
789
Fig.8.8. Printed circuit board (p.c.b.) component layout, wiring details and full-size copper track master for the
Electronic Weather Vane. The p.c.b. is cut into two sections making up the Display and Vane boards see
below
connected to the
board on flying
leads would be more
appropriate.
The rest of the
electronics
construction should not
pose any problems
provided the normal
precautions
with device orientation and CMOS
handling
are
observed.
Display board
Vane Unit
As the Vane board will be mounted on
the roof and thus exposed to the elements,
some thought must be given to the box in
which it is to be mounted. This can range
from proprietary mast mounting boxes
specifically designed for such applications, to homemade equivalents such as an
empty tin.
Whatever is chosen it should obviously be weather resistant and waterproof
and, as an added precaution, the circuit
board can be given a few coats of varnish
or conformal spray (after it has been tested). Care should be taken to ensure that
the freedom of Vane switch S2 to rotate
is not impaired. Metal boxes should be
painted with suitable oil based paint.
Since no battery is required in the roof
mounted unit, the box may be permanently sealed leaving only the cable emerging.
Another alternative is to pot the entire circuit, or at least the areas where water may
790
Vane Switch
The author was unable to source 8-way
360-degree rotary switches and so
instead an easily available 12-way unit
was used. These normally have an
adjustable end stop so that rotation can
be limited to the number of ways
required and this should be removed. The
permanent end stop at position 12, consisting of a protrusion in the moulded
plastic switch body, must be removed to
enable full 360 degree rotation.
Rotary switches also often have a
click action imposed by two ball bearings. These must also be removed to
enable the switch shaft to rotate freely.
Gently prize back the four retaining
lugs, taking care not to break them,
removing the spring, ball bearings and
Vane board
end stop, and snap the switch back
together again.
A suitable vane needs to be attached to
the shaft and this could be made from an
aluminium or plastic sheet but the details
of this are left to the taste and artistic
capabilities of the reader.
The two units should be interconnected
using a suitable length of twin cable.
Once the system is working there are no
adjustments to be made other than
mounting
switch
S2
and
the
l.e.d.s with
the same orientation so
that when the
vane points
north,
the
l.e.d. marked
N is lit.