Build this Four-Digit Keypad Switch using cheap off-the-shelf components. Although it was designed to control a Burglar Alarm - it has other uses.
COMMENTS
Homer SUGGESTIONS

Four-Digit Keypad - Testing Your Circuit

MORE
KEYPAD CIRCUITS

Four-Digit Keypad Schematic The Rest of Ron's Circuits Write To Ron More Free-to-Use Circuits Circuit Exchange International
Click Here For A Photograph Of The Prototype

Introduction

The prototype of the Four-Digit Keypad was built using only the Stripboard Layout as a guide. So - if you have faithfully reproduced that layout - you will have a working circuit.

Once you're satisfied that your layout is correct - and you have made a careful and thorough check of the underside of the board - it's time to power-up the circuit and test its operation. This is always an anxious moment. If you construct a lot of circuits - you might consider building the Current Limiting Power Supply - or alternatively - you could add the Simple Current Limiter to your existing PSU. Both will let you set an upper limit on the amount of current supplied to your circuit - and so protect it from any serious damage.


Setup

A couple of resistors and LEDs are all that's needed to demonstrate that the "Off" and "Set" outputs are working properly - and you can simulate the keypad-switches using short lengths of wire.

Details of How to Prepare
The Four-Digit Keypad For Testing


If You Find a Problem

If - in the course of the test - you find that something is not working properly, then a careful inspection of the relevant area of the circuit board should turn up the cause of the problem. Where you've cut the board to size - look for small loose strands of copper left behind by the saw. Check the board for short-circuits caused by component leads touching each other. If an LED is not lighting - check that it's connected the right way round. It can also happen that the stripboard itself is faulty. I have seen cases where the copper tracks have not been completely severed from one another during manufacture.

If you've built your circuit using the specified components - and you've followed the step-by-step construction guide described on the Four-Digit Keypad Support Page - then the chances are that any bug will be caused by something minor - a component connected the wrong way round - a missing or unwanted solder bridge - an incomplete cut in the track etc. If you haven't used the specified transistors - check the pin configuration. Just because the transistors look the same - do not assume that they have the same pin configuration.

If you can't see anything obvious then adopt a systematic approach to faultfinding. Simply replacing components at random is rarely successful. Begin by double-checking that all of the cuts in the tracks have been made - that they are all In The Right Place - and that they sever the track completely. Use a magnifying glass - and backlight the board. It only takes the smallest strand of copper to cause a problem.

When you're satisfied that the tracks have been severed in all the right places, check that you have made - and correctly placed - all 7 solder bridges. Check especially the bridge that connects pins 4 and 12 of the IC. Mark each bridge with a felt tip pen - or something similar - so that it can be easily identified later.

Next, carefully examine the full length of each track. If you backlight the board - it makes potential problem areas easier to spot. Look for unwanted solder bridges. Your felt tip markings will tell you which ones should be there - and help you identify any that shouldn't be there.

If all else fails and you still haven't found the cause of the problem - work your way through the assembly instructions on the Support Page. Check each individual component and link - to make sure that it's present and correctly positioned.

Print out the drawings and mark off the components as you go. Pay particular attention to the orientation of the diodes and transistors. Make sure that Pin 1 of the IC is in the top left-hand corner - and that all of its pins are correctly inserted into the socket. Take your time and examine each individual component carefully.

Alternatively, you can take the following approach - suggested for those who have not used the stripboard layout.



If You Have Designed Your Own Layout

For faultfinding purposes you can think of the circuit in two distinct halves. There is the code input section that results in pin 10 going high - and the output section that causes the relay to energize and de-energize.

Try to get the output section working first. Start by connecting a length of wire to the "Com" terminal. Then disconnect one side of D1 - it doesn't matter which side. Finally, disconnect the end of R8 that goes to pin 10.

Turn-on the power and touch the "Common" lead to "E" - the relay should energize and remain energized. Next, touch the "Common" lead to the free end of R8 - the relay should de-energize and remain de-energized. In other words, by touching "E" and R8 with the "Common" lead - you should be able to energize and de-energize the relay.

When you have this working properly, reconnect D1 and check that you are still able to energize and de-energize the relay. If not then there is something wrong with the circuit around Q3. Once you have your relay operating properly with D1 connected - reconnect R8 to pin 10. Then check to see if your circuit's working. If it's not - examine the code entry section.

Turn-on the power and - using a digital voltmeter - go through the code entry sequence, making the following checks. If at any stage you do not get the correct readings - investigate.

  1. Briefly, touch "F" with the "Common" lead to make sure that the code entry sequence is reset.
  2. Check that pin 1 is high - that pin 2 is low - and that pin 3 is low.
  3. Touch "A" briefly with the "Common" lead. Check that this takes pin 2 high - and that it stays high.
  4. Check that pin 3 is now high. This means that gate 1 has functioned properly.
  5. Check that pin 5 is high, that pin 6 is low and that pin 4 is low.
  6. Touch "B" briefly with the "Common" lead. Check that this takes pin 6 high - and that it stays high.
  7. Check that pin 4 is now high. This means that gate 2 has functioned properly.
  8. Check that pin 12 is high, that pin 13 is low and that pin 11 is low.
  9. Touch "C" briefly with the "Common" lead. Check that this takes pin 13 high - and that it stays high.
  10. Check that pin 11 is now high. This means that gate 3 has functioned properly.
  11. Check that pin 8 is high, that pin 9 is low and that pin 10 is low.
  12. Touch "D" briefly with the "Common" lead. Check that this takes pin 9 high - and that it stays high.
  13. Check that pin 10 is now high. This means that gate 4 has functioned properly.

If pin 10 is high - and it remains high - the code entry sequence has been successful. Now that you have both the input and output sections working, check that your circuit is functioning correctly - by using the procedure described at the Top of the Page .
Four-Digit Keypad - Support Material
Four-Digit Keypad Schematic The Rest of Ron's Circuits Write To Ron More Free-to-Use Circuits Circuit Exchange International


Free Web Hosting