Author Topic: Need help with this circuit  (Read 3648 times)

0 Members and 1 Guest are viewing this topic.

Offline darinsquaredTopic starter

  • Contributor
  • Posts: 39
  • Country: ca
Need help with this circuit
« on: December 06, 2016, 09:56:09 pm »
I want to make a lock very similar to the one on this site:  http://www.allaboutcircuits.com/textbook/experiments/chpt-7/simple-combination-lock/

The part I do not understand is how do you make a tactile switch or keypad remain "connected" to maintain current once you release it to enter a second digit?  Would adding a capacitor store enough current to maintain voltage when enter remaining digits?
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6221
  • Country: de
Re: Need help with this circuit
« Reply #1 on: December 06, 2016, 10:41:47 pm »
That circuit does not use tactile switches or keypad. It uses static switches.

 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12380
  • Country: au
Re: Need help with this circuit
« Reply #2 on: December 07, 2016, 12:51:56 am »
The switches are used to provide a binary value ... the only 'digits' you can enter are 0 or 1.  That circuit has only 16 possible combinations - and one of those will be the rest state, so you would not want that to be your combination!

You could use tactile or other momentary switches for the 'code entry' panel, it's just that you would need to press all the ones that needed to be on - at the same time.  The 'lock' would remain 'open' only while they are held.  However, you could not use them for the 'code set' switches.  You would have to use a method where the code could be set and the values held.  The DIP switches are one way.  Jumpers are another.
 

Offline darinsquaredTopic starter

  • Contributor
  • Posts: 39
  • Country: ca
Re: Need help with this circuit
« Reply #3 on: December 07, 2016, 01:22:39 am »
how do security code readers work such as PIN's at ATM's where you enter each number individually? 
 

Offline mash107

  • Contributor
  • Posts: 24
  • Country: us
Re: Need help with this circuit
« Reply #4 on: December 07, 2016, 02:16:44 am »
usually a 16-bit encoder (MM74C922 or similar) to take a row & column ID and convert it to a 4 bits corresponding to the position

Decent article that gets into encoding, debouncing (preventing a single key from registering multiple times), etc:
http://embedded-lab.com/blog/mm74c922n-based-encoded-matrix-keypad/
 

Offline Luminax

  • Regular Contributor
  • *
  • Posts: 159
  • Country: my
    • Electronesk
Re: Need help with this circuit
« Reply #5 on: December 08, 2016, 08:01:22 am »
how do security code readers work such as PIN's at ATM's where you enter each number individually?

ATM Machine PIN pad is already into the realm of microprocessing and most likely are just QWERTY's Numpad parts read into the ATM computer, kind of not what you want to compare against if you want to build a simple key combination circuit.

The circuit in the link you posted works in a "Compare A state to B state" style of approach where the circuit compare what switches are on at the A side (Key Code) compared to B side (Entry) and will give green or red after you push the enter key depends on if it matches or not.
As mentioned by Benta, the switches in this practice circuit is supposed to be DIP switch bank that 'locks' into place.

If you're looking into the wonder of "Press and Hold" using simple push switch, I think it goes into the realm of sequential logics with Flip-Flops and buffer and all the wonders of the digital world :)
Jack of all trade - Master of some... I hope...
 

Offline salbayeng

  • Frequent Contributor
  • **
  • Posts: 296
  • Country: au
Re: Need help with this circuit
« Reply #6 on: December 08, 2016, 09:13:03 am »
The circuit in question is only intended for educational purposes , if you used a thumbwheel switch it would take a few seconds to rotate the thumbwheel once and open the lock.
It might almost be practical if you duplicated the circuit 4 times and had 4 thumbwheels, and a button "press to open" that was capacitively coupled. But thumbwheel switches are $10 each!!.
 

Offline Luminax

  • Regular Contributor
  • *
  • Posts: 159
  • Country: my
    • Electronesk
Re: Need help with this circuit
« Reply #7 on: December 08, 2016, 09:57:53 am »
The question now is, do you want to try to make a lock like the circuit mentioned to learn about the circuit?
Do you want to make a combination lock and that circuit is one of the starting point and you want to go further?

either way, first of all we need to make the goal clear as that helps a lot :)
Jack of all trade - Master of some... I hope...
 

Offline iaeen

  • Regular Contributor
  • *
  • Posts: 65
  • Country: us
Re: Need help with this circuit
« Reply #8 on: December 08, 2016, 02:47:15 pm »
On the subject of "what are the real goals here", if you are interested in creating a real lock to be used for real security, you will need to think about hardening it against attack. Nevermind the fact that this design would only have 16 combinations, if an attacker can simply open it up and see the combination on the second set of switches (or bypass the logic altogether with their own external voltage source), the lock has failed.

Real electronic locks need to put more effort into hardening than they do into their core locking functionality. See EEVBLOG #942 for an example of what this looks like.
 

Offline mc172

  • Frequent Contributor
  • **
  • Posts: 489
  • Country: gb
Re: Need help with this circuit
« Reply #9 on: December 08, 2016, 08:24:16 pm »
The way you make the tactile switches latch is with the use of a fair amount of additional circuitry which you'd have to repeat for each separate switch.

There's plenty of examples here.

Check out EEVblog #762 and #771 as well.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf