![]() | ![]() | ![]() |
| |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
![]() |
| | Tools |
| | #1 |
|
I'm looking to turn on a relay threw a logic signal from a keypad. I need to know if there's a programmable keypad I can buy (off the shelf) that already has all the circuitry to program in a number (say 4 digits) and have a TTL type output that will go high when the correct number is typed. This is my first post here and I've never been on this site so if I'm posting in the wrong spot I apologize. Any help is appreciated. | |
| |
| | #2 | |
| Quote:
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||
| |
| | #3 |
|
I don't know of an existing programmable keypad, but a 4x4 would be easy to set up as you have suggested if you just hook it up to a uC. Have the uC watch for the correct code on the keypad, and respond accordingly.[/quote] I don't have a good feel for how easy (or difficult) this really is. I've got almost no experience writing code. | |
| |
| | #4 | |
| Quote:
Basically, you set up the 4x4 keypad to come in on an eight bit port, then map the byte to a keypress (be sure to debounce as well, either software or hardware). Store the last X bytes in RAM, and compare the sequence with the code in EEPROM. When they match, trigger another I/O line to send the signal that the code was inputed correctly, and have this trigger your relay, etc.
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||
| |
| | #5 |
|
If I can't find what I'm looking for and have to build and code myself can you lead me to some kind of a source to get me started. Would an 80C51 be good for something like this? | |
| |
| | #6 | |
| Quote:
For your purposes, I might suggest an AT90S2313, it has some basic functions, but no excess, some RAM, and some EEPROM.
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||
| |
| | #7 |
|
Have a look at my PIC turorials at http://www.winpicprog.co.uk, I have a tutorial on reading a HEX keypad and implementing a simple code lock.
| |
| |
| | #8 |
| www.maplin.co.uk can supply a readymade keypad entry panel. Do a search for K6400 keycode lock. The price is £25. Also this link gives a circuit using two logic chips:- http://www.electronicsforu.com/efyli...00/jancir2.htm | |
| |
| | #9 |
|
If it's still available, the UA3730 is a dedicated chip for the job.
| |
| |
| | #10 |
|
Also, this month's edition of circuit cellar has exactly what you're looking for.
| |
| |
|
| Tags |
| keypad, relay, triggering |
| Thread Tools | |
| Display Modes | |
| |