juan12345 said:my only problem is the schematic diagram of the keypad to the PIC i dont know where to put +5v in the 7 pins of the keypad. please help me!!!
What part of READ MY TUTORIAL didn't you understand?.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
juan12345 said:my only problem is the schematic diagram of the keypad to the PIC i dont know where to put +5v in the 7 pins of the keypad. please help me!!!
Mike said:Nigel,
I checked out your Keypad Tutorial and it does a very good job of covering the basics. It's obvious you put a lot of time and effort into providing newcomers with a wealth of information in a relatively easy-to-comprehend format.
Unfortunately, there seems to be a problem with your example Keypad code. It seems the four column lines are configured as outputs with one low and the other three high at any given time. I think this must have been an oversight because if you press a switch on the active low column and another switch on that same row at the same time you'll have a short circuit.
I don't mean to pick 'nits' but you don't need to add hardware (diodes) to make it foolproof, simply modify TRISB so that only one pin is an output (active low) at any given time. Here's a PICList example, though not a very good one;Nigel Goodwin said:To be 'foolproof' I would have added diodes to prevent that, but I wanted to keep it as simple as possible - as I try and do with all the hardware. The PIC is quite 'happy' like this anyway (pretty bomb proof devices) - although I completely agree it's not 'nice'