The controller has been mounted on a board with
the
arrangement of the components as shown in Figure 2.
Start mounting according to general principles,
first
solder the lowest components -
resistors, and end with
the highest ones - connectors. Once
the device is
assembled, the ICs must be placed in their sockets and
a 12 V power supply must be connected to the VCC
input. The controller itself draws current, in the order
of several milliamps, but the current capacity of the
power supply should be adjusted to match the
current drawn by the ICs.
The sequence programming mode is entered by
pressing and holding down the S1 button. This state will
be signalled by a longer illumination of the LED. The
programming itself is carried out by setting the selected
combination (on and off outputs) with switch SW1 and
confirming it with button S1. Setting the SW1 switch to
the "ON" position turns on the respective channel
(lights up the diode connected to the output) and in the
"OFF" position turns off that channel. When the S1
button is pressed, a brief flashing of the D1 diode
signals that the state set by switch SW1 is being
stored. Record the next steps in the sequence to be
created in the same way. When the microcontroller
memory is full of all 124 steps, the circuit will light the
LED longer each time the S1 button is pressed. Once
you have saved all the required sequences, you need
to decide if you want it to be
played once or repeated
in a loop. Ending the sequence teaching procedure
Mounting and start-up
2
Fig. 1
Schematic diagram
Fig. 2
Mounting diagram
100nF
100nF
100uF
100uF
12VDC
78L05Z
1N4007
C4
C3
C1
C2
GND
VI
3
2
VO
1
U1
D1
VCC
VDD
GND
+
+
1k
1k
1k
1k
1k
1k
1k
1k
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
OUT8
LED1
R5
LED2
R6
LED3
R7
LED4
R8
LED5
R9
LED6
R10
LED7
R11
LED8
R12
VC
C
VC
C
VC
C
VC
C
VC
C
VC
C
VC
C
VC
C
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
OUT8
I1
1
I2
2
I3
3
I4
4
I5
5
I6
6
I7
7
I8
8
O8
11
O1
18
O2
17
O3
16
O4
15
O5
14
O6
13
O7
12
CD+
10
GND
9
U3 ULN2803
VCC
D1
D2
D3
D4
D5
D6
D7
D8
GND
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
OUT8
1k
4,7k
4,7k
4,7k
LED
R13
R4
R3
R2
3
1
2
4
S1
3
1
2
4
S2
3
1
2
4
S3
VDD
VDD
VDD
GND
GND
GND
GND
LED
S1
S2
S3
ATTINY2313
4,7k
(SCK)PB7
19
(MISO)PB6
18
(MOSI)PB5
17
PB4
16
(OCI)PB3
15
PB2
14
(AIN1)PB1
13
(AIN0)PB0
12
(ICP)PD6
11
(T1)PD5
9
(T0)PD4
8
(INT1)PD3
7
(INT0)PD2
6
(TXD)PD1
3
(RXD)PD0
2
GND
10
VCC
20
PA0
5
PA1
4
RESET
1
U2
9
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
SW1
R1
1
2
3
4
5
6
7
8
9
RP1
VDD
VDD
VDD
D1
D2
D3
D4
D5
D6
D7
D8
GND
RES
RES
LED
S1
S2
S3
ON
1
2
3
4
5
6
7
8