Kits
›
El contador de visitantes
RU
EN
ES
Contenido
Introduction
History: how light learned to count people
Lesson 0. Gates from transistors: for those who start from scratch
0.1. The idea: a transistor is a switch
0.2. Building
0.3. Check
Lesson 0 paste (Cmd+I)
Lesson 1. The beam and CD4011
1.1. Idea: how a shop counts people
1.2. Idea: the CMOS 4000 series
1.3. Idea: NAND for everything
1.4. Build
1.5. Check
Lesson 1 paste (Cmd+I)
Lesson 2. The F/F flip-flop
2.1. Idea: a counter is flip-flops that flip
2.2. Idea: flipping through exclusive OR
2.3. Idea: a NAND with three inputs
2.4. Build
2.5. Check
Lesson 2 paste (Cmd+I)
Lesson 3. The CD4029B counter
3.1. Idea: which bit to flip
3.2. Idea: controlling the counter
3.3. Idea: the bubbles on the TI drawing
3.4. Build
3.5. Check
Lesson 3 paste (Cmd+I)
Lesson 4. The CD4511B decoder
4.1. Idea: seven strokes
4.2. Idea: latch, blanking, lamp test
4.3. Idea: a switch on two transistors
4.4. Build
4.5. Check
Lesson 4 paste (Cmd+I)
Lesson 5. Direction
5.1. Idea: two beams one after another
5.2. Idea: remember the first
5.3. Idea: the clock is when both are blocked
5.4. Build
5.5. Check
Lesson 5 paste (Cmd+I)
Lesson 6. The visitor counter
6.1. Idea: two displays on the same beams
6.2. Idea: two digits — two counters
6.3. Idea: Reset holds
6.4. Build
6.5. Check
Lesson 6 paste (Cmd+I)
Summary
All the parts
Instructions in pictures
Lesson 4 in pictures
← Back to the lesson: Lesson 4. The CD4511B decoder
4
The CD4511 decoder
a binary code → a digit on the display
kh
HT-04
CD4511
IN
10×
OUT
8×
N
1×
P
1×
NOT
22×
0
NOR3
8×
3
NOR
9×
0
NAND
3×
0
NOR4
6×
3
0
1×
Hz
1×
Q
Q
1×
CD4029
1×
3
∞
Ctrl
+
G
TG
CD4511
© 2026 Daniil Khanin · khanin.info · HT-04
36
CANVAS
1
Delete
0
PE
0
J1
0
J2
0
J3
0
J4
0
CI
0
BD
0
UD
1Hz
CLOCK
2
Delete
CLOCK
Q4
Q3
Q2
Q1
CO
3
Delete
CD4029
PE
PE
J4
J4
J1
J1
CI
CI
BD
BD
UD
UD
J2
J2
J3
J3
CLOCK
CLOCK
Q4
Q4
Q1
Q1
CO
CO
Q2
Q2
Q3
Q3
© 2026 Daniil Khanin · khanin.info · HT-04
37
TG
4
IN
3×
OUT
1×
N
1×
P
1×
6×
A
N
P
B
A
B
G
N
N
A
B
G
P
P
5
Ctrl
+
G
Library
…
Chip N
2×
Library
…
TG
Enter
TG
A
N
P
B
© 2026 Daniil Khanin · khanin.info · HT-04
38
CANVAS
CD4511
6
pin names as in the TI datasheet; a bar over a name in the picture = active 0, in the simulator without the bar
7
IN
7×
OUT
7×
B
C
LT
BL
LE
D
A
e
d
c
b
a
g
f
8
NOT
3×
0
6×
NOT
I0
A
O0
n1
NOT
I0
B
O0
n2
NOT
I0
C
O0
n3
9
NOT
2×
0
TG
1×
8×
NOT
I0
D
O0
n4
NOT
I0
LE
O0
n5
TG
A
n1
N
n5
P
n6
B
n7
© 2026 Daniil Khanin · khanin.info · HT-04
39
CD4511 …
10
TG
3×
12×
TG
A
n2
N
n5
P
n6
B
n8
TG
A
n3
N
n5
P
n6
B
n9
TG
A
n4
N
n5
P
n6
B
n10
11
NOT
2×
0
TG
1×
8×
NOT
I0
n5
O0
n6
TG
A
n11
N
n6
P
n5
B
n7
NOT
I0
n7
O0
n12
12
NOT
2×
0
TG
1×
8×
NOT
I0
n12
O0
n11
TG
A
n13
N
n6
P
n5
B
n8
NOT
I0
n8
O0
n14
© 2026 Daniil Khanin · khanin.info · HT-04
40
CD4511 …
13
NOT
2×
0
TG
1×
8×
NOT
I0
n14
O0
n13
TG
A
n15
N
n6
P
n5
B
n9
NOT
I0
n9
O0
n16
14
NOT
2×
0
TG
1×
8×
NOT
I0
n16
O0
n15
TG
A
n17
N
n6
P
n5
B
n10
NOT
I0
n10
O0
n18
© 2026 Daniil Khanin · khanin.info · HT-04
41
CD4511 …
15
NOT
1×
0
NOR3
1×
3
NOR
1×
0
9×
NOT
I0
n18
O0
n17
NOR3
A
n11
B
n13
C
n15
Y
n19
NOR
I0
n13
I1
n16
O0
n20
16
NOR3
3×
3
12×
NOR3
A
n15
B
n13
C
n12
Y
n21
NOR3
A
n11
B
n14
C
n15
Y
n22
NOR3
A
n12
B
n14
C
n15
Y
n23
© 2026 Daniil Khanin · khanin.info · HT-04
42
CD4511 …
17
NOR3
2×
3
NAND
1×
0
11×
NOR3
A
n12
B
n13
C
n16
Y
n24
NOR3
A
n11
B
n14
C
n16
Y
n25
NAND
I0
n15
I1
n13
O0
n26
18
NAND
1×
0
NOR4
1×
3
8×
NAND
I0
n26
I1
n18
O0
n27
NOR4
A
n11
B
n14
C
n16
D
n18
Y
n28
19
NOR4
1×
3
NAND
1×
0
8×
NOR4
A
n12
B
n14
C
n16
D
n18
Y
n29
NAND
I0
BL
I1
n27
O0
n30
© 2026 Daniil Khanin · khanin.info · HT-04
43
CD4511 …
20
NOR4
1×
3
NOR3
1×
3
9×
NOR4
A
n30
B
n23
C
n21
D
n28
Y
n31
NOR3
A
n30
B
n22
C
n21
Y
n32
21
NOR
1×
0
NOR4
1×
3
8×
NOR
I0
n30
I1
n24
O0
n33
NOR4
A
n30
B
n23
C
n19
D
n25
Y
n34
22
NOR3
1×
3
NOR4
1×
3
9×
NOR3
A
n30
B
n12
C
n23
Y
n35
NOR4
A
n30
B
n28
C
n20
D
n19
Y
n36
© 2026 Daniil Khanin · khanin.info · HT-04
44
CD4511 …
23
NOR4
1×
3
NOR
1×
0
8×
NOR4
A
n30
B
n19
C
n28
D
n29
Y
n37
NOR
I0
n31
I1
n38
O0
n39
24
NOR
3×
0
9×
NOR
I0
n32
I1
n38
O0
n40
NOR
I0
n33
I1
n38
O0
n41
NOR
I0
n34
I1
n38
O0
n42
25
NOR
3×
0
9×
NOR
I0
n35
I1
n38
O0
n43
NOR
I0
n36
I1
n38
O0
n44
NOR
I0
n37
I1
n38
O0
n45
26
NOT
3×
0
6×
NOT
I0
LT
O0
n38
NOT
I0
n39
O0
a
NOT
I0
n40
O0
b
© 2026 Daniil Khanin · khanin.info · HT-04
45
CD4511 …
CANVAS
27
NOT
3×
0
6×
NOT
I0
n41
O0
c
NOT
I0
n42
O0
d
NOT
I0
n43
O0
e
28
NOT
2×
0
4×
NOT
I0
n44
O0
f
NOT
I0
n45
O0
g
29
Ctrl
+
G
Library
…
Chip N
2×
Library
…
CD4511
Enter
CD4511
B
C
LT
BL
LE
D
A
e
d
c
b
a
g
f
30
1
1Hz
2Hz
10Hz
60Hz
4kHz
…
MAX
© 2026 Daniil Khanin · khanin.info · HT-04
46
CANVAS …
31
0
1×
Hz
1×
Q
Q
1×
3×
0
UD
1Hz
CLOCK
Reset
Reset
RST
32
CD4029
1×
3
13×
CD4029
PE
RST
J4
GND
J1
GND
CI
GND
BD
GND
UD
UD
J2
GND
J3
GND
CLOCK
CLOCK
Q4
U3
Q1
U0
CO
Q2
U1
Q3
U2
33
CD4511
1×
14×
CD4511
B
U1
C
U2
LT
VCC
BL
VCC
LE
GND
D
U3
A
U0
e
Ue
d
Ud
c
Uc
b
Ub
a
Ua
g
Ug
f
Uf
© 2026 Daniil Khanin · khanin.info · HT-04
47
CANVAS …
34
Segment LCD
Size
24
×
30
Enter
35
Stamps
S
M
L 21
Digits
Esc
36
S
Enter
New pin
a
Enter
7×
a
b
c
d
e
f
g
37
7×
Segment LCD
Ua
a
Ub
b
Uc
c
Ud
d
Ue
e
Uf
f
Ug
g
© 2026 Daniil Khanin · khanin.info · HT-04
48
CANVAS …
1
UD
…
UD = 1: 0 → 9
38
delete the probe, keep the display (without labels)
© 2026 Daniil Khanin · khanin.info · HT-04
49
← Back to the lesson
Lesson 4. The CD4511B decoder