If you are an electronics beginner. It may be too much difficult for you. In the design of the BCD signal generator circuit by pressing a key. Here is how you make a keyboard encoder circuit for 16 keypads.
Your life will be easier. You use this circuit below. Because it consists of a single IC
and a few components, three capacitors.
How this circuit works
First of all, connect all input keys in the matrix model. It consists of row and column. Which each row and column have four rows.
So It can make the code number in 16 stage from 0-15. The binary code output to pin 14,15,16,17 respectively.
When we press a key. Then, a pulse signal comes out of pin 12 in each time. That pulse signal has a short time in only one cycle. We call it that “Strobe signal” to control other circuits outside there.
When we leave a finger from the pushbutton switch. The output binary at pin 14 to pin 17 will still hold in all time. Until we press the pushbutton new again. The output binary will be turning follow we press that button as above.
The keypad switches are used as a matrix. Which you may make them by yourself. By the positions of the switch in new requirements.
Logical guessing game circuit
But buying in a store near you. It is a better convenience for us. The cost of an instant keypad is cheap such as 4×4 Matrix 16 Keys Button Keypad.
The number of keys is used. Maybe set to 0-9 keys. Then, leaves AF is blank only.
The voltage power supply applies to the circuit is 5V. Because of the digital circuit.
Parts you will need
IC1—74C922N, keyboard encoder, Quantity: 1
C1,C2 = 0.1µF 63V, Ceramic Capacitors,Quantity: 2
C3 = 0.01µF 50V, Ceramic Capacitors,Quantity: 1
In the building this circuit. We can assemble all electronic devices in the perforated board as below. For key switches, we do not design it into the PCB.
But you can design or you use an instant keypad as you want.
GET UPDATE VIA EMAIL
I always try to make Electronics Learning Easy.
Up to $20 shipping discount on first order now: https://jlcpcb.com/quote