Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Clever push button Programming

Status
Not open for further replies.

yanal

Junior Member level 1
Joined
Sep 20, 2015
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
149
Hello Dears :) , Hope you are Doing well ,

I want to make a Clever push button to enter a password for locker ,

For example to enter the 4-digit password, the push button should be used. if the user
wishes to enter the 4-digit password as 1 2 4 8, s/he should do the following:
• Click once and wait 1 second.
• Click twice and wait 1 second.
• Click four times and wait 1 second.
• Click eight times
.

Any ideas Dears !

Thanks in advance :0
 

How about using morse code instead with a completely non-standard set of characters. Of course those with ham radio experience might catch on faster then the typical riff-raff.

The method you are proposing would be very very easy for a bystander to pick up, besides taking forever to enter.
 

Each pressing gets value from timer. Then just simple comparison collected data.
 

Each pressing gets value from timer. Then just simple comparison collected data.

Thanks for your suggestions. , could u please explain more for me . and if u can write sample it will be helpful.
Thaaaaankkssss again dear ,
 

You don't mention the MCU you are considering but many have a timer that also has a trigger connected to it. As the timer counts up/down, the count is captured when the trigger event occurs.
You could then use this to determine the number of counts since the capture and decide if this is an 'increment' press (low count/short time interval) or a 'move to next digit' press (high count/longer time interval).
However this still does not change the fact that this type of lock release is anything but "clever". Still, it might get you a few marks in your assignment.
Susan
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top